Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
My Jetpack: Add a Protect 'needs-attention' status when Threats are detected. #40628
base: trunk
Are you sure you want to change the base?
My Jetpack: Add a Protect 'needs-attention' status when Threats are detected. #40628
Changes from 27 commits
7987f1f
e964759
418542a
249de73
edd0ccd
938dcd1
7f6615a
0a23bd0
4d6fde1
fdee436
bbcd4e0
fd266cb
e90eb26
3719ce8
32ca2d3
2ad22a6
0ac3116
adba171
1b9c547
87597d4
0c818a7
b35bbc1
bbe1f2c
84479e2
a8f0df5
c1b9526
d04a1ba
ace58eb
2850dea
feff403
fd97fdc
a1d51a7
b70b4b5
b4cfce6
804c991
4b89d88
4b584fe
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
I ask to understand more: are there no cases we need to actually display "Needs attention" in Protect card?
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.
If so, I could make use of some comment here, cause it's a bit difficult to understand from the context.
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.
As I understand it, for the Protect card, even when it has a NEEDS_ATTENTION__{WARNING | ERROR} status (which means threats have been detected), we still want to show the card status as 'Active' (per the designs: v1IWiVmOAvI8yT8CCa4b1I-fi-4398_9423).
I believe this is to portray to the user that Protect is still operating correctly/normally as it should (however threats were detected).
I left a comment in the code (as you suggested) to explain there also.
Check failure on line 722 in projects/packages/my-jetpack/src/products/class-product.php
GitHub Actions / Static analysis