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

ADM-1003: [frontend][backend][docs]: re-calculate the lead time for changes for source control data in the report page #1601

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

zhou-yinyuan
Copy link

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 for source control data in the pipeline csv file, and add lead time for changes to metrics data for source control data

Note

Null

Copy link

codacy-production bot commented Sep 11, 2024

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.00% 100.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (5f11cba) 9328 9328 100.00%
Head commit (8c5165b) 19140 (+9812) 19140 (+9812) 100.00% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#1601) 412 412 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

Copy link

Hi @zhou-yinyuan! 👋
Thank you for submitting a pull request! We appreciate your contribution and will review your changes as soon as possible.

Copy link

Copy link

Quality Gate Passed Quality Gate passed for 'au-heartbeat-heartbeat-frontend'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Collaborator

@guzhongren guzhongren left a 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的数据
Copy link
Collaborator

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: {}",
Copy link
Collaborator

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: {}",
Copy link
Collaborator

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: {}",
Copy link
Collaborator

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";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Duplicated code

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.

2 participants