Skip to content
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

Merged
merged 1 commit into from
May 31, 2024

Conversation

rcaplier
Copy link
Collaborator

@rcaplier rcaplier commented May 13, 2024

Description

This PR introduces a new warning block for when a record dataset has neither API, download or other links to display.

Screenshots

image

Quality Assurance Checklist

  • Commit history is devoid of any merge commits and readable to facilitate reviews
  • If new logic ⚙️ is introduced: unit tests were added
  • If new user stories 🤏 are introduced: E2E tests were added
  • If new UI components 🕹️ are introduced: corresponding stories in Storybook were created
  • If breaking changes 🪚 are introduced: add the breaking change label
  • If bugs 🐞 are fixed: add the backport <release branch> label
  • The documentation website 📚 has received the love it deserves

This work is sponsored by Swisstopo geocat.

@rcaplier rcaplier self-assigned this May 13, 2024
Copy link
Contributor

github-actions bot commented May 13, 2024

Affected libs: feature-search, feature-router, feature-map, feature-dataviz, feature-record, ui-elements, feature-notifications, feature-catalog, feature-editor, ui-catalog, ui-search,
Affected apps: datahub, metadata-editor, demo, webcomponents, search, map-viewer, datafeeder,

  • 🚀 Build and deploy storybook and demo on GitHub Pages
  • 📦 Build and push affected docker images

@rcaplier rcaplier changed the title feat(dh/record-page): Added a warning block for when record has neith… Datahub - add info when metadata has no online ressource May 13, 2024
@coveralls
Copy link

coveralls commented May 13, 2024

Coverage Status

coverage: 84.292% (-0.2%) from 84.492%
when pulling 48fd10a on dh-add-info-when-metadata-has-no-online-ressource
into cc25794 on main.

Copy link
Contributor

github-actions bot commented May 13, 2024

📷 Screenshots are here!

Copy link
Collaborator

@cmoinier cmoinier left a 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).

translations/fr.json Outdated Show resolved Hide resolved
@rcaplier
Copy link
Collaborator Author

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).

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 ? 😎

@cmoinier
Copy link
Collaborator

cmoinier commented May 15, 2024

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).

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 😉

Copy link
Collaborator

@jahow jahow left a 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.

@rcaplier rcaplier force-pushed the dh-add-info-when-metadata-has-no-online-ressource branch 5 times, most recently from fe92ff1 to e405628 Compare May 15, 2024 14:35
@rcaplier rcaplier force-pushed the dh-add-info-when-metadata-has-no-online-ressource branch 2 times, most recently from bbc0a78 to d0775d4 Compare May 27, 2024 10:30
Copy link
Collaborator

@cmoinier cmoinier left a 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 👌

@rcaplier rcaplier force-pushed the dh-add-info-when-metadata-has-no-online-ressource branch 5 times, most recently from 353d13e to f625321 Compare May 31, 2024 12:24
@rcaplier rcaplier force-pushed the dh-add-info-when-metadata-has-no-online-ressource branch from f625321 to 48fd10a Compare May 31, 2024 12:25
@rcaplier rcaplier merged commit cd1164a into main May 31, 2024
9 checks passed
jahow pushed a commit to camptocamp/geocat-geonetwork-ui that referenced this pull request Jun 21, 2024
jahow pushed a commit to camptocamp/geocat-geonetwork-ui that referenced this pull request Jun 21, 2024
@jahow jahow deleted the dh-add-info-when-metadata-has-no-online-ressource branch October 4, 2024 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants