René's URL Explorer Experiment


Title: feat: Allow user to cancel workspace jobs by mtojek · Pull Request #5115 · coder/coder · GitHub

Open Graph Title: feat: Allow user to cancel workspace jobs by mtojek · Pull Request #5115 · coder/coder

X Title: feat: Allow user to cancel workspace jobs by mtojek · Pull Request #5115 · coder/coder

Description: Secure environments for developers and their agents - feat: Allow user to cancel workspace jobs by mtojek · Pull Request #5115 · coder/coder

Open Graph Description: Fixes: #5035 This PR adds a condition to workspacebuilds to allow/block cancel requests to workspace jobs. If the flag allow_user_cancel_workspace_jobs is disabled, only users with the "owner&...

X Description: Fixes: #5035 This PR adds a condition to workspacebuilds to allow/block cancel requests to workspace jobs. If the flag allow_user_cancel_workspace_jobs is disabled, only users with the "ow...

Opengraph URL: https://github.com/coder/coder/pull/5115

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:1cfe77f6-6471-7473-0364-40bf5669f61c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA212:1F2D:1F89C2F:27F1D42:6B01A1E3
html-safe-nonce4892bd1e63e264040c51c3215f3d6216414166f28991b8bfbe056ce477d431d3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjEyOjFGMkQ6MUY4OUMyRjoyN0YxRDQyOjZCMDFBMUUzIiwidmlzaXRvcl9pZCI6IjQ3Mjk3Mzc0MzU0ODU5MzgxNDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac698c7c6f56328ecf6672f5498006acb9eb84bc4ace0f16a20654122888420cac
hovercard-subject-tagpull_request:1125834047
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/coder/coder/5115/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/abee673dea45bd929316586d19370e9a00a36be1e6f4f5dedd54e1b39afedc0c/coder/coder/pull/5115
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/abee673dea45bd929316586d19370e9a00a36be1e6f4f5dedd54e1b39afedc0c/coder/coder/pull/5115
og:image:altFixes: #5035 This PR adds a condition to workspacebuilds to allow/block cancel requests to workspace jobs. If the flag allow_user_cancel_workspace_jobs is disabled, only users with the "owner&...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemtojek
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-cache
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/coder/coder/pull/5115#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F5115
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F5115
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=coder%2Fcoder
Reloadhttps://github.com/coder/coder/pull/5115
Reloadhttps://github.com/coder/coder/pull/5115
Reloadhttps://github.com/coder/coder/pull/5115
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests470 (470)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
https://github.com/coder/coder
mtojekhttps://github.com/mtojek
coder:mainhttps://github.com/coder/coder/tree/main
mtojek:5035-allow-user-cancelhttps://github.com/mtojek/coder/tree/5035-allow-user-cancel
Conversationhttps://github.com/coder/coder/pull/5115
Commits19 (19)https://github.com/coder/coder/pull/5115/commits
Checkshttps://github.com/coder/coder/pull/5115/checks
Files changedhttps://github.com/coder/coder/pull/5115/files
feat: Allow user to cancel workspace jobshttps://github.com/coder/coder/pull/5115#top
mtojekhttps://github.com/mtojek
coder:mainhttps://github.com/coder/coder/tree/main
mtojek:5035-allow-user-cancelhttps://github.com/mtojek/coder/tree/5035-allow-user-cancel
https://github.com/mtojek
mtojekhttps://github.com/mtojek
Nov 17, 2022https://github.com/coder/coder/pull/5115#issue-1453161321
Please reload this pagehttps://github.com/coder/coder/pull/5115
#5035https://github.com/coder/coder/issues/5035
https://user-images.githubusercontent.com/14044910/202715463-c363e687-3b43-4eaa-997a-ff774c9073ae.png
https://user-images.githubusercontent.com/14044910/202715569-ec2c646c-fd90-4e20-9831-5996118dd63c.png
Please reload this pagehttps://github.com/coder/coder/pull/5115
mtojekhttps://github.com/mtojek
November 17, 2022 10:50https://github.com/coder/coder/pull/5115#commits-pushed-4dcbf5c
https://github.com/mtojek
Add database column allow_user_cancel_workspace_jobshttps://github.com/coder/coder/pull/5115/commits/4dcbf5c98e315fdf67a4a2b391275d296c9c8dcd
4dcbf5chttps://github.com/coder/coder/pull/5115/commits/4dcbf5c98e315fdf67a4a2b391275d296c9c8dcd
https://github.com/mtojek
Adjust APIhttps://github.com/coder/coder/pull/5115/commits/400413ebb9d5d061403bd15bde5804dcf91380fe
400413ehttps://github.com/coder/coder/pull/5115/commits/400413ebb9d5d061403bd15bde5804dcf91380fe
https://github.com/mtojek
site: typesGenerated.tshttps://github.com/coder/coder/pull/5115/commits/7f8dcaad571d313467fcec1a25925ed3e8a4b116
7f8dcaahttps://github.com/coder/coder/pull/5115/commits/7f8dcaad571d313467fcec1a25925ed3e8a4b116
https://github.com/mtojek
Expose template.allow_ in Workspaces APIhttps://github.com/coder/coder/pull/5115/commits/3f76534f9d7336fd095cc97a8d1924cd94b16439
3f76534https://github.com/coder/coder/pull/5115/commits/3f76534f9d7336fd095cc97a8d1924cd94b16439
https://github.com/mtojek
Fix: site testshttps://github.com/coder/coder/pull/5115/commits/64b8bf377f20f28247202e145a9772e1323b2248
64b8bf3https://github.com/coder/coder/pull/5115/commits/64b8bf377f20f28247202e145a9772e1323b2248
https://github.com/mtojek
Fix: make fmt/prettierhttps://github.com/coder/coder/pull/5115/commits/73431c9d63d1df385be92b5f67434ff04b7411e0
73431c9https://github.com/coder/coder/pull/5115/commits/73431c9d63d1df385be92b5f67434ff04b7411e0
https://github.com/mtojek
mtojekhttps://github.com/mtojek
Nov 17, 2022https://github.com/coder/coder/pull/5115#event-7832813470
https://github.com/mtojek
mtojekhttps://github.com/mtojek
Nov 17, 2022https://github.com/coder/coder/pull/5115#event-7832815103
mtojekhttps://github.com/mtojek
November 17, 2022 12:23https://github.com/coder/coder/pull/5115#commits-pushed-ba5c06b
https://github.com/mtojek
Fix: enterprisehttps://github.com/coder/coder/pull/5115/commits/ba5c06bf7677b5e0da6affafbf6e5bc25f0a3ee3
ba5c06bhttps://github.com/coder/coder/pull/5115/commits/ba5c06bf7677b5e0da6affafbf6e5bc25f0a3ee3
https://github.com/mtojek
Database testshttps://github.com/coder/coder/pull/5115/commits/9be6b1f1059ab7402506fb8c6eb076cd4d1b3db7
9be6b1fhttps://github.com/coder/coder/pull/5115/commits/9be6b1f1059ab7402506fb8c6eb076cd4d1b3db7
https://github.com/mtojek
Add CLI testshttps://github.com/coder/coder/pull/5115/commits/8579883730268a7dc66bb39ecaea03fff83864f1
8579883https://github.com/coder/coder/pull/5115/commits/8579883730268a7dc66bb39ecaea03fff83864f1
https://github.com/mtojek
Add checkboxhttps://github.com/coder/coder/pull/5115/commits/3fe5beff799814ab51a211a543fa44f04df4228f
3fe5befhttps://github.com/coder/coder/pull/5115/commits/3fe5beff799814ab51a211a543fa44f04df4228f
https://github.com/mtojek
i18nhttps://github.com/coder/coder/pull/5115/commits/9a303b5561cd56a21942565760bdf4786f4eb38e
9a303b5https://github.com/coder/coder/pull/5115/commits/9a303b5561cd56a21942565760bdf4786f4eb38e
https://github.com/mtojek
Logic: block cancellinghttps://github.com/coder/coder/pull/5115/commits/ba443ebdb22856c1fb17345fa11c4783515b87be
ba443ebhttps://github.com/coder/coder/pull/5115/commits/ba443ebdb22856c1fb17345fa11c4783515b87be
https://github.com/mtojek
Unit tests for conditional cancelhttps://github.com/coder/coder/pull/5115/commits/7d36b2d1b2832c12c0259b60445c1a5f1b003287
7d36b2dhttps://github.com/coder/coder/pull/5115/commits/7d36b2d1b2832c12c0259b60445c1a5f1b003287
https://github.com/mtojek
Fix: messagehttps://github.com/coder/coder/pull/5115/commits/472fee8cd15daf9a63351dd722d09169fe75338a
472fee8https://github.com/coder/coder/pull/5115/commits/472fee8cd15daf9a63351dd722d09169fe75338a
https://github.com/mtojek
Merge branch 'main' into 5035-allow-user-cancelhttps://github.com/coder/coder/pull/5115/commits/056894a5251eaab13475bcb809813d772cbe6a3a
056894ahttps://github.com/coder/coder/pull/5115/commits/056894a5251eaab13475bcb809813d772cbe6a3a
https://github.com/mtojek
mtojekhttps://github.com/mtojek
November 18, 2022 13:29https://github.com/coder/coder/pull/5115#event-7843801107
https://github.com/mtojek
mtojekhttps://github.com/mtojek
November 18, 2022 13:29https://github.com/coder/coder/pull/5115#event-7843802842
https://github.com/mtojek
mtojekhttps://github.com/mtojek
code ownerhttps://github.com/coder/coder/blob/5866ca48a938614222c32fae9deeb5e7de30d420/.github/CODEOWNERS#L1
November 18, 2022 13:29https://github.com/coder/coder/pull/5115#event-7843802895
https://github.com/mtojek
mtojekhttps://github.com/mtojek
BrunoQuaresmahttps://github.com/BrunoQuaresma
November 18, 2022 13:29https://github.com/coder/coder/pull/5115#event-7843802931
https://github.com/BrunoQuaresma
BrunoQuaresmahttps://github.com/BrunoQuaresma
Nov 18, 2022 https://github.com/coder/coder/pull/5115#pullrequestreview-1186439057
View reviewed changes https://github.com/coder/coder/pull/5115/files/056894a5251eaab13475bcb809813d772cbe6a3a
BrunoQuaresmahttps://github.com/BrunoQuaresma
https://github.com/coder/coder/pull/5115#pullrequestreview-1186439057
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/5115
https://github.com/mtojek
Address PR commenthttps://github.com/coder/coder/pull/5115/commits/4ec5aabf3ea7113135d291209d16cb419f9886de
4ec5aabhttps://github.com/coder/coder/pull/5115/commits/4ec5aabf3ea7113135d291209d16cb419f9886de
https://github.com/mtojek
mtojekhttps://github.com/mtojek
Nov 18, 2022https://github.com/coder/coder/pull/5115#issuecomment-1320379085
Please reload this pagehttps://github.com/coder/coder/pull/5115
https://github.com/mafredri
mafredrihttps://github.com/mafredri
Nov 21, 2022 https://github.com/coder/coder/pull/5115#pullrequestreview-1187853228
View reviewed changes https://github.com/coder/coder/pull/5115/files/4ec5aabf3ea7113135d291209d16cb419f9886de
mafredrihttps://github.com/mafredri
https://github.com/coder/coder/pull/5115#pullrequestreview-1187853228
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/5115
coderd/database/migrations/000081_template_allow_user_cancel_workspace_jobs.up.sqlhttps://github.com/coder/coder/pull/5115/files/4ec5aabf3ea7113135d291209d16cb419f9886de#diff-2e91eb29921a5d4238801f9e97ad411358825380bcffb9bff0599e1f0f9b5688
Please reload this pagehttps://github.com/coder/coder/pull/5115
coderd/workspacebuilds.gohttps://github.com/coder/coder/pull/5115/files/4ec5aabf3ea7113135d291209d16cb419f9886de#diff-798ff0da9c879a2067b17793a37b78dc954c7055bea94df7a3c4e6356eb04fab
Please reload this pagehttps://github.com/coder/coder/pull/5115
coderd/workspacebuilds.gohttps://github.com/coder/coder/pull/5115/files/4ec5aabf3ea7113135d291209d16cb419f9886de#diff-798ff0da9c879a2067b17793a37b78dc954c7055bea94df7a3c4e6356eb04fab
mafredrihttps://github.com/mafredri
Nov 21, 2022https://github.com/coder/coder/pull/5115#discussion_r1027786139
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/5115
mtojekhttps://github.com/mtojek
Nov 21, 2022https://github.com/coder/coder/pull/5115#discussion_r1027826641
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/5115
mafredrihttps://github.com/mafredri
Nov 21, 2022https://github.com/coder/coder/pull/5115#discussion_r1027841643
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/5115
codersdk/templates.gohttps://github.com/coder/coder/pull/5115/files/4ec5aabf3ea7113135d291209d16cb419f9886de#diff-b9e34422b1b14571ab97a9e8f1d061337aebbc749c251f5adcd13ddcada9d4b1
mafredrihttps://github.com/mafredri
Nov 21, 2022https://github.com/coder/coder/pull/5115#discussion_r1027791899
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/coder/coder/pull/5115
mtojekhttps://github.com/mtojek
Nov 21, 2022https://github.com/coder/coder/pull/5115#discussion_r1027829258
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#5066https://github.com/coder/coder/issues/5066
Please reload this pagehttps://github.com/coder/coder/pull/5115
mtojekhttps://github.com/mtojek
November 21, 2022 11:18https://github.com/coder/coder/pull/5115#commits-pushed-c215f5a
https://github.com/mtojek
Address PR commentshttps://github.com/coder/coder/pull/5115/commits/c215f5ae123296ba3e5318eb99b49de029197100
c215f5ahttps://github.com/coder/coder/pull/5115/commits/c215f5ae123296ba3e5318eb99b49de029197100
https://github.com/mtojek
Merge branch 'main' into 5035-allow-user-cancelhttps://github.com/coder/coder/pull/5115/commits/69c544f9e0421b2f7e15e6bdf956748604523b07
69c544fhttps://github.com/coder/coder/pull/5115/commits/69c544f9e0421b2f7e15e6bdf956748604523b07
https://github.com/mtojek
Fix: makehttps://github.com/coder/coder/pull/5115/commits/4e5ee76b7a712d09f8edcd65ac46d5455114b555
4e5ee76https://github.com/coder/coder/pull/5115/commits/4e5ee76b7a712d09f8edcd65ac46d5455114b555
https://github.com/mtojek
mtojekhttps://github.com/mtojek
e86539dhttps://github.com/coder/coder/commit/e86539db11f7d57ab8adae3ae32c2f55a26e6c84
Nov 21, 2022https://github.com/coder/coder/pull/5115#event-7856148919
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Nov 21, 2022https://github.com/coder/coder/pull/5115#event-7856151033
https://github.co/hiddenchars
https://github.com/coder/coder/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fpull%2F5115
https://github.com/mafredri
mafredri https://github.com/mafredri
https://github.com/coder/coder/pull/5115/files/4ec5aabf3ea7113135d291209d16cb419f9886de
https://github.com/BrunoQuaresma
BrunoQuaresma https://github.com/BrunoQuaresma
https://github.com/coder/coder/pull/5115/files/056894a5251eaab13475bcb809813d772cbe6a3a
Please reload this pagehttps://github.com/coder/coder/pull/5115
https://github.com/mtojek
mtojek https://github.com/mtojek
Ability to disable unprivileged users from canceling workspace builds at the template level? https://github.com/coder/coder/issues/5035
Please reload this pagehttps://github.com/coder/coder/pull/5115
https://github.com/mtojek
https://github.com/mafredri
https://github.com/BrunoQuaresma
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.