Closed eecavanna closed 1 month ago
Hi @JamesTessmer, looks like I will have time to implement this after all. I'm working on something related, so it won't involve as much of a context switch as I had originally thought. I'll tag you as a reviewer in the PR.
@eecavanna Sounds good, thanks for the heads up! Tagging @mslarae13 in case you didn't see Eric's message
So far, I've implemented an endpoint that returns the same TSV file that I normally generate manually (using a Postgres client's "Export as TSV" button) and send to @mslarae13. This new endpoint will make that TSV file downloadable (to an admin) via the Swagger UI.
Still to do:
I'm going to move this to the next sprint.
I implemented this in PR https://github.com/microbiomedata/nmdc-server/pull/1290, which is ready for review.
FYI @mslarae13, this endpoint now exists on the Data Portal in the development environment.
https://data-dev.microbiomedata.org/api/metadata_submission/report
It will be introduced into the production environment at the next NMDC system release (next week).
THanks @eecavanna ! This is in production now?
Yes, it's there!
Create an API endpoint (accessible only by logged-in users that are admins) that responds with a TSV file containing a list of all Submission Portal submissions, including each one's:
id
Here's a SQL query that can be used to get that information:
Example output file (excerpt):
This API endpoint could be used by team members that are collecting metrics for reports.