-
Notifications
You must be signed in to change notification settings - Fork 945
48342 edit config profile endpoint #49141
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
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
425e1e6
Add PATCH configuration_profiles endpoint stub
andymFleet 6ec4396
Add validation test coverage for update configuration profile endpoint
andymFleet 75900cd
Persist identifier-keyed Apple updates in PATCH configuration_profiles
andymFleet 92675ff
Add unit tests for Apple profile updates in PATCH configuration_profiles
andymFleet 640f212
Add MySQL integration test for UpdateMDMAppleConfigProfile
andymFleet 6464353
Fix edited_configuration_profile activity to use the post-update name
andymFleet a9847d3
Add cross-team rename case to UpdateMDMAppleConfigProfile integration…
andymFleet 318fa1d
Add Fleet variable pass-through test for UpdateMDMAppleConfigProfile
andymFleet 414553e
Add secrets_updated_at pass-through test for UpdateMDMAppleConfigProfile
andymFleet a45be1d
Persist name-keyed Windows profile updates in PATCH configuration_pro…
andymFleet 66371ab
Add unit test coverage for UpdateMDMWindowsConfigProfile
andymFleet 62b1309
Close coverage gaps in UpdateMDMWindowsConfigProfile tests
andymFleet 9c3eef7
Clear stale OS-update tracking when Windows profile content drops the…
andymFleet 6f927be
Add integration test coverage for UpdateMDMWindowsConfigProfile
andymFleet 1f7f268
Persist name-keyed Android profile updates in PATCH configuration_pro…
andymFleet 09f528b
Add unit test coverage for UpdateMDMAndroidConfigProfile
andymFleet c68249a
Add integration test coverage for UpdateMDMAndroidConfigProfile
andymFleet 8e4c82d
Persist name-keyed DDM declaration updates in PATCH configuration_pro…
andymFleet 9b6967d
fix Reject identifier mismatch on DDM declaration update
andymFleet 23f8546
Add unit test coverage for UpdateMDMAppleDeclaration
andymFleet 36ad188
add change file
andymFleet 0e00bfa
Merge branch 'main' into 48342-edit-config-profile-endpoint
JordanMontgomery 22f8cd7
Fix Free-tier panics and edit-endpoint validation gaps
JordanMontgomery 38a6143
Add integration test coverage for the profile edit endpoint
JordanMontgomery 734b0ab
Merge branch '48342-edit-config-profile-endpoint' into 48342-edit-con…
JordanMontgomery 272f925
Extend edit-endpoint fixes to Android variables and DDM scope
JordanMontgomery 0aed94a
Retain prior Windows profile content on edit
JordanMontgomery ec1dde8
Merge branch '48342-edit-config-profile-endpoint' into 48342-edit-con…
JordanMontgomery 9d90253
48342 ECP Backend with fixes (#49331)
JordanMontgomery 5e312e2
Remove unnecessary byte conversions flagged by unconvert
JordanMontgomery 48e9a3f
Merge remote-tracking branch 'origin/main' into 48342-edit-config-pro…
JordanMontgomery b615e6c
Preserve uploaded_at on no-op profile edits
JordanMontgomery 5ad0255
Merge branch '48342-edit-config-profile-fixes' into 48342-edit-config…
JordanMontgomery 328686c
Fixes per review/slack comments
JordanMontgomery 2c31d49
gofmt file
JordanMontgomery 0313a7a
Fix update tracking bug
JordanMontgomery 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 @@ | ||
| * Added support for editing existing configuration profiles (Apple `.mobileconfig`, Apple DDM declarations, Windows, and Android) in place via `PATCH /api/v1/fleet/configuration_profiles/:profile_uuid`. |
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.
Aren't we technically calling this, even if the contents didn't change? The above rowsAffected=0 check only checks for not found.
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.
WE are but I think it's probably OK. We can't super easily check for affected rows because we set the DB to return affectedRows=matchedRows(even if not updated) in our connections. So this is a tiny bit less performant perhaps but given it's a single profile endpoint I think probably OK?