Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Commits
e28a999a
Commit
e28a999a
authored
2 years ago
by
Nathan Bockisch
Browse files
Options
Downloads
Patches
Plain Diff
WS-1114: Annihilator Fixes
parent
bb106946
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!996
WS-1114: Annihilator Fixes
Pipeline
#5928
passed
2 years ago
Stage: cache-build
Stage: build
Stage: unit-test
Stage: test-coverage
Stage: push
Stage: deploy-coverage-page
Stage: generate-yaml
Stage: trigger
Stage: deploy
Stage: .post
Pipeline: workspaces
#5930
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/cli/executables/pexable/ws_annihilator/ws_annihilator/annihilator.py
+5
-6
5 additions, 6 deletions
...bles/pexable/ws_annihilator/ws_annihilator/annihilator.py
services/workflow/workflow/server.py
+11
-5
11 additions, 5 deletions
services/workflow/workflow/server.py
with
16 additions
and
11 deletions
apps/cli/executables/pexable/ws_annihilator/ws_annihilator/annihilator.py
+
5
−
6
View file @
e28a999a
...
...
@@ -7,13 +7,12 @@ import logging
import
os
import
pathlib
import
shutil
from
enum
import
Enum
import
requests
import
sys
from
argparse
import
ArgumentParser
from
enum
import
Enum
from
typing
import
Dict
,
List
import
sy
s
import
request
s
from
pycapo
import
CapoConfig
logger
=
logging
.
getLogger
(
__name__
)
...
...
@@ -166,8 +165,8 @@ class Annihilator:
# catch empty string response
if
dir_list
:
for
stale
in
dir_list
.
split
(
"
,
"
):
# catch empty string directory or whitespace only directory
if
stale
and
not
stale
.
isspace
():
# catch empty string directory or whitespace only directory
or VLASS directory (VLASS will handle VLASS)
if
stale
and
not
stale
.
isspace
()
and
not
stale
.
startswith
(
"
VLASS
"
)
:
name_list
.
append
(
pathlib
.
Path
(
str
(
stale
)).
stem
)
return
name_list
...
...
This diff is collapsed.
Click to expand it.
services/workflow/workflow/server.py
+
11
−
5
View file @
e28a999a
...
...
@@ -553,11 +553,17 @@ class WorkflowRequestRestService:
directory
=
self
.
request
.
json_body
[
"
directory
"
]
update_to
=
eval
(
self
.
request
.
json_body
[
"
update_to
"
])
req
=
self
.
request
.
info
.
lookup_workflow_request_by_directory
(
directory
)
self
.
request
.
info
.
update_request_cleaned
(
req
,
update_to
)
return
Response
(
status_code
=
http
.
HTTPStatus
.
OK
,
body
=
f
"
SUCCESS: Updated workflow request #
{
req
.
workflow_request_id
}
to
{
update_to
}
"
,
)
if
req
:
self
.
request
.
info
.
update_request_cleaned
(
req
,
update_to
)
return
Response
(
status_code
=
http
.
HTTPStatus
.
OK
,
body
=
f
"
SUCCESS: Updated workflow request #
{
req
.
workflow_request_id
}
to
{
update_to
}
"
,
)
else
:
return
Response
(
status_code
=
http
.
HTTPStatus
.
OK
,
body
=
f
"
SKIPPED: Directory
{
directory
}
does not belong to the current system.
"
,
)
@view_defaults
(
route_name
=
"
workflow_request_files
"
,
renderer
=
"
json
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment