-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Consolidate user/group share actions into single dropdown #36587
Consolidate user/group share actions into single dropdown #36587
Conversation
@PVince81 I added the "silent model update" in order to prevent an immediate redraw wich closed the dropdown while changing stuff: I hope that doesn't collide somewhere else. Tests are fine. |
I consider allowing the redraw on removing or adding the expiration date, so the little ⏱ immediately appears/disappears. |
Seems to work nicely with my 15 minutes manual testing. An unusual sequence that is odd is:
So when displaying an existing share, if the share has an expiry date past the current enforced limit, then the displayed expiry date is just the current enforced limit. (which is not a true indication of what is in the server database) |
The UI tests will need refactoring for the new/changed behaviour here. Without having looked, I guess that it will not just be the Gherkin scenarios, but the placement of UI date elements has changed so xpath... in page objects probably needs sorting out. |
I added some labels, because I guess QA-team will be helping with adjusting the UI acceptance tests. |
hmmm, I guess that's because the jQuery Datepicker sets a maxDate based on the enforced default expiration. Hmmm... |
I don't think it's a big thing - it only happens if the admin has set the default days to be long, then later reduces it. |
Codecov Report
@@ Coverage Diff @@
## feature/user-group-share-expiration #36587 +/- ##
=========================================================================
+ Coverage 64.64% 64.65% +<.01%
Complexity 19078 19078
=========================================================================
Files 1269 1269
Lines 74668 74666 -2
Branches 1322 1319 -3
=========================================================================
+ Hits 48269 48272 +3
+ Misses 26007 26005 -2
+ Partials 392 389 -3
Continue to review full report at Codecov.
|
@felixheidecke, I just pushed a fix for the CI, Haven't run all the tests but they should be good now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Style
tests/acceptance/features/webUISharingInternalGroups/shareWithGroupUsingExpirationDate.feature
Show resolved
Hide resolved
tests/acceptance/features/webUISharingInternalGroups/shareWithGroupUsingExpirationDate.feature
Show resolved
Hide resolved
tests/acceptance/features/webUISharingInternalUsers/shareWithUserUsingExpirationDate.feature
Show resolved
Hide resolved
tests/acceptance/features/webUISharingInternalUsers/shareWithUserUsingExpirationDate.feature
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one thing, rest looked good to me. :)
tests/acceptance/features/lib/FilesPageElement/SharingDialog.php
Outdated
Show resolved
Hide resolved
tests/acceptance/features/lib/FilesPageElement/SharingDialog.php
Outdated
Show resolved
Hide resolved
https://drone.owncloud.com/owncloud/core/22008/81/14
in a few places. |
//the additional permission disappear again after they are changed | ||
//so we need to open them again and again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this comment is no longer true?
This is failing: https://drone.owncloud.com/owncloud/core/22028/93/14 |
} | ||
|
||
/** | ||
* open the dropdown for share actions in the sidebar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* open the dropdown for share actions in the sidebar | |
* close the dropdown for share actions in the sidebar |
I will fix this after merging, when I am rebasing the PR to which this gets merged.
I will merge this to |
@phil-davis one test is failing in drone but passing locally, I will try and find what's causing that. |
OK - if you have to push another commit, then you may as well also fix the test at SharingDialog.php line 133 |
@felixheidecke |
@dpakach Looks like @phil-davis decided that it doesn't need to be supported ;-) |
Yes, we talked about it. We manually tested in the latest Firefox and it works. We do not support every version of Firefox - so it would be "a bit random" to insist on fixing something on Firefox58 and other things might or might not work on Firefox42,57,59,60,61,... |
Rework user/group share actions. Concerning https://github.com/owncloud/enterprise/issues/2001