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

Remove some InstanceType fields to simplify events #7321

Merged
merged 13 commits into from
Feb 8, 2023

Conversation

alexandra-bucur
Copy link

Signed-off-by: Alexandra Bucur alexandra-nona.bucur@ing.com

Description

In order to improve performance when it comes to events sent through the cohort, I removed typeDefDescription, typeDefDescriptionGUID, typeDefSuperTypes, validStatusList and validInstanceProperties fields from InstanceType class.

Testing

JUnits, FVTs, CTS repository workbench, Notebook labs for building a data catalog - passed.

Signed-off-by: Alexandra Bucur <alexandra-nona.bucur@ing.com>
@sonatype-lift
Copy link
Contributor

sonatype-lift bot commented Jan 25, 2023

🛠 Lift Auto-fix

Some of the Lift findings in this PR can be automatically fixed. You can download and apply these changes in your local project directory of your branch to review the suggestions before committing.1

# Download the patch
curl https://lift.sonatype.com/api/patch/github.com/odpi/egeria/7321.diff -o lift-autofixes.diff

# Apply the patch with git
git apply lift-autofixes.diff

# Review the changes
git diff

Want it all in a single command? Open a terminal in your project's directory and copy and paste the following command:

curl https://lift.sonatype.com/api/patch/github.com/odpi/egeria/7321.diff | git apply

Once you're satisfied commit and push your changes in your project.

Footnotes

  1. You can preview the patch by opening the patch URL in the browser.

Alexandra Bucur added 5 commits January 26, 2023 13:42
Signed-off-by: Alexandra Bucur <alexandra-nona.bucur@ing.com>
# Conflicts:
#	open-metadata-implementation/access-services/security-officer/security-officer-server/src/main/java/org/odpi/openmetadata/accessservices/securityofficer/server/publisher/SecurityOfficerPublisher.java
Signed-off-by: Alexandra Bucur <alexandra-nona.bucur@ing.com>
Copy link
Contributor

@mandy-chessell mandy-chessell left a comment

Choose a reason for hiding this comment

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

Just a few layout issues - but the rest looks good

@cmgrote
Copy link
Member

cmgrote commented Feb 14, 2023

Is this considered a backwards-compatible change? (Or maybe it doesn't need to be given we're bumping to v4.0?)

This has an impact on repository connectors that are, for example, storing all of these details as part of the instance type. (And in cases like XTDB relying on them to do validation of the details of instances — supertypes, valid properties, etc.)

^^ My fear with simply replacing this with retrieving the current / most up-to-date version of a typedef to do such validations is whether they may have changed over time — could be a problem for repositories that support historical instances (where the "schema" (typedef) may have changed since the historical version of an entity was stored, and thus the validation of that historical version of the entity should (presumably) still be done against the historical "schema" (typedef) that was used when it was stored — not the most current / up-to-date version of the typedef in the repository?)

@alexandra-bucur
Copy link
Author

@cmgrote Hi Chris! Let's discuss this on the next developers call.

@mandy-chessell mandy-chessell deleted the instance-type-fields branch June 10, 2024 17:24
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