permify icon indicating copy to clipboard operation
permify copied to clipboard

Create an API which allows to update schema partially

Open arihantjain8118 opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. I have less frequent but essential schema changes on my project for which i have to change full schema and for that too I have to handle it soley from BE.

Describe the solution you'd like An API which allows us to update the partial schema (relation and action ) would work

arihantjain8118 avatar Apr 11 '23 13:04 arihantjain8118

we would like to have this feature as well. here is our use case

  • we have multiple teams developing new api endpoints on daily basis
  • each new endpoint may require a new action defined in the schema
  • we would like to enable each team to add new actions by themselves while maintaining the entity and relation centrally

with that being said, it would be great if we can update the schema partially - to be specific, add new actions on existing entities without having to upload the whole schema

liuhx1027 avatar Jun 21 '23 08:06 liuhx1027

Hello @liuhx1027 and @arihantjain8118, a feature like this can be implemented. It's validated by merging with the previous version before any partial entity change, then published as a new version with the merged model. Because it is versioned as if it were a newly created model, it can't be updated, preserving the cache system intact. We will add this to our roadmap.

tolgaozen avatar Jun 22 '23 12:06 tolgaozen