-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Cell Disabled mode #20222
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
Cell Disabled mode #20222
Conversation
const isCellDisabled = await getExperimentsClientForBackend().getValueAsync( | ||
"cell_disabled", | ||
false, | ||
{}, | ||
); | ||
if ( | ||
isCellDisabled && | ||
requestContext.requestMethod === "gitpod.v1.UserService/getAuthenticatedUser" | ||
) { | ||
const error = self.apiConverter.toError( | ||
new ApplicationError(ErrorCodes.CELL_EXPIRED, "Cell is disabled"), | ||
); | ||
done(error); | ||
throw error; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part does the heavy lifting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM and it works ✔️
I would love to discuss this, otherwise am fine with merging. 👍
@@ -382,6 +382,11 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable { | |||
} | |||
|
|||
private async checkUser(methodName?: string, logPayload?: {}, ctx?: LogContext): Promise<User> { | |||
const cellDisabled = await getExperimentsClientForBackend().getValueAsync("cell_disabled", false, {}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
Description
Introduces a way for us to expire POV cells, controlled by the new
cell_disabled
feature flag.Related Issue(s)
Fixes ENT-794
How to test
Visit the following preview env. You can also try flipping the feature flag mentioned above and see what it does.
https://ft-disable8a89f3dd88.preview.gitpod-dev.com/