-
Notifications
You must be signed in to change notification settings - Fork 29
SEAB-6173: Remove getPublishedContainerSchema endpoint #5860
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #5860 +/- ##
=============================================
- Coverage 74.52% 74.49% -0.04%
+ Complexity 5274 5241 -33
=============================================
Files 369 368 -1
Lines 19056 18938 -118
Branches 2025 1991 -34
=============================================
- Hits 14202 14108 -94
+ Misses 3893 3880 -13
+ Partials 961 950 -11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Hmmm, this was part an effort to make Dockstore's search results more relevant. It probably didn't get maintained and fell by the wayside, but I think we may want to take another look in the future. More context at dockstore/dockstore-ui2#667 |
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.
May want to continue work on Dockstore's search results at some point, maybe kill the endpoints but not the supporting code.
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.
It looks like the endpoint being removed was done way back when, in March 2017 (before I started on Dockstore!), and was never used. We do have an implementation that generates the json+ld in the browser via TypeScript that's working (well, it's generating JSON+LD), and is recognized by Google Rich Results Test, although it annoyingly still doesn't show up in their search results.
Because the logic/effort for figuring out the details of what's in the JSON+LD are already in the UI, IMO it's OK to remove entirely -- we can always restore from history if needed.
Ok, cool. I didn't remember that part being moved. |
Description
This PR removes the
getPublishedContainerSchema
endpoint from the webservice, which failed on this request:The failed request threw a NPE at:
https://github.com/dockstore/dockstore/blob/develop/dockstore-webservice/src/main/java/io/dockstore/webservice/helpers/JsonLdRetriever.java#L226
The reason was that tag.getReference() was null. About 1/3 of our old-style tools have at least one Tag with a null reference and will cause this endpoint to fail.
Upon inspection, we found that the endpoint had not been accessed in production in the last three months and was not used in the UI or CLI.
So, we removed the endpoint, and the entirety of the
JsonLdRetriever
class, which the endpoint used exclusively.Review Instructions
Confirm that the endpoint has been removed.
Issue
https://ucsc-cgl.atlassian.net/browse/SEAB-6173
Security and Privacy
No concerns.
e.g. Does this change...
Please make sure that you've checked the following before submitting your pull request. Thanks!
mvn clean install
@RolesAllowed
annotation