Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: move organizatinon sync to runtime configuration #15431

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Nov 8, 2024

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Nov 7, 2024

Closes coder/internal#86

Moves the configuration from environment to database backed, to allow configuring
organization sync at runtime.

Cli PR will be a follup.

@Emyrk Emyrk marked this pull request as ready for review November 7, 2024 21:47
Comment on lines -36 to +37
// NoActorError wraps ErrNoRows for the api to return a 404. This is the correct
// response when the user is not authorized.
var NoActorError = xerrors.Errorf("no authorization actor in context: %w", sql.ErrNoRows)
// NoActorError is returned if no actor is present in the context.
var NoActorError = xerrors.Errorf("no authorization actor in context")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This error was being disguised as a ErrNoRows, but no actor is a fatal error and should be raised as such.

@Emyrk Emyrk requested a review from f0ssel November 7, 2024 21:49
@Emyrk Emyrk merged commit 782214b into main Nov 8, 2024
36 checks passed
@Emyrk Emyrk deleted the stevenmasley/runtime_org_sync branch November 8, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Organization sync settings should be runtime configurable
2 participants