Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1856351: Fix build details page charts
- Create new global time related constants - Update build details page area charts to only from build start to completion - Minimum queried timepan to one minute - Show seconds on build charts if timespan is less than 5 minutes - Force x domain on build charts to match the queried timespan so that chart will not show less than one minute on the x-axis. - Add new xMutator callback arg to graph util `mapLimitsRequests` function to allow for post-processing of utilization chart x values - Add new xMutator and yMutator callback args to graph util `getRangeVectorStats` function to allow for post-processing of prometheus response data x and y values - Remove logic from getRangeVectorStats function that removed second and millisecond data from all x values - Update PrometheusMultilineUtilizationItem to use new xMutator argument to trim seconds and milliseconds off of multiline area chart data points. - Create new global constants for prometheus query default samples and timespan - Update Area and AreaChart components to use new global prometheus constants and accept domain prop - Update twentyFourHourTime util function to accept `showSeconds` arg and get rid of twentyFourHourTimeWithSeconds function. - Update usage of twentyFourHourTime/twentyFourHourTimeWithSeconds function where needed
- Loading branch information
1 parent
9234180
commit f6c127a
Showing
14 changed files
with
149 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const ONE_SECOND = 1000; | ||
export const ONE_MINUTE = 60 * ONE_SECOND; | ||
export const ONE_HOUR = 60 * ONE_MINUTE; | ||
export const ONE_DAY = 24 * ONE_HOUR; | ||
export const ONE_WEEK = 7 * ONE_DAY; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.