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

HC-247: Add User Access Control to Mozart API endpoints #25

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

NamrataM
Copy link
Member

Added access control to Mozart API for /job/submit and /job/list. This update is for v4.0.
Updated behavior:
/job/submit - username will now be added to the job metadata. We had this only when jobs were submitted from Tosca but the API. Now we propagate username information to the job's metadata and they show up under the username facet on Figaro.

/job/list -
If username is not provided, get all jobs information.
If username provided, filter to only jobs for that user.

  • Added a flag detailed for specifying the format of response.
    If detailed is True then, returns job ID, job status, job type and job param values. I extended the amount of information returned here because having hundreds of Job Ids are not useful to users when they are looking for their job history. It's more informative when they can see what those jobs were.
    If detailed is False then, it defaults to previous behavior of returning list of job IDs.
    Made this backwards compatible, so even if detailed flag is not provided the behavior will be same as before.

@NamrataM NamrataM self-assigned this Aug 14, 2020
@DustinKLo
Copy link
Contributor

@NamrataM you probably want to merge this to develop-es1 since these changes are more for HySDS v3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants