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

Consider forbidding user to specify Gids #60

Open
d-r-q opened this issue Nov 8, 2019 · 0 comments
Open

Consider forbidding user to specify Gids #60

d-r-q opened this issue Nov 8, 2019 · 0 comments
Labels
api choose Issues, where there are several alternatives to consider and choose refactoring underspecified
Milestone

Comments

@d-r-q
Copy link
Owner

d-r-q commented Nov 8, 2019

Actual behavior: user can specify gid while creating DetachedEntity or typed object

This approach is error prone, since user break gids generation logic.

Xodus doesn't allow users to manually create entity objects, users should ask Db to create new entity. This approach solves problem of gids generation, but currently it's unclear how to implement such use case with this approach:

  1. User has some kind of web service
  2. From client users is receiving updates for entities in JSON format.
  3. How then user can update entity with this data? Is he should to make additional request to fetch entity, update this entity with incoming data and persist it?

Related: #27 #61

@d-r-q d-r-q added choose Issues, where there are several alternatives to consider and choose underspecified api refactoring labels Nov 8, 2019
@d-r-q d-r-q added this to the Local DB milestone Nov 8, 2019
This was referenced Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api choose Issues, where there are several alternatives to consider and choose refactoring underspecified
Projects
None yet
Development

No branches or pull requests

1 participant