-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(propdefs): add filtering to allow for gradual rollout #24820
Conversation
2d2db2d
to
318d1da
Compare
Size Change: +50 B (0%) Total Size: 1.12 MB ℹ️ View Unchanged
|
// that includes automatic group creation, which we want to do even if we're skipping the | ||
// rest of the definition updates, so we run this and tell it to skip, rather than skipping | ||
// it outright. | ||
promises.push(this.syncPropertyDefinitions(team, event, properties, shouldSkip)) |
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.
😵
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.
Looks good.
@@ -74,6 +78,7 @@ export class PropertyDefinitionsManager { | |||
eventPropertiesCache: LRU<string, Set<string>> // Map<JSON.stringify([TeamId, Event], Set<Property>> | |||
eventLastSeenCache: LRU<string, number> // key: JSON.stringify([team_id, event]); value: parseInt(YYYYMMDD) | |||
propertyDefinitionsCache: PropertyDefinitionsCache | |||
teamIdsToSkip: Set<number> = new Set() |
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.
A value matcher would be slightly nicer so we can use "*" to rollout for all teams whilst still being able to roll back easily but not blocking
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.
Would rather delete the code once we make the switch - should be high confidence at that point, and the plugin server is enough of a mess already without also having all this stuff that's never used in prod but exists because it was once
No description provided.