Commit Graph

122 Commits

Author SHA1 Message Date
Andrey Melnikov
f7770618ca update: added parameter to control listing of system workflows 2020-09-24 12:32:35 -07:00
Andrey Melnikov
7b404ff0b6 fix: issue where workflow statistics report may have null for last executed. 2020-09-18 12:47:24 -07:00
Andrey Melnikov
d524c3cb66 update: fixed issue where GetWorkflowExecutionStatisticsForNamespace included workspace workflows (is_system = true). Added support for filtering by phase. 2020-09-16 19:37:10 -07:00
Andrey Melnikov
a9953683a9 feat: added endpoint to get the workflow execution statistics for a namespace 2020-09-16 19:37:10 -07:00
Andrey Melnikov
d4d4884e5b feat: initial pagination updates 2020-09-16 18:26:51 -07:00
Andrey Melnikov
fc7ef5ffac feat: added retry last action support for workspaces and new failure states 2020-09-10 12:30:18 -07:00
Andrey Melnikov
c81c2d7672 update: fixed issues where workspace template version labels were not being correctly set/got. Also updated generic server endpoints with new logic 2020-08-09 13:45:24 -07:00
Andrey Melnikov
81e3a7f299 fix: wrong namespace variable passed in 2020-07-28 11:53:27 -07:00
Andrey Melnikov
25049535e3 feat: Added generator for web routes. Added url for workflow executions. 2020-07-28 11:12:19 -07:00
Andrey Melnikov
017c3ca899 update: CreateWorkflowExecution now takes in a WorkflowTemplate so it can be more easily configured. Workspaces do this by injecting runtime variables. 2020-06-20 13:18:52 -07:00
Andrey Melnikov
d209423100 clean:
* updated method names to fit go conventions of uppercase. Db -> DB
* updated some method calls to use updated column select functions to remove extraneous empty string
* updated methods to use new label function that does nothing if no labels are passed in, this simplifies the code.
* updated some methods to use new Selectx function, reducing code in caller.
2020-06-20 13:18:52 -07:00
Andrey Melnikov
8684e44632 update: added logic to inject runtime variables in Workspace templates 2020-06-18 12:40:08 -07:00
rushtehrani
5f6bda8838 refactor: clean up client code 2020-06-08 15:25:02 -07:00
Aleksandr Melnikov
81566969c7 Merge pull request #223 from onepanelio/feat/ns-scoped-artifact-config
feat: ns scoped artifact config
2020-05-20 13:32:19 -07:00
Andrey Melnikov
f3deea797b update: reworked watching workflow execution to keep watching until the workflow is done or failed. 2020-05-20 11:23:03 -07:00
rushtehrani
2df35cb27e add workflow status webhook 2020-05-19 17:33:02 -07:00
Andrey Melnikov
f8d7ec73ba fix: deleting labels and getting labels for workflow execution
* Fixed issue where ReplaceLabels did not work when no labels were passed in (a delete essentially)
* Updated workflow execution to also get the labels
* Removed unusued GetResourceIdBuilder method.
2020-05-17 13:25:08 -07:00
Aleksandr Melnikov
735b10c025 Refactored name to uid. 2020-05-14 10:31:33 -07:00
Aleksandr Melnikov
460b7c0604 Putting UID back as part of the WorkflowExecution response. 2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
b41c2ea848 Changed name to uid for CloneWorkflowExecution.
- Added supporting changes
2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
c1ce0ad17b Changed name to uid for WatchWorkflowExecution. 2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
d308761f27 Changed name to uid for GetWorkflowExecution. 2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
8f257ca73e Removing UID as a value returned by the API request.
- This value is not managed by the user in the UI
- It may impact the UI code, to be determined
2020-05-14 10:29:55 -07:00
Andrey Melnikov
e339e698d0 update: Workflow Execution body into a separate message 2020-05-08 13:25:58 -07:00
Andrey Melnikov
872ed2d9af update/fix: fixed issue where parameters were not being sent with API response.
Fixed issue where cron workflows did not apply their labels to the newly created workflow executions.
2020-05-06 15:39:55 -07:00
Andrey Melnikov
d6c9ffb1c1 fix: Added a clone workflow execution endpoint and cleaned up code a bit. 2020-05-05 12:19:06 -07:00
rushtehrani
af82c312a7 move workspace_types and common_types and refactor Parameter alias 2020-04-29 17:31:44 -07:00
Andrey Melnikov
d493bfb19a Merge remote-tracking branch 'origin/feat/workspaces' into feat/integrate.workflow.changes 2020-04-29 09:53:22 -07:00
rushtehrani
beea0ce69e refactor workflow stats 2020-04-28 16:59:24 -07:00
Andrey Melnikov
7528348aaf Merge remote-tracking branch 'origin/feat/workspaces' into feat/integrate.workflow.changes 2020-04-28 10:21:23 -07:00
rushtehrani
07fe5325af check auth and use env var for token 2020-04-27 21:19:51 -07:00
Andrey Melnikov
9c193b3616 feature: centralize labels to one location. 2020-04-27 19:55:44 -07:00
Andrey Melnikov
1920eb5ed0 update: database records for all resources. 2020-04-27 09:32:45 -07:00
Aleksandr Melnikov
74b3043db1 Using workflow name instead of uuid. 2020-04-22 11:58:52 -07:00
Aleksandr Melnikov
5128135be7 Added endpoint for workflows created by Crons to ping, when they start. 2020-04-21 16:58:13 -07:00
Aleksandr Melnikov
08a432cf23 Updated endpoint called by CURL.
- CreatedAt is no longer parsed
- Passing in uid from request
2020-04-20 15:22:36 -07:00
Andrey Melnikov
ad36870b28 fix: wrong workflow status for success 2020-04-16 15:21:00 -07:00
Andrey Melnikov
74f1019e76 Merge branch 'feat/core.144-workflow.stats' into feat/dev-core-144-workflow.stats 2020-04-16 14:44:11 -07:00
Andrey Melnikov
6d2d7a0f03 fix: occasional nil access for stats 2020-04-16 13:46:13 -07:00
Andrey Melnikov
259c9f8a57 clean: cleaned up code for getting/setting parameters. 2020-04-15 16:22:45 -07:00
Aleksandr Melnikov
01bbca6c73 Renamed WorkflowStatistics to just Stats.
Changed value types so they come back as integers in JSON.
2020-04-15 15:16:45 -07:00
Aleksandr Melnikov
72df98834c Adding code to return the WorkflowStatistics with the ListTemplates
response.
2020-04-15 15:03:07 -07:00
Andrey Melnikov
aac67a9c6d feat: reworked parameters to be annotations - first draft 2020-04-15 10:43:41 -07:00
Aleksandr Melnikov
8cdafc77cb Adjusting the JSON Body
- Since we are posting to HTTP, we do not need the surrounding pieces.
Just the "Body".
- Removing debugging statements.
2020-04-14 18:39:11 -07:00
Aleksandr Melnikov
332e7176d8 Adding new layout for parsing createdAt
- Debugging code kept in
2020-04-14 17:57:56 -07:00
Aleksandr Melnikov
1e594eb63f Parsing the created_at timestamp from Argo workflow. 2020-04-14 14:03:24 -07:00
Aleksandr Melnikov
ac8c3e39b1 Updated code to execute a SQL request to insert into workflow_executions. 2020-04-14 12:25:22 -07:00
Andrey Melnikov
a5060a71ae fix: Get label requests now use "get" permission instead of "create" 2020-04-14 11:22:54 -07:00
Andrey Melnikov
fa7dd28a9a fix: permission verbs for adding/replacing labels are now "update" instead of "create" 2020-04-14 11:20:20 -07:00
Aleksandr Melnikov
e2152058c6 Adding function to accept workflow statistics.
- Currently, code outputs the request for debugging purposes.
2020-04-14 10:27:49 -07:00