Skip to content
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

assign role using email #9963

Merged

Conversation

jeromeroucou
Copy link
Contributor

@jeromeroucou jeromeroucou commented Sep 28, 2023

What this PR does / why we need it:

This PR will address the request to assign a role to others with their email addresses

Which issue(s) this PR closes:

Special notes for your reviewer:

I haven't found any unit tests for managing roles and permissions (RoleAssigneeServiceBean.java)

Suggestions on how to test this:

In the "Assign a role" modal of a collection's Permissions menu, you can search for a user by e-mail address.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Yes, there is a little difference from before : email addresses are now displayed next to the user's name, like this : John Doe - john.doe@example.com. I can remove that if needed.

Is there a release notes update needed for this change?:

No

Additional documentation:

In documentation page, the first screenshot mist be updated with a Havard Dataverse collection in background

@coveralls
Copy link

coveralls commented Sep 28, 2023

Coverage Status

coverage: 20.038%. remained the same when pulling 6f464bc on Recherche-Data-Gouv:9381_assign_role_from_email into 7e0738e on IQSS:develop.

Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a quick comment for now

Comment on lines 34 to 35
<h:outputText value="#{roleAssignee.displayInfo.title}"/>
<h:outputText value="#{roleAssignee.displayInfo.title}"/>
<h:outputText value=" - #{roleAssignee.displayInfo.emailAddress}"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jeromeroucou I saw your note about this:

"Yes, there is a little difference from before : email addresses are now displayed next to the user's name, like this : John Doe - john.doe@example.com. I can remove that if needed."

I'm wondering... is this potentially a privacy problem? I can discover your email address by using the "add role" feature?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @pdurbin,

Indeed, a collection administrator could discover an email address with this feature. In that case, I'll remove my proposal.

@pdurbin pdurbin changed the title 9381 assign role from email assign role using email Sep 28, 2023
@pdurbin pdurbin added Feature: Permissions Size: 3 A percentage of a sprint. 2.1 hours. labels Sep 28, 2023
@DS-INRA DS-INRA added this to 🚧 Dev by Recherche Data Gouv in Recherche Data Gouv (formerly Data INRAE) Oct 13, 2023
@stevenwinship stevenwinship self-assigned this Jan 18, 2024
@stevenwinship stevenwinship removed their assignment Jan 18, 2024
@sekmiller sekmiller self-assigned this Jan 26, 2024
@sekmiller sekmiller merged commit f16c4a1 into IQSS:develop Jan 30, 2024
11 checks passed
Recherche Data Gouv (formerly Data INRAE) automation moved this from 🚧 Dev by Recherche Data Gouv to Done Jan 30, 2024
@pdurbin pdurbin added this to the 6.2 milestone Jan 31, 2024
@DS-INRA DS-INRA moved this from Done to 🚀 Done (Recherche Data Gouv) in Recherche Data Gouv (formerly Data INRAE) Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Permissions Size: 3 A percentage of a sprint. 2.1 hours.
Projects
Status: Done 🧹
Recherche Data Gouv (formerly Data IN...
  
🚀 Done (Recherche Data Gouv)
5 participants