-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
[Service] Common Metadata endpoint #433
Comments
I'll take a look at this one. I was thinking of adding the github sha to the metadata output so we can display that in the front end (#399) |
hi @sellnat77, got a question for you when you have a minute. I'm trying to figure out how to access the sha of the latest commit from a python script, so we can serve it up to the client. There's lots of ways to get the sha if you have access to the Problem is, the I was looking at your workflow for publishing the backend image. Maybe there's a way we could inject the sha into the container as an environment variable? Thanks! |
I was just gonna say, let's go with the publish backend image workflow and utilize a environment variable Anything local will default to 'development' or 'local' and when we deploy we will just override that variable through the workflow |
Ok cool, I just did a PR...seems like it should work but I don't really know how to test this. |
Is there a way to do that for the frontend container too? I didn't see any environment variables in the workflow file |
Since the frontend is still being deployed via gh-pages this is the spot to drop in env variables |
got it, thanks! |
Description
This service will provide common metadata that is used by the frontend to drive filtering
Endpoint
Check or uncheck the supported methods
Accepted methods
POSTPath:
server:port/metadata
Inputs
This endpoint requires no inputs
Outputs
To allow the frontend to accurately display filters, the backend will query the db for common metadata
Use JSON code flags to describe the json payload
Relates to #428
The text was updated successfully, but these errors were encountered: