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

fix: Hide timezones behind FF #26478

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rafaeelaudibert
Copy link
Contributor

@rafaeelaudibert rafaeelaudibert commented Nov 27, 2024

We're seeing inconsistent values in production, let's hide it behind a FF for now

See #26475

We're seeing incosistent values in production, let's hide it behind a FF for now
@rafaeelaudibert rafaeelaudibert added bug Something isn't working right team/web-analytics labels Nov 27, 2024
@rafaeelaudibert rafaeelaudibert enabled auto-merge (squash) November 27, 2024 17:54
WebStatsBreakdown.Timezone
)
: null,
].filter((x) => x !== null),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's complex, TS wouldn't let me otherwise

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's temporary, so I'm fine with how bad this looks

Copy link
Member

Choose a reason for hiding this comment

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

We have isNotNil as a type guard, which can work well for this kind of thing. You might be able to add .filter(isNotNil) to the outer array, and let this be null without needing to create an inner array

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That didn't work on its own, but I changed the code slightly, it looks nicer now

a4c3956

@rafaeelaudibert rafaeelaudibert changed the title Hide timezones behind FF fix: Hide timezones behind FF Nov 27, 2024
This is simpler than what we had before
Copy link
Contributor

Size Change: +56 B (0%)

Total Size: 1.16 MB

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

compressed-size-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working right team/web-analytics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants