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

Add "Mark All As Viewed" checkbox in results view #4666

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Rlin232
Copy link
Contributor

@Rlin232 Rlin232 commented Jun 30, 2023

No description provided.

Signed-off-by: Rlin232 <rlin@mitre.org>
@Rlin232 Rlin232 linked an issue Jun 30, 2023 that may be closed by this pull request
@sonarcloud
Copy link

sonarcloud bot commented Jun 30, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

this.viewedControlIds = [];
this.allViewed = Trinary.Off;
} else {
this.items.forEach((item) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

for of

this.allViewed = Trinary.Off;
} else {
this.items.forEach((item) => {
if (!this.viewedControlIds.includes(item.control.data.id)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

if all you need to do is add unique values to the list, then make 'viewedControlIds' a set so that that process is automatically handled by the data structure

Copy link
Contributor

Choose a reason for hiding this comment

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

Frontend tests are failing

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 want the button to show/hide checkmarked results to change. I want a new button that lets me checkmark/de-checkmark all the controls

Copy link
Contributor

Choose a reason for hiding this comment

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

when PRs are still WIP don't forget to mark them as draft please

@Amndeep7 Amndeep7 marked this pull request as draft July 12, 2023 04:00
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.

there should be a button to deselect all viewed controls
2 participants