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: Pass in interval to aggregate functions, dynamic copy updates for intervals #3424

Closed

Conversation

ajay-sentry
Copy link
Contributor

Description

This PR does a small feature add passing in the historicalTrend parameter to the "interval" filter for both the testResultsAggregates and flakeAggregates queries, and does some minor dynamic copy updates taking into account that filter if it exists.

I chose not to use this thing because it was hard coded to have the capitals at the beginning of the label and I needed something a little more precise for my use case.

export const MeasurementTimeOptions = [
{ label: 'Last 30 days', value: MEASUREMENT_INTERVAL.INTERVAL_30_DAY },
{ label: 'Last 7 days', value: MEASUREMENT_INTERVAL.INTERVAL_7_DAY },
{ label: 'Last day', value: MEASUREMENT_INTERVAL.INTERVAL_1_DAY },
] as const

Screenshots

Screenshot 2024-10-22 at 1 55 42 PM
Screenshot 2024-10-22 at 1 55 56 PM

Link to Sample Entry

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

RulaKhaled and others added 30 commits September 10, 2024 10:44
@codecov-staging
Copy link

codecov-staging bot commented Oct 22, 2024

Bundle Report

Changes will increase total bundle size by 1.08kB (0.01%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-staging-system-esm 5.58MB 712 bytes (0.01%) ⬆️
gazebo-staging-system 5.52MB 371 bytes (0.01%) ⬆️

@codecov-notifications
Copy link

Codecov Report

Attention: Patch coverage is 95.28986% with 13 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
.../FailedTestsPage/MetricsSection/MetricsSection.tsx 91.13% 7 Missing ⚠️
...ledTestsPage/FailedTestsTable/FailedTestsTable.tsx 92.15% 4 Missing ⚠️
...ailedTestsPage/SelectorSection/SelectorSection.tsx 95.74% 2 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3424      +/-   ##
==========================================
- Coverage   99.15%   99.07%   -0.08%     
==========================================
  Files         809      817       +8     
  Lines       14275    14533     +258     
  Branches     3935     4020      +85     
==========================================
+ Hits        14154    14399     +245     
- Misses        112      125      +13     
  Partials        9        9              
Files with missing lines Coverage Δ
...FailedTestsTab/FailedTestsPage/FailedTestsPage.tsx 100.00% <100.00%> (ø)
.../SelectorSection/BranchSelector/BranchSelector.tsx 100.00% <ø> (ø)
...stsTab/FailedTestsPage/TableHeader/TableHeader.tsx 100.00% <100.00%> (ø)
...ge/hooks/useFlakeAggregates/useFlakeAggregates.tsx 100.00% <100.00%> (ø)
.../useInfiniteTestResults/useInfiniteTestResults.tsx 100.00% <100.00%> (ø)
...TestResultsAggregates/useTestResultsAggregates.tsx 100.00% <100.00%> (ø)
.../hooks/useTestResultsFlags/useTestResultsFlags.tsx 100.00% <100.00%> (ø)
...TestResultsTestSuites/useTestResultsTestSuites.tsx 100.00% <100.00%> (ø)
...c/pages/RepoPage/FailedTestsTab/FailedTestsTab.tsx 93.10% <ø> (ø)
src/pages/RepoPage/shared/constants.ts 100.00% <100.00%> (ø)
... and 5 more
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.77% <95.09%> (-0.13%) ⬇️
Services 99.45% <100.00%> (+<0.01%) ⬆️
Shared 99.80% <100.00%> (+<0.01%) ⬆️
UI 99.06% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ddf8ef4...88d2ec9. Read the comment docs.

@codecov-qa
Copy link

codecov-qa bot commented Oct 22, 2024

Codecov Report

Attention: Patch coverage is 95.28986% with 13 lines in your changes missing coverage. Please review.

Project coverage is 99.07%. Comparing base (ddf8ef4) to head (88d2ec9).
Report is 5 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
.../FailedTestsPage/MetricsSection/MetricsSection.tsx 91.13% 7 Missing ⚠️
...ledTestsPage/FailedTestsTable/FailedTestsTable.tsx 92.15% 4 Missing ⚠️
...ailedTestsPage/SelectorSection/SelectorSection.tsx 95.74% 2 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3424      +/-   ##
==========================================
- Coverage   99.15%   99.07%   -0.08%     
==========================================
  Files         809      817       +8     
  Lines       14275    14533     +258     
  Branches     3942     4020      +78     
==========================================
+ Hits        14154    14399     +245     
- Misses        112      125      +13     
  Partials        9        9              
Files with missing lines Coverage Δ
...FailedTestsTab/FailedTestsPage/FailedTestsPage.tsx 100.00% <100.00%> (ø)
.../SelectorSection/BranchSelector/BranchSelector.tsx 100.00% <ø> (ø)
...stsTab/FailedTestsPage/TableHeader/TableHeader.tsx 100.00% <100.00%> (ø)
...ge/hooks/useFlakeAggregates/useFlakeAggregates.tsx 100.00% <100.00%> (ø)
.../useInfiniteTestResults/useInfiniteTestResults.tsx 100.00% <100.00%> (ø)
...TestResultsAggregates/useTestResultsAggregates.tsx 100.00% <100.00%> (ø)
.../hooks/useTestResultsFlags/useTestResultsFlags.tsx 100.00% <100.00%> (ø)
...TestResultsTestSuites/useTestResultsTestSuites.tsx 100.00% <100.00%> (ø)
...c/pages/RepoPage/FailedTestsTab/FailedTestsTab.tsx 93.10% <ø> (ø)
src/pages/RepoPage/shared/constants.ts 100.00% <100.00%> (ø)
... and 5 more
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.77% <95.09%> (-0.13%) ⬇️
Services 99.45% <100.00%> (+<0.01%) ⬆️
Shared 99.80% <100.00%> (+<0.01%) ⬆️
UI 99.06% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ddf8ef4...88d2ec9. Read the comment docs.

Copy link

codecov bot commented Oct 22, 2024

Codecov Report

Attention: Patch coverage is 95.28986% with 13 lines in your changes missing coverage. Please review.

Project coverage is 99.07%. Comparing base (ddf8ef4) to head (88d2ec9).
Report is 5 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
.../FailedTestsPage/MetricsSection/MetricsSection.tsx 91.13% 7 Missing ⚠️
...ledTestsPage/FailedTestsTable/FailedTestsTable.tsx 92.15% 4 Missing ⚠️
...ailedTestsPage/SelectorSection/SelectorSection.tsx 95.74% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3424      +/-   ##
==========================================
- Coverage   99.15%   99.07%   -0.08%     
==========================================
  Files         809      817       +8     
  Lines       14275    14533     +258     
  Branches     3942     4020      +78     
==========================================
+ Hits        14154    14399     +245     
- Misses        112      125      +13     
  Partials        9        9              
Files with missing lines Coverage Δ
...FailedTestsTab/FailedTestsPage/FailedTestsPage.tsx 100.00% <100.00%> (ø)
.../SelectorSection/BranchSelector/BranchSelector.tsx 100.00% <ø> (ø)
...stsTab/FailedTestsPage/TableHeader/TableHeader.tsx 100.00% <100.00%> (ø)
...ge/hooks/useFlakeAggregates/useFlakeAggregates.tsx 100.00% <100.00%> (ø)
.../useInfiniteTestResults/useInfiniteTestResults.tsx 100.00% <100.00%> (ø)
...TestResultsAggregates/useTestResultsAggregates.tsx 100.00% <100.00%> (ø)
.../hooks/useTestResultsFlags/useTestResultsFlags.tsx 100.00% <100.00%> (ø)
...TestResultsTestSuites/useTestResultsTestSuites.tsx 100.00% <100.00%> (ø)
...c/pages/RepoPage/FailedTestsTab/FailedTestsTab.tsx 93.10% <ø> (ø)
src/pages/RepoPage/shared/constants.ts 100.00% <100.00%> (ø)
... and 5 more
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.77% <95.09%> (-0.13%) ⬇️
Services 99.45% <100.00%> (+<0.01%) ⬆️
Shared 99.80% <100.00%> (+<0.01%) ⬆️
UI 99.06% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ddf8ef4...88d2ec9. Read the comment docs.

Copy link

codecov bot commented Oct 22, 2024

Bundle Report

Changes will increase total bundle size by 1.08kB (0.01%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-production-system 5.52MB 371 bytes (0.01%) ⬆️
gazebo-production-system-esm 5.58MB 712 bytes (0.01%) ⬆️

@codecov-releaser
Copy link
Contributor

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
88d2ec9 Tue, 22 Oct 2024 21:02:54 GMT Cloud Enterprise

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.

4 participants