Skip to content

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

Open
NamrataM wants to merge 3 commits intodevelopfrom
HC-247
Open

HC-247: Add User Access Control to Mozart API endpoints#25
NamrataM wants to merge 3 commits intodevelopfrom
HC-247

Conversation

@NamrataM
Copy link
Copy Markdown
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 requested review from DustinKLo and gmanipon August 14, 2020 04:56
@NamrataM NamrataM self-assigned this Aug 14, 2020
@DustinKLo
Copy link
Copy Markdown
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