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

[full-ci] Batch actions for accepting and declining shares #5374

Merged
merged 26 commits into from
Jul 2, 2021

Conversation

kulmann
Copy link
Member

@kulmann kulmann commented Jun 25, 2021

Description

Continuing #5211 for a centralized implementation of the triggerShareAction business logic. Moved it to a helper and made individual mixins for acceptShare and declineShare available, which can be used in the actions accordion in the right sidebar.

This PR removes the delete actions (batch and individual) from shares on the shared with me page, as the decline action is the right thing to choose in such a situation.

Related Issue

Motivation and Context

Improve UX and refactor code

How Has This Been Tested?

  • unit tests for the triggerShareAction helper (existed before, now moved to a dedicated spec file for the new helper)

Screenshots (if appropriate):

Screenshot 2021-06-25 at 13 44 44

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • Since we have an action for the right sidebar for accepting a share now, we could change the right sidebar behaviour to display actions (at the moment it displays a message that the share has to be accepted first). This requires solving other issues so I will not do that in this PR.
  • changelog item

@kulmann kulmann added the Status:Needs-Review Needs review from a maintainer label Jun 25, 2021
@kulmann kulmann self-assigned this Jun 25, 2021
@update-docs

This comment has been minimized.

return
}

console.log(errors)
Copy link
Contributor

Choose a reason for hiding this comment

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

Dev leftover or on purpose?

Copy link
Member Author

Choose a reason for hiding this comment

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

Intentional, because I don't want to swallow errors. Eventually we should come up with a proper logging solution.

Copy link
Contributor

Choose a reason for hiding this comment

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

RFC ;)

@ownclouders
Copy link
Contributor

Results for oC10SharingAccept https://drone.owncloud.com/owncloud/web/16862/9/1

💥 The acceptance tests failed. Please find the screenshots inside ...

webUISharingAcceptSharesToRoot-acceptShares-feature-110.png

webUISharingAcceptSharesToRoot-acceptShares-feature-110.png

💥 The acceptance tests pipeline failed. The build has been cancelled.

@ownclouders
Copy link
Contributor

Results for oCISSharingInternalUsers2 https://drone.owncloud.com/owncloud/web/16866/53/1
💥 The acceptance tests pipeline failed. The build has been cancelled.

@kulmann kulmann force-pushed the batch-actions-accept-decline branch from 4471b5e to ff11089 Compare June 25, 2021 14:09
@ownclouders
Copy link
Contributor

Results for oCISSharingInternalUsers2 https://drone.owncloud.com/owncloud/web/16868/53/1
💥 The acceptance tests pipeline failed. The build has been cancelled.

@kulmann kulmann changed the title Batch actions for accepting and declining shares [full-ci] Batch actions for accepting and declining shares Jun 25, 2021
@kulmann kulmann force-pushed the batch-actions-accept-decline branch from ff11089 to ec897cd Compare June 25, 2021 14:48
@kulmann kulmann force-pushed the batch-actions-accept-decline branch from ec897cd to dd65fca Compare June 26, 2021 18:53
@owncloud owncloud deleted a comment from ownclouders Jun 26, 2021
@owncloud owncloud deleted a comment from ownclouders Jun 26, 2021
@owncloud owncloud deleted a comment from ownclouders Jun 26, 2021
@owncloud owncloud deleted a comment from ownclouders Jun 26, 2021
@owncloud owncloud deleted a comment from ownclouders Jun 26, 2021
@owncloud owncloud deleted a comment from ownclouders Jun 26, 2021
@owncloud owncloud deleted a comment from ownclouders Jun 26, 2021
@ownclouders
Copy link
Contributor

Results for oCISSharingBasic https://drone.owncloud.com/owncloud/web/16971/47/1
The following scenarios passed on retry:

  • webUIRestrictSharing/restrictSharing.feature:49

@ownclouders
Copy link
Contributor

Results for oC10IntegrationApp2 https://drone.owncloud.com/owncloud/web/16971/63/1

💥 The acceptance tests failed. Please find the screenshots inside ...

webUITrashbinRestore-trashbinRestore-feature-14.png

webUITrashbinRestore-trashbinRestore-feature-14.png

@ownclouders
Copy link
Contributor

Results for oC10Trashbin https://drone.owncloud.com/owncloud/web/16971/34/1

💥 The acceptance tests failed. Please find the screenshots inside ...

webUITrashbinDelete-trashbinDelete-feature-112.png

webUITrashbinDelete-trashbinDelete-feature-112.png

webUITrashbinDelete-trashbinDelete-feature-41.png

webUITrashbinDelete-trashbinDelete-feature-41.png

webUITrashbinRestore-trashbinRestore-feature-138.png

webUITrashbinRestore-trashbinRestore-feature-138.png

webUITrashbinRestore-trashbinRestore-feature-14.png

webUITrashbinRestore-trashbinRestore-feature-14.png

webUITrashbinRestore-trashbinRestore-feature-181.png

webUITrashbinRestore-trashbinRestore-feature-181.png

webUITrashbinRestore-trashbinRestore-feature-222.png

webUITrashbinRestore-trashbinRestore-feature-222.png

webUITrashbinRestore-trashbinRestore-feature-241.png

webUITrashbinRestore-trashbinRestore-feature-241.png

webUITrashbinRestore-trashbinRestore-feature-260.png

webUITrashbinRestore-trashbinRestore-feature-260.png

webUITrashbinRestore-trashbinRestore-feature-30.png

webUITrashbinRestore-trashbinRestore-feature-30.png

@ownclouders
Copy link
Contributor

Results for oC10Files2 https://drone.owncloud.com/owncloud/web/16971/11/1

💥 The acceptance tests failed. Please find the screenshots inside ...

webUIFilesDetails-fileDetails-feature-116.png

webUIFilesDetails-fileDetails-feature-116.png

webUIFilesDetails-fileDetails-feature-66.png

webUIFilesDetails-fileDetails-feature-66.png

webUIFilesDetails-fileDetails-feature-82.png

webUIFilesDetails-fileDetails-feature-82.png

webUIFilesDetails-fileDetails-feature-99.png

webUIFilesDetails-fileDetails-feature-99.png

webUIFilesSearch-search-feature-175.png

webUIFilesSearch-search-feature-175.png

@ownclouders
Copy link
Contributor

Results for oCISSharingBasic https://drone.owncloud.com/owncloud/web/16973/47/1
The following scenarios passed on retry:

  • webUIRestrictSharing/restrictSharing.feature:49

@ownclouders
Copy link
Contributor

Results for oC10Files2 https://drone.owncloud.com/owncloud/web/16973/11/1

💥 The acceptance tests failed. Please find the screenshots inside ...

webUIFilesDetails-fileDetails-feature-116.png

webUIFilesDetails-fileDetails-feature-116.png

webUIFilesDetails-fileDetails-feature-66.png

webUIFilesDetails-fileDetails-feature-66.png

webUIFilesDetails-fileDetails-feature-82.png

webUIFilesDetails-fileDetails-feature-82.png

webUIFilesDetails-fileDetails-feature-99.png

webUIFilesDetails-fileDetails-feature-99.png

webUIFilesSearch-search-feature-175.png

webUIFilesSearch-search-feature-175.png

@ownclouders
Copy link
Contributor

Results for oC10IntegrationApp2 https://drone.owncloud.com/owncloud/web/16973/63/1

💥 The acceptance tests failed. Please find the screenshots inside ...

webUITrashbinRestore-trashbinRestore-feature-14.png

webUITrashbinRestore-trashbinRestore-feature-14.png

@ownclouders
Copy link
Contributor

Results for oC10Trashbin https://drone.owncloud.com/owncloud/web/16973/34/1

💥 The acceptance tests failed. Please find the screenshots inside ...

webUITrashbinDelete-trashbinDelete-feature-112.png

webUITrashbinDelete-trashbinDelete-feature-112.png

webUITrashbinDelete-trashbinDelete-feature-41.png

webUITrashbinDelete-trashbinDelete-feature-41.png

webUITrashbinRestore-trashbinRestore-feature-138.png

webUITrashbinRestore-trashbinRestore-feature-138.png

webUITrashbinRestore-trashbinRestore-feature-14.png

webUITrashbinRestore-trashbinRestore-feature-14.png

webUITrashbinRestore-trashbinRestore-feature-181.png

webUITrashbinRestore-trashbinRestore-feature-181.png

webUITrashbinRestore-trashbinRestore-feature-222.png

webUITrashbinRestore-trashbinRestore-feature-222.png

webUITrashbinRestore-trashbinRestore-feature-241.png

webUITrashbinRestore-trashbinRestore-feature-241.png

webUITrashbinRestore-trashbinRestore-feature-260.png

webUITrashbinRestore-trashbinRestore-feature-260.png

webUITrashbinRestore-trashbinRestore-feature-30.png

webUITrashbinRestore-trashbinRestore-feature-30.png

@ownclouders
Copy link
Contributor

Results for oCISSharingBasic https://drone.owncloud.com/owncloud/web/17006/47/1
The following scenarios passed on retry:

  • webUIRestrictSharing/restrictSharing.feature:49

@ownclouders
Copy link
Contributor

Results for oCISSharingBasic https://drone.owncloud.com/owncloud/web/17008/47/1
The following scenarios passed on retry:

  • webUIRestrictSharing/restrictSharing.feature:49

@ownclouders
Copy link
Contributor

Results for oCISSharingBasic https://drone.owncloud.com/owncloud/web/17020/47/1
The following scenarios passed on retry:

  • webUIRestrictSharing/restrictSharing.feature:49

Copy link
Contributor

@fschade fschade 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 small finding, expect that it looks good to me 🚀

@sonarcloud
Copy link

sonarcloud bot commented Jul 2, 2021

@ownclouders
Copy link
Contributor

Results for oCISSharingBasic https://drone.owncloud.com/owncloud/web/17023/47/1
The following scenarios passed on retry:

  • webUIRestrictSharing/restrictSharing.feature:49

Copy link
Contributor

@fschade fschade left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@kulmann kulmann merged commit 59d2073 into master Jul 2, 2021
@delete-merged-branch delete-merged-branch bot deleted the batch-actions-accept-decline branch July 2, 2021 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status:Needs-Review Needs review from a maintainer
Projects
None yet
5 participants