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

New instance annotation @Core.changed for delta messages #201

Draft
wants to merge 19 commits into
base: v4.02-release-candidate
Choose a base branch
from

Conversation

ralfhandl
Copy link
Contributor

@ralfhandl ralfhandl commented Sep 16, 2022

vocabularies/Org.OData.Core.V1.xml Outdated Show resolved Hide resolved
vocabularies/Org.OData.Core.V1.xml Outdated Show resolved Hide resolved
@smartev3
Copy link

I would recommend uppercasing the first letter so it becomes "Changed".

This will keep it consistent with the case conventions used in all other Core terms (e.g. ContentID).

@mikepizzo
Copy link
Contributor

I think the only two states we can state are "it previously existed" and "i don't know if it already existed".

I like limiting what the payload can claim to those two states.

We could have an enum-valued "@Core.PreviousState:" with a value of "Existing" ("Existed?") and (optionally) "unknown".

vocabularies/Org.OData.Core.V1.xml Outdated Show resolved Hide resolved
vocabularies/Org.OData.Core.V1.xml Outdated Show resolved Hide resolved
vocabularies/Org.OData.Core.V1.md Outdated Show resolved Hide resolved
@ralfhandl ralfhandl marked this pull request as draft March 2, 2023 07:25
The recipient of a delta message MAY use the instance annotation for optimization only; ultimately any received added/changed entity MUST be processed as an UPSERT.</String>
</Annotation>
</Term>
<EnumType Name="PreviousStateType">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Switch to String with AllowedValues

<EnumType Name="PreviousStateType">
<Annotation Term="Core.Description" String="Previous state of a resource whose changes are described by an [added/changed entity in a delta message](https://docs.oasis-open.org/odata/odata-json-format/v4.01/odata-json-format-v4.01.html#sec_AddedChangedEntity) or a [nested entity in a deep-update request](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html#sec_UpdateRelatedEntitiesWhenUpdatinganE)" />

<Member Name="Absent" Value="2">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Remove this

@ralfhandl ralfhandl changed the title ODATA-1239 - New instance annotation @Core.changed for delta messages New instance annotation @Core.changed for delta messages Jun 6, 2024
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.

4 participants