Commit Graph

959 Commits

Author SHA1 Message Date
Andrey Melnikov
bad6fe47ec comment: added a comment explaining why we get templateParameters for workspace 2020-05-14 20:37:57 -07:00
rushtehrani
662f353512 update WorkflowExecutionStatisticReport struct 2020-05-14 20:19:20 -07:00
Andrey Melnikov
1595594dc8 fix: added back function that went missing. 2020-05-14 19:18:55 -07:00
rushtehrani
7eac879f40 gen with 3.11.4 version of protoc 2020-05-14 17:20:13 -07:00
Aleksandr Melnikov
56314a0850 Updating pb files. 2020-05-14 17:13:57 -07:00
Aleksandr Melnikov
62c8f5dcb2 Adding support for terminated workflow executions.
- When terminating, adding started_at and finished_at timestamps
Updated workflow_template.proto to return the count of terminated executions.
- Updating supporting code
2020-05-14 17:13:44 -07:00
Andrey Melnikov
21099b7627 update: Added template parameters to a workspace.
This is so we can get the options from a workflow template version, since the parameters for a workspace do not store options.
2020-05-14 16:45:48 -07:00
rushtehrani
61704062ba fix template version update uid 2020-05-14 15:57:44 -07:00
rushtehrani
f530a7fac2 fix workflowTemplate and version uid 2020-05-14 15:46:58 -07:00
Aleksandr Melnikov
076917278b Consolidated UID generation for WorkflowTemplate and WorkspaceTemplate 2020-05-14 15:04:49 -07:00
Aleksandr Melnikov
6a27719167 Updating TerminateWorkflowExecution to not remove the DB workflow entry.
- This keeps the Workflow in the UI list.
2020-05-14 13:47:10 -07:00
Andrey Melnikov
c9438a344b revert: undid storing the options as those can be obtained from the workflow template version. 2020-05-14 11:27:17 -07:00
Andrey Melnikov
9723f5685a update: store workspace parameter options in db 2020-05-14 11:19:55 -07:00
rushtehrani
195a332281 remove unused code 2020-05-14 10:45:38 -07:00
rushtehrani
4aeee1f2ac update api gen 2020-05-14 10:34:04 -07:00
Aleksandr Melnikov
9e48c3b406 Updating name generated to use onepanel uid generation. 2020-05-14 10:31:33 -07:00
Aleksandr Melnikov
3c0a138642 Adding development notes on how to develop core with minikube.
- Added disclaimer about minikube and driver VMWare.
2020-05-14 10:31:33 -07:00
Aleksandr Melnikov
fc10444656 Updating name to uid in cron_workflow and related code. 2020-05-14 10:31:33 -07:00
Aleksandr Melnikov
20151d5108 Adding generated proto files. 2020-05-14 10:31:33 -07:00
Aleksandr Melnikov
bcc72e2567 Changing name to uid for cron_workflow proto requests. 2020-05-14 10:31:33 -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
a400d64c81 Revert "Removing uid parameter from WorkflowExecution message."
This reverts commit d9e6c3195a3990dd363b79d9e834a220d6cf499d.

Per discussion, name is okay to return as part of the response.
- It will not be set by user for workflows
2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
c414673b13 Adding generated pb.go files. 2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
70e38c99c9 Removing uid parameter from WorkflowExecution message. 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
2048b7a4eb Using Onepanel UID generator. 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
Aleksandr Melnikov
452bbfe258 Changing "name" into "uid" for Workflow Execution paths.
- WIP, updates to Core API code remaining.
2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
4ad388e892 Adding import. 2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
b89a31323d Fixing error message.
- This is specific to us because of how we combine uid and namespace to create the subdomain.
2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
18a795f129 Using GenerateUID to clean up the names. 2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
184bb1247d Removing sys-uid appending.
- Workflow generates the name on creation. We're continuing to use
workflow.name.
2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
5e86a0e2aa Removing unused namespace parameter. 2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
2daa821cfb Removing label.WorkflowUid from label, for workflow execution. 2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
4bf928531a Fixing method name to fit go convention, per feedback. 2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
f437c9f0f9 Renaming function name per feedback.
- This is a onepanel uid.
2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
c7bd017725 Fixing error information. 2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
1420248489 Removing un-used function. 2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
998d6bcca4 Removing injected "sys-uid" since we're injecting it before createWorkflow is called. 2020-05-14 10:29:08 -07:00
Aleksandr Melnikov
f7d20e9d54 Exiting loop once param found. 2020-05-14 10:27:15 -07:00
Aleksandr Melnikov
263f963a4c Using parameters instead of labels. 2020-05-14 10:27:15 -07:00
Aleksandr Melnikov
6111abd740 Adding sys-uid to CreateWorkflowExecution.
- Appending if it does not exist
2020-05-14 10:27:15 -07:00
Aleksandr Melnikov
2a88ff8234 Changing length check. 2020-05-14 10:27:15 -07:00
Aleksandr Melnikov
68e7b6b10f Refactoring uid and namespace to be a maximum length of 30.
- 60 altogether
The reason is we use <uid>--<ns>.<domain> for workspace urls.
- The maximum length for the subdomain is 63, per k8s restriction.
These changes will result in a subdomain max of 62 (including the --).
2020-05-14 10:27:15 -07:00
Aleksandr Melnikov
6ce6991156 Changing uid varchar length. 2020-05-14 10:27:15 -07:00
Aleksandr Melnikov
55db5f2708 Adding util function to generate k8s compatible uids (to be used
for k8s name).
2020-05-14 10:27:15 -07:00
Aleksandr Melnikov
963dd9adcc Refactoring migrations.
- uid is now 63 chars long, to fit k8s requirement
- Updating unique indices to use uid and namespace
2020-05-14 10:27:15 -07:00