Skip to content

Commit

Permalink
fix: query API by metadata ID rather than data ID in monitoring page
Browse files Browse the repository at this point in the history
  • Loading branch information
RoryPTB committed Aug 20, 2024
1 parent 848bcd3 commit 3178d64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/monitoring/NotificationDashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export default defineComponent({
if (props.wsi) {
params = new URLSearchParams({
f: 'json', // Specify the response format as JSON
data_id: `${props.datasetID}%`, // Filter by data_id that starts with the provided topic hierarchy
metadata_id: `${props.datasetID}%`, // Filter by dataset
sortBy: '-datetime', // Sort by time in descending order
datetime: `${props.startDate.toISOString()}/${props.endDate.toISOString()}`, // Filter to date range specified by user
wigos_station_identifier: `${props.wsi}`, // Filter by WSI searched
Expand All @@ -261,7 +261,7 @@ export default defineComponent({
else {
params = new URLSearchParams({
f: 'json', // Specify the response format as JSON
data_id: `${props.datasetID}%`, // Filter by data_id that starts with the provided topic hierarchy
metadata_id: `${props.datasetID}%`, // Filter by dataset
sortBy: '-datetime', // Sort by time in descending order
datetime: `${props.startDate.toISOString()}/${props.endDate.toISOString()}`, // Filter to date range specified by user
limit: `${props.limit}`, // Limit number of notifications shown on dashboard
Expand Down
4 changes: 2 additions & 2 deletions src/components/monitoring/PublishedData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
{{ getFileName(file.url) }}
</div>
</v-col>

<v-divider vertical class="mx-3"/>
<v-divider vertical class="mr-5"/>

<v-col cols="3">
<DownloadButton :fileName="getFileName(file.url)" :fileUrl="file.url" :block="true" />
Expand Down

0 comments on commit 3178d64

Please sign in to comment.