Skip to content

Profiles batch activity - #21604

Merged
getvictor merged 13 commits into
mainfrom
victor/20757-profiles-batch-activity
Aug 30, 2024
Merged

Profiles batch activity#21604
getvictor merged 13 commits into
mainfrom
victor/20757-profiles-batch-activity

Conversation

@getvictor

@getvictor getvictor commented Aug 27, 2024

Copy link
Copy Markdown
Member

#20757
API endpoint /api/v1/fleet/mdm/profiles/batch will now not log an activity for profile types that did not change in the database (Apple configuration profiles, Windows configuration profiles, or Apple declarations).

Demo video: https://www.loom.com/share/8b75cbd8e7394c12ac6b56746b72c244

Checklist for submitter

  • Changes file added for user-visible changes in changes/, orbit/changes/ or ee/fleetd-chrome/changes.
    See Changes files for more information.
  • Added/updated tests
  • If database migrations are included, checked table schema to confirm autoupdate
  • Manual QA for all new/changed functionality

@getvictor
getvictor marked this pull request as ready for review August 28, 2024 21:41
@getvictor
getvictor requested a review from a team as a code owner August 28, 2024 21:41
@getvictor

Copy link
Copy Markdown
Member Author

@roperzh, Can you review this PR since it modifies the MDM config profile code?

@getvictor
getvictor requested a review from roperzh August 28, 2024 22:14
@roperzh

roperzh commented Aug 29, 2024

Copy link
Copy Markdown
Contributor

@getvictor thanks so much for the ping, taking a look shortly

roperzh
roperzh previously approved these changes Aug 30, 2024

@roperzh roperzh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks good! is there any way we could enforce that all the statements and functions used to compare entities are updated when somebody adds a new column? it's my only worry

@lucasmrod lucasmrod removed their assignment Aug 30, 2024
@getvictor

Copy link
Copy Markdown
Member Author

looks good! is there any way we could enforce that all the statements and functions used to compare entities are updated when somebody adds a new column? it's my only worry

Yes, I can add some tests that use reflection which should catch changes.

@roperzh roperzh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thank you!

@getvictor

Copy link
Copy Markdown
Member Author

Will address migration timestamps in a separate PR.

@getvictor
getvictor merged commit 23f9065 into main Aug 30, 2024
@getvictor
getvictor deleted the victor/20757-profiles-batch-activity branch August 30, 2024 21: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.

3 participants