-
Notifications
You must be signed in to change notification settings - Fork 18
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
!feat: enable user defined 'id' for reports so that the get URL can be stable. Breaking change as 'id' will be required to function. #4520
Conversation
backend/molgenis-emx2-webapi/src/main/java/org/molgenis/emx2/web/ZipApi.java
Outdated
Show resolved
Hide resolved
backend/molgenis-emx2-webapi/src/main/java/org/molgenis/emx2/web/JsonApi.java
Outdated
Show resolved
Hide resolved
backend/molgenis-emx2-webapi/src/main/java/org/molgenis/emx2/web/ZipApi.java
Outdated
Show resolved
Hide resolved
…report_editable_id
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.
Code looks good
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.
This is a really good feature that will help us with the dashboards and other custom applications. I have a few comments about the documentation as well as some potential limitations.
Questions / pitfalls
Should there be strict rules regarding the ID of the report? For example, I created a report in the preview called "country summary". Calling the report over the api at https://preview-emx2-pr-4520.dev.molgenis.org/test/api/report/country%20summary/ returns a "file not found" error. I would expect it to work as noted in the documentation. If I rename the report to "country", then it works fine.
What is the correct API URL for the reports?
Are there multiple options for requesting a report? This is a follow up to the previous item. There are multiple endpoints for retrieving a report output. Is this expected?
http://<host>/<schema>/api/reports/<report>
http://<host>/<schema>/api/reports/json?id=<report>
Quality Gate passedIssues Measures |
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.
Looks good! I think we can merge.
What are the main changes you did
How to test
Question to reviewers:
enhancements skipped in view of time