-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(workflow): allow API to accept tags for experiments
Users can now send key=value pairs via URL requests to the API when applying a configuration file. Currently, any query in the form 'tag=key=value' will be stored as an experiment annotation named `phenix.workflow/tags`, with the value being a simple coma-separated string of the tags. Take the following URL as an example. ``` /api/v1/workflow/apply/{BRANCH}?tag=key1=value1&tag=key2=value&foo=bar ``` This will result in the following annotation being added to the experiment metadata. ``` metadata: annotations: "phenix.workflow/tags": "key1=value1,key2=value2" ``` Note that the `foo=bar` query parameter is ignored. These tags are then recorded with other info after each scorch run.
- Loading branch information
1 parent
d4dcb33
commit 57dbdc3
Showing
5 changed files
with
42 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters