-
Notifications
You must be signed in to change notification settings - Fork 32
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
Datahub - add info when metadata has no online ressource #874
Datahub - add info when metadata has no online ressource #874
Conversation
Affected libs:
|
📷 Screenshots are 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.
Thanks for this feature @rcaplier ! 😃 It looks really good already. Two remarks/questions under here + would be nice to add e2e testing (difficult to do for other errors, but for the absence of links, you would just have to point to a dataset where you would have removed all the links, perhaps there is already an existing one that you used for this PR? LMK if you need help with that).
libs/ui/elements/src/lib/search-results-error/search-results-error.component.html
Outdated
Show resolved
Hide resolved
Thank you. I've had to make a new dataset with no link in it to see the result. Do I have to make another dump so we have it and point to it in the e2e tests ? Or maybe I can cheat in the e2e by simulating a record with no link ? 😎 |
Yes you can use that one and make a dump! I think simulating a record without any links would be too time consuming, I would use the one you got 😉 |
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.
Just a general comment, could we maybe be more specific and instead of "noLink" use "recordHasNoLink"? E.g. search.error.recordHasNoLink
, ErrorType.RECORD_HAS_NO_LINK
, etc.
fe92ff1
to
e405628
Compare
bbc0a78
to
d0775d4
Compare
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.
Thanks for the last changes, LGTM 👌
353d13e
to
f625321
Compare
f625321
to
48fd10a
Compare
Description
This PR introduces a new warning block for when a record dataset has neither API, download or other links to display.
Screenshots
Quality Assurance Checklist
breaking change
labelbackport <release branch>
labelThis work is sponsored by Swisstopo geocat.