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

Build history #5371

Merged
merged 2 commits into from
Oct 24, 2018
Merged

Build history #5371

merged 2 commits into from
Oct 24, 2018

Conversation

kofj
Copy link
Contributor

@kofj kofj commented Jul 23, 2018

Show build history info in the tag detail page as a default table panel.

@vmwclabot
Copy link

@kofj, you must sign our contributor license agreement before your changes are merged. Click here to sign the agreement. If you are a VMware employee, read this for further instruction.

@coveralls
Copy link

coveralls commented Jul 23, 2018

Pull Request Test Coverage Report for Build 7786

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 161 unchanged lines in 5 files lost coverage.
  • Overall coverage decreased (-0.2%) to 63.662%

Files with Coverage Reduction New Missed Lines %
src/jobservice/period/enqueuer.go 1 79.17%
src/common/scheduler/policy/alternate_policy.go 3 80.29%
src/chartserver/chart_operator.go 9 77.06%
src/chartserver/utils.go 21 39.39%
src/ui/api/chart_repository.go 127 0.0%
Totals Coverage Status
Change from base Build 7734: -0.2%
Covered Lines: 11913
Relevant Lines: 18713

💛 - Coveralls

@vmwclabot
Copy link

@kofj, VMware has approved your signed contributor license agreement.

Copy link
Contributor

@steven-zou steven-zou left a comment

Choose a reason for hiding this comment

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

Some minor comments

public getManifest(
repositoryName: string,
tag: string,
queryParams?: RequestQueryParams
Copy link
Contributor

Choose a reason for hiding this comment

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

The optional 'queryParams' is not appended to the request. If caller pass parameters, it will be no effect

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This optional is not used, should be removed.

@@ -13,7 +13,8 @@ import {
clone
} from '../utils';
import { ErrorHandler } from '../error-handler/index';
import { SystemSettingsComponent, VulnerabilityConfigComponent } from './index';
import { SystemSettingsComponent } from './system/system-settings.component';
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the reason of changing the importing paths of these components

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because it will warn: "Circular dependency" when running NG Live Development Server.

<div><clr-icon shape="play" size="20" class="tip-icon-low rotate-90"></clr-icon>{{lowCount}} {{'VULNERABILITY.SEVERITY.LOW' | translate }}&nbsp;{{'TAG.LEVEL_VULNERABILITIES' | translate }}</div>
<div class="second-row"><clr-icon shape="help" size="18"></clr-icon>{{unknownCount}} {{'VULNERABILITY.SEVERITY.UNKNOWN' | translate }}&nbsp;{{'TAG.LEVEL_VULNERABILITIES' | translate }}</div>
<div>
<clr-icon shape="error" size="24" class="is-error"></clr-icon> {{highCount}} {{'VULNERABILITY.SEVERITY.HIGH' | translate }}&nbsp;{{'TAG.LEVEL_VULNERABILITIES'
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems this part is only code formatting changes. But the format is a little inconsistent with the original style.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is an error, will be fixed later.

import {JobLogViewerComponent} from "../job-log-viewer/job-log-viewer.component";
import {ChannelService} from "../channel/channel.service";
import {JobLogService, JobLogDefaultService} from "../service/job-log.service";
import { VULNERABILITY_DIRECTIVES } from "../vulnerability-scanning/index";
Copy link
Contributor

Choose a reason for hiding this comment

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

Good format!

@steven-zou
Copy link
Contributor

@kofj

Let' holding for a while and merge it into master after @ninjadq and @zhoumeina complete the upgrading work of Clarity and Angular.

Rebase will be required then!

@reasonerjt reasonerjt added target/1.7.0 Work items that should be delivered in 1.7.0 timeframe. and removed 1.6.0-defer labels Aug 31, 2018
@steven-zou
Copy link
Contributor

@kofj

The related libraries of front-end UI are upgraded to new versions (Angular to 6.x, clarity to 0.12). Now we can start the merging work of this PR. Before doing that, I think you need to rebase your code to based on the new code base. Once you have done, please let us know.

@reasonerjt reasonerjt added this to the Sprint 44 milestone Sep 18, 2018
@ghost
Copy link

ghost commented Oct 3, 2018

Hi @kofj – please rebase when you get a moment. Thanks!

@reasonerjt reasonerjt modified the milestones: Sprint 44, Sprint 45 Oct 9, 2018
@kofj kofj closed this Oct 12, 2018
@kofj kofj reopened this Oct 15, 2018
@kofj
Copy link
Contributor Author

kofj commented Oct 15, 2018

@steven-zou @ninjadq All checks have passed, review please.

@coveralls
Copy link

coveralls commented Oct 16, 2018

Pull Request Test Coverage Report for Build 9145

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 64.655%

Totals Coverage Status
Change from base Build 9144: 0.02%
Covered Lines: 12600
Relevant Lines: 19488

💛 - Coveralls

@@ -0,0 +1,11 @@
<clr-datagrid [clrDgLoading]="loading">
<clr-dg-column style="width: 160px;">{{ 'TAG.CREATION' | translate }}</clr-dg-column>
Copy link
Contributor

@zhoumeina zhoumeina Oct 22, 2018

Choose a reason for hiding this comment

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

Please move this style="width: 160px;" to scss.

@zhoumeina zhoumeina self-requested a review October 22, 2018 01:42
@zhoumeina
Copy link
Contributor

@kofj , I don't know why when I try to create some comments, it returns 405 not allowed.

@zhoumeina zhoumeina self-requested a review October 22, 2018 01:47
Copy link
Contributor

@zhoumeina zhoumeina left a comment

Choose a reason for hiding this comment

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

Please modify according to the comment.

Copy link
Contributor

@zhoumeina zhoumeina left a comment

Choose a reason for hiding this comment

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

Please modify according to the comment.

"RUNNING":"执行中",
"ERROR":"错误",
"STATUS": "状态",
"START_TIME": "开始时间",
Copy link
Contributor

Choose a reason for hiding this comment

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

why need to modify this update_time to endtime. It should not be modified in this pr.

Copy link
Contributor

@zhoumeina zhoumeina left a comment

Choose a reason for hiding this comment

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

Please change it according to comment.

Copy link
Contributor

@zhoumeina zhoumeina left a comment

Choose a reason for hiding this comment

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

LGTM

kofj added 2 commits October 23, 2018 16:10
Add build histroy section and navbar to tag-detail component
Add i18n items of build history
Format code.

Signed-off-by: Frank Kung <[email protected]>
Move style to scss file.

Signed-off-by: Frank Kung <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
target/1.7.0 Work items that should be delivered in 1.7.0 timeframe.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants