Skip to content
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

Add infrastructure for handling targeted scope checks and entity preservation #17828

Conversation

ryan-carroll-graylog
Copy link
Contributor

@ryan-carroll-graylog ryan-carroll-graylog commented Jan 3, 2024

Updates Scoped entity mutability checks to allow some changes by comparing new and old entities. Also updates ContentPackUninstallation object to contain full objects for later use in preserving entities.

Description

  • Adds scoped entity mutability check that accepts existing and updated objects to compare.
  • Adds full entity objects to ContentPackUninstallation object to allow preserving some fields during Illuminate upgrades.

/nocl

Motivation and Context

Allows previously immutable scoped entities to be mutable under certain conditions.
See Issue: https://github.com/Graylog2/se-feature-requests/issues/36
And Enterprise PR: https://github.com/Graylog2/graylog-plugin-enterprise/pull/6365

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

@ryan-carroll-graylog ryan-carroll-graylog changed the title Add scoped entity mutability check that accepts existing and updated objects to compare Add infrastructure for handling targeted scope checks and entity preservation Jan 5, 2024
@ryan-carroll-graylog ryan-carroll-graylog marked this pull request as draft January 9, 2024 15:45
@ryan-carroll-graylog ryan-carroll-graylog marked this pull request as ready for review January 9, 2024 16:07
Copy link
Contributor

@kingzacko1 kingzacko1 left a comment

Choose a reason for hiding this comment

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

LGTM

@ryan-carroll-graylog ryan-carroll-graylog merged commit c9d9987 into master Jan 12, 2024
5 checks passed
@ryan-carroll-graylog ryan-carroll-graylog deleted the allow-adding-notifications-to-illuminate-event-definitions branch January 12, 2024 12:26
danotorrey pushed a commit that referenced this pull request Mar 7, 2024
…ervation (#17828)

* Add scoped entity mutability check that accepts existing and updated objects to compare

* Add full objects to list of uninstalled entities

* Fix failing test

* Move preserved entity objects from content pack uninstallation to own variable to avoid breaking changes

* Update tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants