Signed-off-by: Seongmin Lee git@boltless.me
+34
api/tangled/pipelinecancelPipeline.go
+14
appview/pages/templates/repo/pipelines/workflow.html
+85
-1
appview/pipelines/pipelines.go
+3
-3
appview/state/router.go
+33
lexicons/pipeline/cancelPipeline.json
+4
spindle/db/events.go
+1
spindle/server.go
+97
spindle/xrpc/pipeline_cancelPipeline.go
+3
spindle/xrpc/xrpc.go
History
7 rounds
7 comments
1 commit
expand
collapse
Signed-off-by: Seongmin Lee <git@boltless.me>
expand 0 comments
1 commit
expand
collapse
Signed-off-by: Seongmin Lee <git@boltless.me>
expand 1 comment
1 commit
expand
collapse
Signed-off-by: Seongmin Lee <git@boltless.me>
expand 0 comments
1 commit
expand
collapse
Signed-off-by: Seongmin Lee <git@boltless.me>
expand 0 comments
1 commit
expand
collapse
Signed-off-by: Seongmin Lee <git@boltless.me>
expand 0 comments
1 commit
expand
collapse
Signed-off-by: Seongmin Lee <git@boltless.me>
expand 6 comments
requesting a review @oppi.li
can we allow owners to also cancel pipelines?
sorry, i mean collaborators.
@oppi.li I'm not sure how should I implement that. We don't have repo:pipeline action defined for repo owners and contributors.
For example, setting access is controlled by repo:settings.
Should I just check for both repo:owner and repo:contributor as a dirty fix?
can we allow collaborators to also cancel pipelines?
@oppi.li I think we can merge this for now. Spindle's collaborator ingesting logic is currently broken so allowing them to cancel pipelines will reveal the bug. I'll make it possible on upcoming PR I'm working on sl/spindle-rewrite branch.
reviews:
- here, we should use
config.Core.Dev - here, don't set expiry, the default is already 60s into the future
- there is no auth filter for the cancel button on the appview side, the button should only be visible to repo owners + collaborators, and the
/workflow/cancelendpoint should return 403 for non-collaborators and non-owners. - here, the error message needs to be "Failed to cancel workflow", not "Failed to add secret"
the rest of the code is brilliant, will give this a test locally as well!
1 commit
expand
collapse
Signed-off-by: Seongmin Lee <git@boltless.me>
,failedis spelled asdailed`err := fmt.Errorf(...)should probably be removed.