Commit Graph

959 Commits

Author SHA1 Message Date
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
Andrey Melnikov
1daca92c3e Merge pull request #215 from onepanelio/feat/archive.workspace.templates
Feat/archive.workspace.templates
2020-05-20 13:36: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
Rush Tehrani
af98871c0f Merge pull request #220 from onepanelio/fix/crashing.workflow.execution.watch
fix: fixed an issue where workflow watch crashed and closed web…
2020-05-20 13:30:36 -07:00
Andrey Melnikov
60e85c76e5 Merge pull request #224 from onepanelio/feat/core.214.errors
fix: added more detailed error message for 409 workspace template to …
2020-05-20 12:30:31 -07:00
Andrey Melnikov
d4f849073c fix: added more detailed error message for 409 workspace template to distinguish between archived workspace taking the name, or another template.
Also changed IsArchived to be a bool type instead of string for workspace template type, as that's what it is in the database.
2020-05-20 12:29:28 -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
933e1fa6fd add json tags for proper marshalling 2020-05-19 17:53: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
227d9c0d4e move functions to respective types 2020-05-19 14:57:41 -07:00
Andrey Melnikov
e0096f9be6 documentation: for ArchiveWorkspaceTemplate 2020-05-19 13:57:44 -07:00
Andrey Melnikov
4f8a92c7a4 fix: added case where a workspace is terminating - a workspace can be archived if all of it's workspaces are terminating. 2020-05-19 13:54:01 -07:00
Andrey Melnikov
21baabd634 update: check if workspace template has running workspaces before archiving it. 2020-05-19 13:47:38 -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
Andrey Melnikov
2c9dbf52b3 feature: Added ArchiveWorkspaceTemplate endpoint.
update: listing workspace templates ignores archived ones now.
2020-05-19 11:27:19 -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
Andrey Melnikov
afda5003e7 fix: issue where workspace labels were not persisting on creation 2020-05-18 19:19:16 -07:00
Rush Tehrani
ac229239fa Merge pull request #210 from onepanelio/feat/core.208-expose.isauthorized
Feat/core.208 expose.isauthorized
2020-05-18 18:20:45 -07:00
Aleksandr Melnikov
abea64f05f Merge pull request #209 from onepanelio/feat/input-artifacts-config
feat: update namespace config structure
2020-05-18 16:53:51 -07:00
Andrey Melnikov
72fbff18cd fix: issue where workflow template labels did not work 2020-05-18 16:38:17 -07:00
rushtehrani
674c4f81e5 inject default artifact repository 2020-05-18 15:48:38 -07:00
Aleksandr Melnikov
e2d286356f Updating isAuthorized function name to isValidToken
- Simplified the returned values to just err.
- Updating related code
2020-05-18 14:17:38 -07:00
Aleksandr Melnikov
8f94318944 Renaming err2. 2020-05-18 14:03:58 -07:00
Aleksandr Melnikov
e0cca02a3a Added IsAuthorized function to AuthServer
- Put a helper function into isAuthorized.
2020-05-18 13:49:31 -07:00
Aleksandr Melnikov
2b67724e35 Adding IsAuthorized endpoint. 2020-05-18 13:49:27 -07:00
Andrey Melnikov
66760c5f44 fix: issue where labels were not editable for workspaces. 2020-05-18 13:09:02 -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
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
Andrey Melnikov
b9ccacc2ea fix: issue where workspace template labels were not working. 2020-05-16 17:37:47 -07:00
Aleksandr Melnikov
a19ae1c1c3 Merge pull request #206 from onepanelio/fix/cron
fix: cron workflow execution
2020-05-15 15:26:40 -07:00
rushtehrani
094503174c remove uid from workspace_template_versions 2020-05-15 13:41:56 -07:00
rushtehrani
1eb25e1b67 fix migrations 2020-05-15 13:27:02 -07:00
rushtehrani
fb09fb621d fix migrations 2020-05-15 13:11:04 -07:00
Andrey Melnikov
feeb42a038 fix: workflow_execution returns a pointer to workflow with get method, so type cast needs to reflect this. 2020-05-15 12:38:13 -07:00
rushtehrani
655bb3c15f don't generate UUID 2020-05-15 12:31:19 -07:00
rushtehrani
96a969fbdb remove label uid and fix migration 2020-05-15 11:25:45 -07:00
Rush Tehrani
84c19a231c Merge pull request #204 from onepanelio/feature/workspace.adjustments
Feature/workspace.adjustments
2020-05-14 20:45:04 -07:00
Rush Tehrani
c075719165 Merge pull request #201 from onepanelio/feat/combined
uid + env var changes
2020-05-14 20:41:15 -07:00