-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
feat(versioning): Support entity versioning ingestion #12755
feat(versioning): Support entity versioning ingestion #12755
Conversation
…NG versioning scheme and versionPropertiesSideEffect
Codecov ReportAttention: Patch coverage is 📢 Thoughts on this report? Let us know! |
retrieverContext | ||
.getAspectRetriever() | ||
.getLatestSystemAspect(prevLatest, VERSION_PROPERTIES_ASPECT_NAME); | ||
if (prevLatestVersionPropertiesAspect == null) { |
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.
Confused on this, if the previous latest doesn't exist we don't update? Is the idea here that the VersionSetProperties got set to something that hasn't been processed yet and because that comes later than this it is considered more latest even though it could have been deleted or something else?
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.
Hmm your'e right I should update here
patchOp.setOp(PatchOperationType.ADD.getValue()); | ||
patchOp.setPath("/isLatest"); | ||
patchOp.setValue(false); | ||
ChangeMCP updateOldLatestVersionProperties = |
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.
If this is the reason you're protecting against empty values and returning Stream.empty, I think it makes more sense to make this part optional to execute, i.e.
ChangeMCP updateOldLatestVersionProperties = | |
if (prevLatestVersionPropertiesAspect != null) { | |
prevLatestVersionProperties = | |
RecordUtils.toRecordTemplate( | |
VersionProperties.class, | |
prevLatestVersionPropertiesAspect.getRecordTemplate().data()); | |
if (prevLatestVersionProperties != null) { | |
ChangeMCP updateOldLatestVersionProperties = |
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.
No just an oversight lol
…version properties doesn't exist
Checklist