-
Notifications
You must be signed in to change notification settings - Fork 800
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
Protect: Add fixer status to initial state #39125
Merged
Merged
Changes from all commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
cfe4e3b
Protect: React Query
nateweller 07f4237
Add fixerStatus to initial state
dkmyta c3de3f7
changelog
dkmyta d4b71ee
Fix in_progress fixer state
dkmyta 9758e3b
Fix tests
dkmyta ba489fe
Fix fixThreats apiFetch call
dkmyta a392ec1
Do not camelize fixerStatus in useFixersQuery initialData
dkmyta b510e1e
Protect: React Query
nateweller 49fda28
Merge base
dkmyta 3695e1a
Use fixableThreats prop from scan status
dkmyta 4eac461
Protect: React Query
nateweller d5a02c8
Protect: React Query
nateweller 25b5a39
Merge base
dkmyta 29bfbd3
Merge base
dkmyta 26c3d28
Fix merge errors
dkmyta a054033
Ensure fixer status polling occurs when in_progress fixers exist
dkmyta 3501471
Protect: React Query
nateweller 06ce482
Merge base
dkmyta 6ca566f
Invalidate scan status query on fixer status query success
dkmyta a36715f
Protect: React Query
nateweller 1e71db5
Merge base
dkmyta 3e4e594
Provide useFixersQuery threatIds default value
dkmyta 78f9445
Protect: React Query
nateweller 6dbd810
Merge base
dkmyta 423d69f
Reorder
dkmyta a66ea68
Account for fixerStatus being false in useFixers hook
dkmyta 517e486
Protect: React Query
nateweller ab98802
Temporarily disable optimistically setting fixer status
dkmyta d4a3275
Merge base
dkmyta 4ac4cb7
Protect: React Query
nateweller d96c395
Fix conflicts
dkmyta 7008ddf
Simplify QUERY_FIXERS_KEY, and update setQueryData return formatting
dkmyta 696be85
Fixes and improvements
dkmyta 9a9d7c8
Protect: React Query
nateweller 13fa583
Rebase, fix conflicts
dkmyta 80be81a
Update fixerInProgress logic
dkmyta 59accac
Conflict corrections
dkmyta 17a4927
Fix fixInProgressThreatIds logic
dkmyta 0aa61cd
Fix fixable_threat_ids type
dkmyta 774d5a5
Update property name
dkmyta 09cb682
Fix useFixersQuery cachedData check logic
dkmyta 0f9c56b
Protect: React Query
nateweller cc09189
Merge base, fix conflicts
dkmyta ca111cf
Protect: React Query
nateweller 030c5e0
Fix conflicts
dkmyta 160323a
Protect: React Query
nateweller 20cf5d8
Merge base, fix conflicts
dkmyta 3e9a641
Handle fixer status optimistically
dkmyta bbc404b
Add removed comment
dkmyta 63ed7b3
Remove file
dkmyta eba64a8
Fix types
dkmyta f958d78
Fix docblocks
dkmyta a098021
Revert unintended changes
dkmyta a294482
Protect: React Query
nateweller da226ee
Merge base, fix conflicts
dkmyta ee9f0d5
Merge trunk
dkmyta 118821a
changelog
dkmyta c44e4be
Improve setting fixer status optimistically
dkmyta 7992a92
Handle possible API returns
dkmyta d29f8e6
Merge branch 'trunk' into add/protect-fixer-status-to-initial-state
dkmyta 593d1cb
Revert fixers mutation update
dkmyta 77c1d50
Improve use fixers query error handling
dkmyta 2e5be46
Update notice message
dkmyta 12df4fe
Readd removed comment
dkmyta 5b4bd22
Merge branch 'trunk' into add/protect-fixer-status-to-initial-state
dkmyta 6ad1341
Update initial state default
dkmyta a9ddd99
Merge branch 'trunk' into add/protect-fixer-status-to-initial-state
dkmyta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
projects/packages/protect-models/changelog/add-protect-fixer-status-to-initial-state
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: minor | ||
Type: changed | ||
|
||
Adds a fixable_threats status property |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
projects/packages/protect-status/changelog/add-protect-fixer-status-to-initial-state
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: minor | ||
Type: changed | ||
|
||
Adds a fixable_threats status property |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
projects/plugins/protect/changelog/add-protect-fixer-status-to-initial-state
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: minor | ||
Type: changed | ||
|
||
Adds fixer status to the initial state |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
Very happy to delete this 😄