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

"you have been assigned a role" notification send when a dataset is published #4141

Closed
pameyer opened this issue Sep 19, 2017 · 2 comments
Closed
Assignees

Comments

@pameyer
Copy link
Contributor

pameyer commented Sep 19, 2017

Originally noticed in #3998, but appears unrelated to code changes there.

Depositor with dsContributor creates dataset (with no restricted files), (optionally) submits for review, Curator publishes dataset. Depositor receives notification that the dataset has been publish, and notification that they have been assigned a role (which isn't necessary to notify them about in this case).

@scolapasta
Copy link
Contributor

scolapasta commented Sep 20, 2017

So, in cleaning up notifications for Publish generally, @TaniaSchlatter, @matthew-a-dunlap and I decided that we should do away with this notification and just include these users in the Publish Dataset notification.

In other words, the idea is to have 1 notification that gets sent out to all interested parties (those with ViewUnpublishedDataset and DownloadFile permissions) when the dataset is published. This should hopefully clear up some of the confusion.

We still have the "you have been granted file access" notification if you've been granted DownloadFile permission to a specific file.

Since @matthew-a-dunlap has been doing clean up on that Publish Dataset notification for #3998 we're including this in that.

matthew-a-dunlap added a commit that referenced this issue Sep 20, 2017
Remove 'duplicated' in-review notification
Set workflow complete notification to notify for correct roles
Moved role-adding notification to happen after publish success/notification
Minor refactoring.
@kcondon kcondon self-assigned this Sep 21, 2017
@matthew-a-dunlap
Copy link
Contributor

matthew-a-dunlap commented Sep 21, 2017

Here are some extra notes to help with QA:
Dataset publish notification goes to users with these permissions:

  • Permission.ViewUnpublishedDataset
  • Permission.DownloadFile

You should see these notifications in this order when creating a dataset, including when assign a dataset for review:

  • Dataset created
  • Dataset published

Rsync timing should continue to work as intended (notification going out after things are done). Normal notifications should work in the same way.

Note: The role added notification was kept in the first commit but should have been removed. This has been edited to reflect that.

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

No branches or pull requests

6 participants