Skip to content
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

Merged
merged 5 commits into from
Sep 6, 2024

Conversation

oliverb123
Copy link
Contributor

No description provided.

@oliverb123 oliverb123 force-pushed the olly_propdefs_rollout_prep branch from 2d2db2d to 318d1da Compare September 5, 2024 18:03
@oliverb123 oliverb123 requested review from bretthoerner and benjackwhite and removed request for bretthoerner September 5, 2024 18:16
Copy link
Contributor

github-actions bot commented Sep 5, 2024

Size Change: +50 B (0%)

Total Size: 1.12 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 1.12 MB +50 B (0%)

compressed-size-action

// 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))
Copy link
Contributor

Choose a reason for hiding this comment

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

😵

Copy link
Contributor

@benjackwhite benjackwhite left a 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()
Copy link
Contributor

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

Copy link
Contributor Author

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

@oliverb123 oliverb123 merged commit 4648b48 into master Sep 6, 2024
86 checks passed
@oliverb123 oliverb123 deleted the olly_propdefs_rollout_prep branch September 6, 2024 09:21
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.

3 participants