-
Notifications
You must be signed in to change notification settings - Fork 95
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
[Fixes #9550] Show creator/editor in 'Edit properties' #333
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestions
editor
is misleading (and alsocreator
, they both looks like some sort of roles), I'd suggestcreatedBy
andlastUpdatedBy
, consistent withcreation
andlastUpdate
fields already present.
Issues
- I tried to create a resource as
user
, than make it editable by everyone and edit asotheruser
but the editor still remainuser
, instead it should becomeotheruser
- This point is not respected.
For existing resources we know only the owner, therefore creator/editor will be the same: this should be expected by the migration script itself
I'm admin and I can not see it in the ShortResource
While is visible for a new resource:
Anyway, I can say that while for creation we are sure about the role of the user, for last editing we are not sure. what do you think @tdipisa ?
About this point, as specified in my other review here , installation should be as much as possible automatic, without bore the users (and us too) to run also update scripts. So I suggest to make it programmatically (or not do it at all, this information was not registered before, so it makes sense to not have it).
@offtherailz I'm sorry but what do you mean with that?
|
@tdipisa I wanted to suggest to not insert the "last updated by" information by checking the rule, because it is infact unknown. |
@offtherailz It is responsability of the client setting the editor. How can the backend know who did the changes? |
@afabiani, I didn't followed this task from the beginning, but from my undestanding, this information is a typical "Created by", "Last modified by" metadata of the resource. The server knows the user who does the operation, because it applies also security to it. |
As for the migration script it is ok for me if we persist only the creator. For the rest I think you can proceed fixing what reported above in the review of @offtherailz |
@tdipisa @offtherailz except for the name change suggested by Nali, the others changes have been done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working perfectly 👍
- It will conflict with [Fixes #9583] Unadvertised resources #332 update script need to be merged.
- The creator update script is not present.
@afabiani can you please solve conflicts? Thank you. |
|
Part of geosolutions-it/MapStore2#9550