Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(coderd): mark sub agent deletion via boolean instead of delete#18411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
mafredri wants to merge3 commits intomain
base:main
Choose a base branch
Loading
frommafredri/fix-subagent-deletion

Conversation

mafredri
Copy link
Member

@mafredrimafredri commentedJun 17, 2025
edited
Loading

Since deletion of data is uncommon in our database, the introduction of sub agents and their deletion introduced issues with foreign key assumptions incoder/internal#685. We could have only addressed the specific case by allowing cascade deletion of stats as well as handling in the stats collector, but it's unclear how many more such edge-cases we would've run into.

For this reason, we decided to mark the rows as deleted via boolean instead, and filter them out in all queries that seem relevant so that coderd doesn't see the deleted agents.

Fixescoder/internal#685

TODO:

  • Testing

@mafredrimafredriforce-pushed themafredri/fix-subagent-deletion branch fromdb5700a to7d73585CompareJune 18, 2025 10:29
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees

@mafredrimafredri

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Devcontainers: As a side-effect of deleting agents, it's possible for the stats collector to become sad
1 participant
@mafredri

[8]ページ先頭

©2009-2025 Movatter.jp