-
Notifications
You must be signed in to change notification settings - Fork 4
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
Support adding creator to other entity types as well #122
Comments
We need to specify exactly what should happen in which case.
@nichtich Can you explain what you mean with the |
Let's ignore bulk import via admin and anonymous writing and focus on cases with
Open question:
|
Okay, this definitely still needs a lot of discussion.
👍
Currently, this is not consistent for entity types.
We need to find a solution that can be applied consistently (and doesn't break existing applications).
If we go for URI only, we couldn't show any names in Cocoda for mappings and annotations anymore. I agree that However, I think the user should be able to choose which identity and data is added to a mapping. My suggestion would be:
What do you think? |
Ok, then add a name
Adding someone else as contributor is a relevant use case (especially for concordances), so one should also be allowed to write this field but this is annother issue to be solved later when required.
👍
As query parameter better use the full identity URI, e.g.
Use This should also allow clients to change your existing identity URI and/or name by saving the same item without modification but different |
Got it. 👌 Last question: If the full identity URI is not actually available in the user's identities, should we:
|
I would suggest:
I know you didn't want to consider anonymous writing and |
I updated json-anystream to give us the possibility to adjust objects before they are emitted to the stream, so we can do this at a central point (middleware) for all entities equally. The following is a suggestion for implementing this in jskos-server. Note that the user getting to this point in code means that they have the rights to perform the current action (this is separate from checking the creator for PUT/PATCH/DELETE though). For all: Existing fields POST
PUT/PATCH
Edit: Updated with how this is actually handled. |
All right, except for creator and contributor fields should be ignored in the payload.
No, the order is not relevant.
No, but not part of this issue anyway. |
I started an implementation and it seems to work well, but there is still more do be done. Implementations for all services (except annotations which I have done already) need to be adjusted, and we should add some tests to ensure correct implementation. |
Still missing:
|
Merged into |
Annotations are saved with their
creator
automatically set viauser
. For bartoc.org we also want creators to be set on import via PUT/POST. This could be made generic by setting a config valuewithUser
to the entity type.The text was updated successfully, but these errors were encountered: