-
Notifications
You must be signed in to change notification settings - Fork 15
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
ADM-1003: [frontend][backend][docs]: re-calculate the lead time for changes for source control data in the report page #1601
base: main
Are you sure you want to change the base?
Conversation
* ADM-999 [frontend][backend]: fix the error path * ADM-999 [frontend][backend]: fix the test
…nges of source control in the report page
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more |
Hi @zhou-yinyuan! 👋 |
Quality Gate passed for 'heartbeat-backend'Issues Measures |
Quality Gate passed for 'au-heartbeat-heartbeat-frontend'Issues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So biggger PR, please make it small in the future
return null; | ||
} | ||
int buildNumber = leadTimes.size(); | ||
// 过滤掉noPr的数据 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comments
.map(PullRequestInfo.PullRequestUser::getLogin) | ||
.distinct() | ||
.toList(); | ||
log.info("Successfully to get all crews, organization: {}, repo: {}, branch: {}, startTime: {}, endTime: {}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No to
} | ||
} | ||
log.info( | ||
"Successfully to filter pull request, startTime: {}, endTime: {}, should get next page pull request: {}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No to
realToken) | ||
.get(0); | ||
log.info( | ||
"Successfully to get first code commit, organization: {}, repo: {}, pull number: {}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No to, please delete others
@ParameterizedTest | ||
@MethodSource("baseExceptionProvider") | ||
void shouldThrowExceptionWhenFetchPageBranchInfoThrow4xx(BaseException e, int errorCode) { | ||
String organization = "test-org"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicated code
Summary
re-calculate the lead time for changes for
source control data
in the report page.Before
Description
In the report page, we didn't show the lead time for changes for
source control data
in the report page, and didn't show the data in the metrics and pipeline csv files.After
Description
In the report page, we will show the lead time for changes for
source control data
in the report page, add two columns to show pr lead time forsource control data
in the pipeline csv file, and add lead time for changes to metrics data forsource control data
Note
Null