-
Notifications
You must be signed in to change notification settings - Fork 111
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to select last 24h compliance report #4358
Conversation
Deploy preview for chef-automate ready! Built with commit 00b44d5 |
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.
Looks good; just a few questions/comments.
FYI: My review is just from code-reading; have not exercised the code.
.../src/app/pages/+compliance/+reporting/reporting-searchbar/reporting-searchbar.component.html
Show resolved
Hide resolved
components/automate-ui/src/app/pages/+compliance/+reporting/reporting.component.ts
Show resolved
Hide resolved
components/automate-ui/src/app/pages/+compliance/+reporting/reporting.component.ts
Show resolved
Hide resolved
components/automate-ui/src/app/pages/+compliance/shared/reporting/stats.service.ts
Show resolved
Hide resolved
components/automate-ui/src/app/pages/+compliance/shared/reporting/stats.service.ts
Show resolved
Hide resolved
Hey Scott, looking great overall. While doing some testing I noticed two things I want to bring up. 1. When I go to Compliance > Nodes > click on a node > Scan History 2. When I go to Compliance > Nodes > click on a node > REFRESH PAGE > Scan History |
Also, we noticed in standup today while reviewing the change that the range displayed below the trend graph: In this case ^ |
a866894
to
9050508
Compare
9050508
to
42fce04
Compare
This commit adds the option to view the last 24h of compliance data. Compliance API endpoints were recently updated to return last 24h window of data if `start_time` and `end_time` are excluded from requests. Signed-off-by: Scott Christopherson <scott@chef.io>
42fce04
to
5574dd4
Compare
Signed-off-by: Alex Pop <apop@chef.io>
Signed-off-by: Alex Pop <apop@chef.io>
author Michael Sorens <msorens@chef.io> 1604676405 -0800 committer Alex Pop <apop@chef.io> 1605705520 +0000 Pin semgrep for custom rules (#4426) sample-data-service mock infra client data (#4398) Co-authored-by: Steven Danna <steve@chef.io> Compliance APIs default to 24h without end_time (#4310) * Compliance APIs default to 24h without end_time Signed-off-by: Alex Pop <apop@chef.io> Fix overlapping Signed-off-by: Alex Pop <apop@chef.io> * Update docker test based on new inspec error output Signed-off-by: Alex Pop <apop@chef.io> * Remove fmt package Signed-off-by: Alex Pop <apop@chef.io> Add option to select last 24h compliance report (#4358) * Add option to select last 24h compliance report This commit adds the option to view the last 24h of compliance data. Compliance API endpoints were recently updated to return last 24h window of data if `start_time` and `end_time` are excluded from requests. Signed-off-by: Scott Christopherson <scott@chef.io> * Align filters Signed-off-by: Alex Pop <apop@chef.io> * Update docker test based on new inspec error output Signed-off-by: Alex Pop <apop@chef.io> Co-authored-by: Alex Pop <apop@chef.io> Add Compliance Knowledge Transfer notes Signed-off-by: Alex Pop <apop@chef.io> small updates Signed-off-by: Alex Pop <apop@chef.io> before call Signed-off-by: Alex Pop <apop@chef.io> before call Signed-off-by: Alex Pop <apop@chef.io> added filters and migrations added some filter types ingest clarifications Signed-off-by: Alex Pop <apop@chef.io> Before second kt call Signed-off-by: Alex Pop <apop@chef.io> changes post second call Signed-off-by: Alex Pop <apop@chef.io>
author Michael Sorens <msorens@chef.io> 1604676405 -0800 committer Alex Pop <apop@chef.io> 1605705520 +0000 Pin semgrep for custom rules (#4426) sample-data-service mock infra client data (#4398) Co-authored-by: Steven Danna <steve@chef.io> Compliance APIs default to 24h without end_time (#4310) * Compliance APIs default to 24h without end_time Signed-off-by: Alex Pop <apop@chef.io> Fix overlapping Signed-off-by: Alex Pop <apop@chef.io> * Update docker test based on new inspec error output Signed-off-by: Alex Pop <apop@chef.io> * Remove fmt package Signed-off-by: Alex Pop <apop@chef.io> Add option to select last 24h compliance report (#4358) * Add option to select last 24h compliance report This commit adds the option to view the last 24h of compliance data. Compliance API endpoints were recently updated to return last 24h window of data if `start_time` and `end_time` are excluded from requests. Signed-off-by: Scott Christopherson <scott@chef.io> * Align filters Signed-off-by: Alex Pop <apop@chef.io> * Update docker test based on new inspec error output Signed-off-by: Alex Pop <apop@chef.io> Co-authored-by: Alex Pop <apop@chef.io> Add Compliance Knowledge Transfer notes Signed-off-by: Alex Pop <apop@chef.io> small updates Signed-off-by: Alex Pop <apop@chef.io> before call Signed-off-by: Alex Pop <apop@chef.io> before call Signed-off-by: Alex Pop <apop@chef.io> added filters and migrations added some filter types ingest clarifications Signed-off-by: Alex Pop <apop@chef.io> Before second kt call Signed-off-by: Alex Pop <apop@chef.io> changes post second call Signed-off-by: Alex Pop <apop@chef.io>
author Michael Sorens <msorens@chef.io> 1604676405 -0800 committer Alex Pop <apop@chef.io> 1605705520 +0000 Pin semgrep for custom rules (#4426) sample-data-service mock infra client data (#4398) Co-authored-by: Steven Danna <steve@chef.io> Compliance APIs default to 24h without end_time (#4310) * Compliance APIs default to 24h without end_time Signed-off-by: Alex Pop <apop@chef.io> Fix overlapping Signed-off-by: Alex Pop <apop@chef.io> * Update docker test based on new inspec error output Signed-off-by: Alex Pop <apop@chef.io> * Remove fmt package Signed-off-by: Alex Pop <apop@chef.io> Add option to select last 24h compliance report (#4358) * Add option to select last 24h compliance report This commit adds the option to view the last 24h of compliance data. Compliance API endpoints were recently updated to return last 24h window of data if `start_time` and `end_time` are excluded from requests. Signed-off-by: Scott Christopherson <scott@chef.io> * Align filters Signed-off-by: Alex Pop <apop@chef.io> * Update docker test based on new inspec error output Signed-off-by: Alex Pop <apop@chef.io> Co-authored-by: Alex Pop <apop@chef.io> Add Compliance Knowledge Transfer notes Signed-off-by: Alex Pop <apop@chef.io> small updates Signed-off-by: Alex Pop <apop@chef.io> before call Signed-off-by: Alex Pop <apop@chef.io> before call Signed-off-by: Alex Pop <apop@chef.io> added filters and migrations added some filter types ingest clarifications Signed-off-by: Alex Pop <apop@chef.io> Before second kt call Signed-off-by: Alex Pop <apop@chef.io> changes post second call Signed-off-by: Alex Pop <apop@chef.io> Co-authored-by: Michael Sorens <msorens@chef.io>
WIP: depends on #4310
馃敥 Description: What code changed, and why?
This commit adds the option to view the last 24h of compliance data. Compliance API endpoints were recently updated to return last 24h window of data if
start_time
andend_time
are excluded from requests.鉀擄笍 Related Resources
#4263
#4310