-
Notifications
You must be signed in to change notification settings - Fork 884
Clean up setup experience cancellation behavior #43437
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
Merged
The head ref may contain hidden characters: "\u{1F916}-34288-rev-2"
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
775af8b
🤖 Clean up setup experience cancellation behavior
iansltx ad3112f
Tweak changes file
iansltx f597975
Match filter label to Figma
iansltx 5fbe3fe
Add "during setup experience" copy when relevant on installs
iansltx 4f35a80
🤖 Add test coverage for VPP install failure during setup experience a…
iansltx 7641ce4
Merge branch 'main' into 🤖-34288-rev-2
iansltx 5ef9c8d
Clean up cancellation logic
iansltx 125699d
🤖 Catch up tests
iansltx 17b2c1c
🤖 FIx more tests
iansltx 662d192
Spelling consistency
iansltx 25dbf52
Mark setup experience cancellations as from automation
iansltx b755699
🤖 Move activity emission for setup experience cxl to when triggering …
iansltx 6e857d5
Remove references to previous behavior in comments since these are ne…
iansltx 1fb3469
🤖 Add test coverage for setup experience cancel activity creation
iansltx 23df02d
Fix incremental lint issues
iansltx ffdc483
Fix stale error message
iansltx 16ab658
Tweak error message
iansltx efec8cf
Change another log line
iansltx e563b19
Tweak another error message
iansltx 00f2c6b
Clean up changes file
iansltx 7aa229d
Rename test
iansltx 9bb544e
Don't emit activity until setup exp status persist succeeds to avoid …
iansltx 3b67efb
Fall back to Fleet as actor name in new activity
iansltx 6b31ec3
Fix JS lint
iansltx d3666ab
Add `from_setup_experience` field to install/script run activities
iansltx 159194a
Tweak next upcoming activity handling for app store app installs with…
iansltx 41b9500
Remove reference to nonexistent software display name field in activi…
iansltx e48bbd2
🤖 Add activity tests
iansltx 573ee28
🤖 Fix test activity assertions
iansltx 0d9f3d3
Revert audit-logs.md changes from setup experience commit (moving to …
iansltx f3c7552
Fix missing from_setup_experience expectation in integration test
iansltx cf68927
🤖 Move activity test to avoid including Fleet core activities from th…
iansltx da46cc6
🤖 Fix some more activity properties
iansltx 612230e
🤖 Fix edge case on updating setup experience status result statuses
iansltx 6bbf54a
🤖 Clean up SELECT -> UPDATEs to single queries
iansltx 268c78d
🤖 Clean up dead code on terminal state check
iansltx ba617d4
Merge branch 'main' into 🤖-34288-rev-2
iansltx 59ddb1b
Remove unused import
iansltx 29650fa
Update test comment/name
iansltx ecb0333
Remove simulated bug test
iansltx e08a85e
Fix host-only activity flag added back due to merge conflict
iansltx f0dfef9
Modernize pointers
iansltx 13ce6c6
Add missing "during setup experience" activity item strings
iansltx 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
This file contains hidden or 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,3 @@ | ||
| - Added activity when setup experience is canceled due to software install failure | ||
| - Added cancel activities for each VPP app install skipped due to setup experience cancellation, and switched "failed" activity to "canceled" for package-based software installs in the same situation | ||
| - Added install failure activity when VPP installs fail due to licensing issues during setup experience |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
Don't fail the poll after the cancellation has already been consumed.
Line 242 flips the row to
Failurebefore the activity write. IfNewActivityfails at Line 249 or Line 259, this returns an error to Orbit even though the DB state is already mutated, and the next poll won't retry because the row is no longerCancelled. That permanently drops the cancellation activity. Please make the activity write best-effort here, or persist the status transition and activity atomically.🤖 Prompt for AI Agents
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.
Will have to accept the risk here, since we can't run service layer work in the same transaction. Hard-failing here is probably a little better than letting this through. Going to keep this open in case a human reviewer has different opinions.