Commit Graph

175 Commits

Author SHA1 Message Date
rushtehrani
cee49e67f4 add ONEPANEL_PROVIDER env var 2020-07-02 16:44:22 -07:00
Andrey Melnikov
5a13be299f fix: code cleanup 2020-06-22 13:51:34 -07:00
Andrey Melnikov
3d5dcb632a docs: for various types and some variable name updates per go conventions 2020-06-22 13:43:17 -07:00
Andrey Melnikov
dea5eeda3b clean: WorkflowTemplateVersionId -> WorkflowTemplateVersionID 2020-06-22 12:29:26 -07:00
Andrey Melnikov
8cf8436afc fix: issue where archiving workspace template was breaking because it attempted to do so for every version, but there was no logical difference since it used the template 2020-06-22 12:11:55 -07:00
Andrey Melnikov
ab9627f249 docs: added more docs 2020-06-22 11:32:33 -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
6fe23c7ed8 clean: code cleanup and minor documentation 2020-06-18 12:40:09 -07:00
Andrey Melnikov
8684e44632 update: added logic to inject runtime variables in Workspace templates 2020-06-18 12:40:08 -07:00
Andrey Melnikov
88b20d878d update: workflow template created at is selected when listing workflow executions 2020-06-02 15:23:47 -07:00
Andrey Melnikov
64f6afc730 fix: replace KeyFormat placeholders with the actual value. 2020-05-29 11:43:13 -07:00
Andrey Melnikov
04bc8f2e12 update: hard-coded artifacts key format with the new config. 2020-05-29 11:27:08 -07:00
Andrey Melnikov
a138413c5f update: exit handler no longer depends on other exit handlers. This fixes an issue where the user's custom exit handler could crash, leaving ours not executed. 2020-05-28 16:14:16 -07:00
rushtehrani
3ebd7ab245 increase column size to 63 for cron workflows and workflo executions 2020-05-22 17:26:58 -07:00
Aleksandr Melnikov
cd4f429559 Merge branch 'develop' into feat/core.171-archiving.workflow.template.clean.up 2020-05-22 15:44:01 -07:00
Aleksandr Melnikov
bd38568e6b Fixing "is_archived" not being set on insert, which had unintentional
consequences for displaying data in UI.
2020-05-22 15:22:14 -07:00
Aleksandr Melnikov
16b3f37b1d Refactoring per feedback.
- https://github.com/onepanelio/core/pull/226#discussion_r429046881
Removing helper methods that are not saving code.
- This also fixes k8s / db methods that were exposed from the package.
Instead, using an ArchiveWorkflowExecution function to achieve
the same functionality.
2020-05-22 13:44:00 -07:00
Aleksandr Melnikov
375ef146f3 Removing unused function.
- Referenced: https://github.com/onepanelio/core/pull/226#discussion_r429026779
2020-05-22 12:53:40 -07:00
Aleksandr Melnikov
bc1236fef3 Updated cron workflow and workflow execution select queries.
- Exclude "is_archived" rows.
2020-05-22 11:59:43 -07:00
Aleksandr Melnikov
d4fbd71d55 Updating workflow execution selection to not return archived executions. 2020-05-21 22:37:50 -07:00
Aleksandr Melnikov
e8c28175f5 Fixing queries not executing. 2020-05-21 22:33:12 -07:00
Aleksandr Melnikov
860dc7398c Updating function names per feedback. 2020-05-21 22:20:00 -07:00
Aleksandr Melnikov
1a9ce9870d Refactoring DB queries related to archiving.
- Using Squirrel RunWith instead of ToSql.
2020-05-21 22:19:26 -07:00
Rush Tehrani
d273037954 Merge pull request #236 from onepanelio/fix/onepanelio.core.234-workflow.details.issues
Fix/onepanelio.core.234 workflow.details.issues
2020-05-21 16:07:28 -07:00
Andrey Melnikov
ea5d4d56fb update: Updated GetWorkflowExecution request to also get information for the workflow template, since we query for it anyway. 2020-05-21 15:13:26 -07:00
rushtehrani
79aa54c0c1 don't compress artifacts by default 2020-05-21 08:35:13 -07:00
Aleksandr Melnikov
68ffbb1d93 Refactoring raw SQL to use squirrel. 2020-05-20 15:53:12 -07:00
Aleksandr Melnikov
b79cfa019f Added code to clean up Workflow Executions.
- Removes db and k8s entries.
2020-05-20 14:59:01 -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
rushtehrani
6d0260a623 get artifactRepository config separately 2020-05-20 12:15:53 -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
Andrey Melnikov
dc1972a808 fix: (WIP) fixed an issue where workflow watch crashed and closed websocket, despite the workflow still running. 2020-05-19 20:59:05 -07:00
rushtehrani
609f24fcb2 update documentation 2020-05-19 18:03:58 -07:00
rushtehrani
a7d075e7c7 use correct http method 2020-05-19 17:40:22 -07:00
rushtehrani
2df35cb27e add workflow status webhook 2020-05-19 17:33:02 -07:00
rushtehrani
260dd334f6 update api + remove unused import 2020-05-19 12:57:37 -07:00
Andrey Melnikov
9deee0cc8c Merge pull request #213 from onepanelio/feat/resource-env-vars
feat: resource env vars
2020-05-19 12:43:55 -07:00
rushtehrani
8540bb82b7 add comment to function + named return value 2020-05-19 12:40:22 -07:00
rushtehrani
ac8c622769 remove length check since range will not iterate on 0 length slices 2020-05-19 12:31:15 -07:00
Rush Tehrani
e75170d468 Merge pull request #205 from onepanelio/fix/labels
fix: remove label uid and fix migration
2020-05-19 11:38:48 -07:00
rushtehrani
679d7e50b5 add resource env vars 2020-05-18 22:10:44 -07:00
rushtehrani
3f5108121b remove unused methods 2020-05-18 21:43:02 -07:00
rushtehrani
8ddab20769 append artifact repository to outputs as well if only key is provided 2020-05-18 19:49:18 -07:00
rushtehrani
674c4f81e5 inject default artifact repository 2020-05-18 15:48:38 -07:00
Andrey Melnikov
756010958d fix: GetWorkflowExecution now gets the same columns as List.
Also minor cleanup with method calls.
2020-05-18 12:47:04 -07:00
rushtehrani
cf7d52bb19 namespace config updates 2020-05-18 12:34:05 -07:00
Andrey Melnikov
14af381877 fix: issue where cloning a workflow by uid didn't work. 2020-05-17 14:03:23 -07:00
rushtehrani
655bb3c15f don't generate UUID 2020-05-15 12:31:19 -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
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