-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix errors seen on test deployment server #95
base: main
Are you sure you want to change the base?
Conversation
@@ -234,7 +234,7 @@ export default defineComponent({ | |||
const nextDate = new Date(d.toISOString()); | |||
this.iterDate(nextDate); | |||
try { | |||
const response = await fetchWithToken(`${window.VUE_APP_OAPI}/collections/${station.properties.topic}/items?f=json&datetime=${nextDate.toISOString()}/..&sortby=+resultTime&index=${index}&limit=1&wigos_station_identifier=${station.id}`); | |||
const response = await fetchWithToken(`${window.VUE_APP_OAPI}/collections/${station.properties.topic}/items?f=json&datetime=${nextDate.toISOString()}/..&sortby=resultTime&index=${index}&limit=1&wigos_station_identifier=${station.id}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got rid of the +
on the sort here since it was causing the fetch to fail.
Not super clear if pygeoapi supports that. If I remove +
it works fine. @webb-ben please let me know if I am missing something here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if no +/- indicated, + is assumed, issue happens when the URL is serialized. Better to leave out
@@ -23,7 +23,12 @@ | |||
</v-card> | |||
</template> | |||
<template v-else> | |||
<i>{{ $t("messages.no_observations_in_collection") }}</i> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I originally added this but I think it is bad UX so removed it and kept it the same as the UI currently has (i.e. no extra italic message)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed
Note, the non-synop collection seems to be registered with the wrong URL. When I fetch all the collections, the non-synop has a url whic points to http://136.156.130.194/oapi/collections/urn:wmo:md:test3:core.surface-based-observations.drifting-buoys.PROGRAM?f=json This is coming from pygeoapi directly. The
PROGRAM
part is capitalized but it shouldn't be. I can make this lowercase after fetching but wanted to clarify this since I believe it is directly from the test server and not caused by the UI.Will add tests in future iteration once allign on these changes