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

Prevent "identity" updates to Senses in the API #1468

Open
susanodd opened this issue Jan 24, 2025 · 0 comments
Open

Prevent "identity" updates to Senses in the API #1468

susanodd opened this issue Jan 24, 2025 · 0 comments
Labels

Comments

@susanodd
Copy link
Collaborator

susanodd commented Jan 24, 2025

Code requirement for #1466, #1461, #1360

The API update gloss code for the Senses checks whether the "new" senses is the "same" as the already existing senses. If nothing has changed, it ignores the senses. (See #1368, #1417)

Use is made of the "package" value retrieved for senses. This is because SignCollect uses this to fetch all the recently updated glosses every five minutes or so. So the "retrieved" senses value of the "package" is compared to the "new" value in the update request.

This is done to prevent "identity" updates.

This is because the "senses updates" removes the old senses and then creates them again, inside a complex transaction.

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

No branches or pull requests

1 participant