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

[PACE-76] Change Data Policy primary key #108

Open
trietsch opened this issue Dec 8, 2023 · 0 comments
Open

[PACE-76] Change Data Policy primary key #108

trietsch opened this issue Dec 8, 2023 · 0 comments

Comments

@trietsch
Copy link
Contributor

trietsch commented Dec 8, 2023

A Data Policy currently is unique based on the id and the platform_id (and version), but this is only enforced in the database.

To ensure consistency across the API and database, @bvdeenen and @trietsch propose the following change:

  • Remove platform_id from the database migration in the data policy primary key
  • A Data Policy will be unique on the id and the version
  • If the version is omitted, the latest version is assumed
  • In RPCs, id and version should be included
  • A Data Policy reference message (including id and version) or a URN should be introduced to easily refer to a single unique Data Policy.

From SyncLinear.com | PACE-76

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

No branches or pull requests

1 participant