-
Notifications
You must be signed in to change notification settings - Fork 6
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
"automatic updating" permission #65
Comments
To clarify, I'm asking about this:
@wfyson, is this permission ever sent/synchronized with ORCID? Is that why it's not listed in the "Summary of granted permissions" at the top part of the "Manage ORCID Permissions" screen? I'm having real difficulties/confusion with this. After the user has given permission to write/update the ORCID profile, why ask in a separate place for permission to do it "automatically" ? |
Hi @photomedia, this extra permission for auto-exporting doesn't get sent to ORCID, but has been pulled out as a separate permission as it does change the nature of the relationship between the repository and people's orcid.org profiles. As a lot of repositories already have the ORCID Advance plugin in place with connected accounts already, I think there was some concern from repository administrators about changing how the export works without checking in with users to see if they're happy for that to take place. As it doesn't get sent to ORCID it ends up being stored in the new orcid_log dataset, which is also used to check the state over the course of the OAuth request. This mostly takes place at orcid_support_advance/cgi/orcid/authenticate Lines 36 to 55 in cc1c446
It's also true that even if the auto-export field is set, if the generic "update/modify" permission hasn't been given then the export wouldn't take place, as per the check at
I think ideally however that permission shouldn't be allowed to be set if the general update/modify hasn't been set - a bit of JavaScript to make the form a bit clearer is probably needed here! Also as the auto export permission isn't one sent to ORCID, it could just be a field/flag that just appears on the user profile. I've think I added it to the Manage Permissions screen as it felt like it made sense at the time, and hopefully is the best place for it for new users connecting their accounts (and of course if it's not a distinction that needs to be made, it could just be set to true by default behind the scenes as it were). |
Thank you, @wfyson for these explanations. |
@wfyson I've been trying to figure out what I would need to do to remove the |
Hi @photomedia - just to check am I right in thinking you want the field completely hidden and essentially always turned on for all users? If so I think the easiest way of doing this may be to:
Looking at this again now I see I haven't handled the auto-update sub field of the update permission all that well. Really it should act in the same fashion as the other permissions and then we could just have set it's user_edit property to 0 - maybe there was a reason why I didn't do that, but I can't see it right now! Something for a future update! |
"just to check am I right in thinking you want the field completely hidden and essentially always turned on for all users?" |
OK, here is what I did to have the field hidden and always turned on.
I then surrounded this line:
with the following condition (checking for the variable): if(!(((defined $repo->config( 'orcid_support_advance', 'disable_permission_sub_fields' ))) && ($repo->config( 'orcid_support_advance', 'disable_permission_sub_fields' ) == 1)))
Lastly, I set orcid_auto_update to TRUE in user_fields_automatic.pl:
|
That all looks good to me - does it work ok? In a future update I'll try and make these both configurable flags that can just be turned on or off. |
Yes, I confirm that it is working on my repo. The additional "sub option" of automatic updates doesn't show when the disable flag is set to 1, and the connect/authenticate is still working as before. Thanks for your help with this! If this could be made into a configurable flag in the plugin for everyone, that would be most excellent. |
After upgrading from version 1.7 to version 2.0, I see a new permission for "automatic updates". Is that permission only stored locally at the repository? Unlike the others, It's not sent/set within ORCID as well, right? What happens if someone gives permission for auto_updates, but doesn't give permission to update/modify ORCID record? The "automatic" wont work, right?
The text was updated successfully, but these errors were encountered: