Monorepo for Tangled tangled.org

lexicons,appview,spindle: add workflow cancel #889

open
opened by boltless.me targeting master from sl/okmkyytolvko
0
by boltless.me 0 comments
expand 1 commit
lexicons,appview,spindle: add workflow cancel
sign up or login to add to the discussion
1
by boltless.me 6 comments
expand 1 commit
lexicons,appview,spindle: add workflow cancel

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/cancel endpoint 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!

sign up or login to add to the discussion
2
by boltless.me 0 comments
expand 1 commit
lexicons,appview,spindle: add workflow cancel
3
by boltless.me 0 comments
expand 1 commit
lexicons,appview,spindle: add workflow cancel
4
by boltless.me 0 comments
expand 1 commit
lexicons,appview,spindle: add workflow cancel
5
by boltless.me 0 comments
expand 1 commit
lexicons,appview,spindle: add workflow cancel
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.pull/3m7zmleup7g22