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

Add collaborators #29

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Add collaborators #29

wants to merge 11 commits into from

Conversation

pmaier1
Copy link
Contributor

@pmaier1 pmaier1 commented Apr 29, 2020

This PR adds the current state of features around collaborators.

  • Adding collaborators to a resource
  • Managing collaborators of a resource
  • Roles for collaborators
  • Options for autocomplete results => Not yet implemented => separate PR
  • Extra field to display in autocomplete results => Not yet implemented => separate PR
  • Side of the recipient (resources)
  • Pending shares
  • Overview of received shared resources

@pmaier1 pmaier1 marked this pull request as draft May 7, 2020 15:06
@pmaier1 pmaier1 marked this pull request as ready for review May 14, 2020 15:44
@pmaier1 pmaier1 requested a review from micbar May 14, 2020 15:44
Copy link
Contributor

@micbar micbar left a comment

Choose a reason for hiding this comment

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

Gherkin syntax is a little bit different :-)

https://cucumber.io/docs/gherkin/reference/

No caps on the keywords.

@pmaier1
Copy link
Contributor Author

pmaier1 commented May 15, 2020

No caps on the keywords.

Thanks. Fixed.

Copy link
Contributor

@micbar micbar left a comment

Choose a reason for hiding this comment

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

maybe work with tables to achieve the cases you want to solve with or

Scenario: Being removed as a collaborator from a resource
Given I'm a collaborator of a certain resource
When an Owner removes me from the resource as in 'Scenario: Removing a collaborator from a resource'
Or a Co-Owner removes me from the resource as in 'Scenario: Removing a collaborator from a resource'
Copy link
Contributor

Choose a reason for hiding this comment

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

Or is not allowed.
You need an extra scenario ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

IIRC that "Or" thing was introduced by you here: a60caaf#diff-1c40b780bdbf7746a4b6f27bb29fd912R6

Anyway, will try to change it, thanks.

Given I'm logged in as a user
When I have accepted collaborator invites
Or I have pending collaborator invites as in 'Scenario: Being added as a collaborator to a resource (Pending Shares enabled)'
Or I have shared resources that I removed from my personal space previously as in 'Feature: Removing a shared resource from a user's personal space'
Copy link
Contributor

Choose a reason for hiding this comment

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

same

Scenario: Adding a shared resource to a user's personal space
Given I'm a logged in user
When I have pending collaborator invites as in 'Scenario: Being added as a collaborator to a resource (Pending Shares enabled)'
Or I have declined collaborator invites
Copy link
Contributor

Choose a reason for hiding this comment

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

same

Given I'm a collaborator of a specific resource
And I have the role 'Owner'
# Or I have the role 'Co-Owner'
When looking at the resource in detail
Copy link
Contributor

Choose a reason for hiding this comment

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

same

Given I'm a collaborator of a specific resource
And I have the role 'Owner'
# Or I have the role 'Co-Owner'
Or I have the permission 'Share'
Copy link
Contributor

Choose a reason for hiding this comment

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

same

Given I'm a collaborator of a specific resource
And I have the role 'Owner'
# Or I have the role 'Co-Owner'
Or I have the permission 'Share'
Copy link
Contributor

Choose a reason for hiding this comment

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

same

Scenario: Setting roles for collaborators on a single file
Given I'm a collaborator of a specific file
And I have the role 'Owner'
# Or I have the role 'Co-Owner'
Copy link
Contributor

Choose a reason for hiding this comment

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

same

Scenario: Setting roles for collaborators on a folder
Given I'm a collaborator of a specific folder
And I have the role 'Owner'
# Or I have the role 'Co-Owner'
Copy link
Contributor

Choose a reason for hiding this comment

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

same

@pmaier1
Copy link
Contributor Author

pmaier1 commented May 22, 2020

Thanks @micbar! Feedback addressed.

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

Successfully merging this pull request may close these issues.

2 participants