Skip to content

Move id to Common Data interface #33

@EliuX

Description

@EliuX

Right now the API model sets up for most of the model the id as one of the attributes of such model. But is it? If we leave the id as part of the attributes that are specific to a model this would be allowed during the update of such model with by design is incorrect
image

TODO:

  • Move the id attribute of the API models to another interface/schema, like common_fields or the existing audit_fields. This way it is consistent in the way that such fields are particular to the model and they cannot be updated.
  • Refactor the codebase in a way this is consistent and does not provoke side-effects.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions