[go: nahoru, domu]

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

feat: add current_time to the response of systeminfo api when user logged in #16205

Merged
merged 1 commit into from
Jan 12, 2022

Conversation

zyyw
Copy link
Contributor
@zyyw zyyw commented Jan 11, 2022

Closes: #16200
Signed-off-by: Shengwen Yu yshengwen@vmware.com

@codecov
Copy link
codecov bot commented Jan 11, 2022

Codecov Report

Merging #16205 (b7af0f1) into main (634f013) will increase coverage by 0.00%.
The diff coverage is 33.33%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #16205   +/-   ##
=======================================
  Coverage   66.95%   66.96%           
=======================================
  Files         945      945           
  Lines       78521    78538   +17     
  Branches     2304     2304           
=======================================
+ Hits        52576    52594   +18     
- Misses      21891    21892    +1     
+ Partials     4054     4052    -2     
Flag Coverage Δ
unittests 66.96% <33.33%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/server/v2.0/handler/systeminfo.go 0.00% <0.00%> (ø)
src/controller/systeminfo/controller.go 64.00% <100.00%> (+0.73%) ⬆️
...es/vulnerability/vulnerability-config.component.ts 50.79% <0.00%> (-4.77%) ⬇️
src/controller/event/handler/auditlog/auditlog.go 56.52% <0.00%> (-4.35%) ⬇️
src/server/v2.0/restapi/embedded_spec.go 100.00% <0.00%> (ø)
src/portal/src/app/shared/units/shared.utils.ts 24.67% <0.00%> (+1.29%) ⬆️
src/jobservice/runner/redis.go 67.82% <0.00%> (+5.21%) ⬆️
src/lib/cache/util.go 89.47% <0.00%> (+15.78%) ⬆️

@@ -50,6 +51,7 @@ type Data struct {
}

type protectedData struct {
CurrentTime time.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 it is an protected data?

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 the current_time is only added to the response of systeminfo API when user is logged in.

…gged in

Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
Copy link
Contributor
@wy65701436 wy65701436 left a comment

Choose a reason for hiding this comment

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

lgtm

@zyyw zyyw merged commit 61a0d41 into goharbor:main Jan 12, 2022
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.

Need current time property for systeminfo API
3 participants