Skip to content

ref(flags): remove statsPeriod in flag details query #89360

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 4 commits into from
Apr 10, 2025

Conversation

aliu39
Copy link
Member

@aliu39 aliu39 commented Apr 10, 2025

The backend uses statsPeriod to clamp date range - imo we don't need this since we're already paginating.

@aliu39 aliu39 requested a review from a team as a code owner April 10, 2025 22:29
@aliu39 aliu39 requested a review from a team April 10, 2025 22:29
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 10, 2025
@aliu39 aliu39 changed the title fix(flags): remove statsPeriod from flag details logs query fix(flags): remove statsPeriod and limit to 15 in flag details query Apr 10, 2025
@@ -36,25 +36,20 @@ export function FlagDetailsDrawerContent() {

const sortArrow = <IconArrow color="gray300" size="xs" direction="down" />;

const flagQuery = useMemo(() => {
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 is a very cheap computation so don't need the memo

@aliu39 aliu39 changed the title fix(flags): remove statsPeriod and limit to 15 in flag details query ref(flags): remove statsPeriod and limit to 15 in flag details query Apr 10, 2025
@aliu39 aliu39 changed the title ref(flags): remove statsPeriod and limit to 15 in flag details query ref(flags): remove statsPeriod in flag details query Apr 10, 2025
@aliu39 aliu39 enabled auto-merge (squash) April 10, 2025 23:23
@aliu39 aliu39 merged commit bc9e7f5 into master Apr 10, 2025
43 checks passed
@aliu39 aliu39 deleted the aliu/flag-details-log-range branch April 10, 2025 23:37
andrewshie-sentry pushed a commit that referenced this pull request Apr 22, 2025
The backend uses statsPeriod to clamp date range - imo we don't need
this since we're already paginating.
@github-actions github-actions bot locked and limited conversation to collaborators Apr 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants