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

Extend TLS Certificate Assets #1578

Merged
merged 13 commits into from
Aug 26, 2019

Conversation

swaterkamp
Copy link
Member

@swaterkamp swaterkamp commented Aug 24, 2019

Checklist:

@swaterkamp swaterkamp self-assigned this Aug 24, 2019
@swaterkamp swaterkamp marked this pull request as ready for review August 24, 2019 11:31
@codecov
Copy link

codecov bot commented Aug 24, 2019

Codecov Report

Merging #1578 into master will decrease coverage by 0.02%.
The diff coverage is 22.5%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1578      +/-   ##
==========================================
- Coverage   37.83%   37.81%   -0.03%     
==========================================
  Files        1042     1043       +1     
  Lines       23795    23834      +39     
  Branches     6519     6533      +14     
==========================================
+ Hits         9004     9013       +9     
- Misses      13443    13473      +30     
  Partials     1348     1348
Impacted Files Coverage Δ
gsa/src/web/routes.js 83.33% <ø> (ø) ⬆️
gsa/src/web/pages/tags/component.js 5.4% <ø> (ø) ⬆️
gsa/src/web/pages/tlscertificates/table.js 30.76% <ø> (ø) ⬆️
gsa/src/gmp/capabilities/capabilities.js 100% <ø> (ø) ⬆️
gsa/src/web/pages/tlscertificates/details.js 22.22% <0%> (-6.35%) ⬇️
gsa/src/gmp/models/report/report.js 2.63% <0%> (ø) ⬆️
gsa/src/web/pages/tlscertificates/row.js 41.66% <0%> (-8.34%) ⬇️
gsa/src/web/pages/permissions/multipledialog.js 17.94% <100%> (+2.15%) ⬆️
gsa/src/web/pages/tlscertificates/detailspage.js 25% <25%> (ø)

Continue to review full report at Codecov.

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

<TableRow>
<TableData>{_('Activates')}</TableData>
<TableData>
{dateTimeWithTimeZone(entity.activationTime)}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should use the DateTime component instead of the dateTimeWithTimeZone function

<TableRow>
<TableData>{_('Expires')}</TableData>
<TableData>
{dateTimeWithTimeZone(entity.expirationTime)}
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here. It should use the DateTime component instead of the dateTimeWithTimeZone function

};

const Details = ({entity, ...props}) => {
const showSourceBlock = [entity.sourceReportIds].reduce(
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't get this line :-) Any reason why not using const showSourceBlock = entity.sourceReportIds.length > 0?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it was late at night ;) In the beginning I just did for the showXY what we do in the menubar. Turned out to be much simpler but I didn't remove the leftover...

@bjoernricks bjoernricks merged commit 588d850 into greenbone:master Aug 26, 2019
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