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

Talk Users are not created with project copy #4251

Closed
lcjohnso opened this issue Oct 4, 2023 · 1 comment
Closed

Talk Users are not created with project copy #4251

lcjohnso opened this issue Oct 4, 2023 · 1 comment
Labels

Comments

@lcjohnso
Copy link
Member

lcjohnso commented Oct 4, 2023

Current Behavior: ProjectCopier (link) does not create Talk roles along with Panoptes project roles, creating a situation where the owner/collab or any project team member cannot moderate or take other non-public actions on their project Talk.

Example Error: When the project owner tries to add collaborators via the Lab, a generic error message is displayed.
image

However, a look at the network tab shows that the error specifically has to do with Talk permissions, resulting in 401 responses to requests to create new Talk roles for collaborators (likely because the logged in user, the project owner, didn't have admin permissions to add other roles).
image (1)

Also: even after the error message in the Lab, after reload the Panoptes aspects of collaborator roles all work correctly -- hence the explanation that the error is solely to do with Talk roles.

Desired Behavior: Create Talk roles along with Panoptes roles when ProjectCopier runs.

Potential Solution: add Talk client call for role creation to ProjectCopier, executing actions such as those described in the Stack Overflow entry regarding project ownership migration:

talk_client = TalkApiClient.new
talk_client.roles.create(name: "admin", user_id: project.owner.id, section: "project-#{project.id}")

See also: another ProjectCopier issue = #4238

@zwolf
Copy link
Member

zwolf commented Nov 2, 2023

Fixed by #4258

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants