Skip to content

Commit

Permalink
FEAT(#508): Reverting test implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
tholulomo committed Oct 27, 2024
1 parent 546e907 commit fc67e86
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
20 changes: 10 additions & 10 deletions app/src/modules/whyis-dataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,20 +296,20 @@ function buildDistrLd(fileList) {
'@type': 'http://purl.org/net/provenance/ns#File',
'http://www.w3.org/2000/01/rdf-schema#label': fileName
};
// if (fileList[x]?.status === 'complete') {
// distrLDs[x]['@id'] = fileList[x].uri
// } else {
// distrLDs[x]['@id'] = `${window.location.origin}${fileList[x].filename}`
// }

// Note: When testing SDD linking locally enable below logic and comment above if statement
if (fileList[x]?.status === 'complete') {
distrLDs[x]['@id'] = fileList[x].uri;
} else {
distrLDs[x]['@id'] = `http://restful:3001/${
fileList[x].filename?.split('/api/')?.[1]
}`;
distrLDs[x]['@id'] = `${window.location.origin}${fileList[x].filename}`;
}

// Note: When testing SDD linking locally enable below logic and comment above if statement
// if (fileList[x]?.status === 'complete') {
// distrLDs[x]['@id'] = fileList[x].uri;
// } else {
// distrLDs[x]['@id'] = `http://restful:3001/${
// fileList[x].filename?.split('/api/')?.[1]
// }`;
// }
});
return distrLDs;
}
Expand Down
8 changes: 4 additions & 4 deletions app/src/pages/explorer/curate/sdd/SddLinking.vue
Original file line number Diff line number Diff line change
Expand Up @@ -556,9 +556,9 @@ export default {
'@id': this.replaceBaseUrl(
distribution.downloadLink,
'http://localhost/api/',
// `${window.location.origin}/api/`
`${window.location.origin}/api/`
// Note: When testing SDD linking locally enable below logic and comment above
'http://restful:3001/'
// 'http://restful:3001/'
)
};
if (distribution.fileExtension === 'csv') {
Expand All @@ -580,9 +580,9 @@ export default {
'@id': this.replaceBaseUrl(
file?.downloadLink,
'http://localhost/api/',
// `${window.location.origin}/api/`
`${window.location.origin}/api/`
// Note: When testing SDD linking locally enable below logic and comment above
'http://restful:3001/'
// 'http://restful:3001/'
)
};
}
Expand Down

0 comments on commit fc67e86

Please sign in to comment.