-
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
[stable10] use a multi line approach to display share autocomplete #35397
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e2582f6
fixes #35098 - use a multi line approach to display share autocomplete
DeepDiver1975 e126438
Adjust webUI acceptance tests for multi-line approach to display shar…
phil-davis 394e466
Set up remote server share with permissions using API
phil-davis 0f102ed
Refactor theUserSharesFileFolderWithUserOrGroupUsingTheWebUI
phil-davis 83f2d17
Adjust ShouldBeListed steps
phil-davis ed4b8a9
Adjust theUsersOwnNameShouldNotBeListedInTheAutocompleteList
phil-davis b2a2cb4
Do not specially handle case when shareWith is null in itShouldNotBeP…
phil-davis 4644552
add js test for remote share with server
karakayasemi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -612,6 +612,14 @@ describe('OC.Share.ShareDialogView', function() { | |
'shareType': OC.Share.SHARE_TYPE_REMOTE, | ||
'shareWith': '[email protected]/baz' | ||
} | ||
}, | ||
{ | ||
'label': '[email protected]', | ||
'value': { | ||
'shareType': OC.Share.SHARE_TYPE_REMOTE, | ||
'shareWith': '[email protected]', | ||
'server': 'knowncloud.com' | ||
} | ||
} | ||
] | ||
} | ||
|
@@ -625,6 +633,13 @@ describe('OC.Share.ShareDialogView', function() { | |
expect(response.getCall(0).args[0]).toEqual([{ | ||
'label': '[email protected]/baz', | ||
'value': {'shareType': OC.Share.SHARE_TYPE_REMOTE, 'shareWith': '[email protected]/baz'} | ||
},{ | ||
'label': '[email protected]', | ||
'value': { | ||
'shareType': OC.Share.SHARE_TYPE_REMOTE, | ||
'shareWith': '[email protected]', | ||
'server': 'knowncloud.com' | ||
} | ||
}]); | ||
expect(autocompleteStub.calledWith("option", "autoFocus", true)).toEqual(true); | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This is specially useful for setting up a share on the remote (federated) server, and giving it some permissions.
We want to use the API to set up stuff on the remote server, rather than the webUI, because we do not want to depend on particular details of the webUI on the remote server. (The remote server might be running some older release/code that has a bit different webUI behaviour, but it should have compatible API behaviour within the same major version)
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.
In the case of this particular PR, the webUI dropdown sharing list has changed its format/text a bit, and so trying to run the new webUI sharing acceptance test code against a remote server without the PR would fail.