-
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
Fix the group selector drop down #33442
Conversation
Current state of the PR:
|
* @param int $sortGroups | ||
* @return DataResponse | ||
*/ | ||
public function index($pattern = '', $filterGroups = false, $sortGroups = MetaData::SORT_USERCOUNT) { |
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.
you need all parameters here?
lib/private/MetaData.php
Outdated
|
||
use OCP\IUserSession; | ||
|
||
class MetaData { |
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.
As explained I don't want to see this class in code
f3d289f
to
8c5ae6d
Compare
Current state of the PR:
|
8c5ae6d
to
6c7db8d
Compare
Codecov Report
@@ Coverage Diff @@
## master #33442 +/- ##
============================================
+ Coverage 64.22% 64.23% +0.01%
- Complexity 18269 18278 +9
============================================
Files 1193 1194 +1
Lines 69076 69116 +40
Branches 1277 1277
============================================
+ Hits 44363 44397 +34
- Misses 24341 24347 +6
Partials 372 372
Continue to review full report at Codecov.
|
6c7db8d
to
a874d2d
Compare
@DeepDiver1975 kindly review my change. The updated PR includes:
|
@sharidas mind adding a summary at the top to explain why this PR fixes the issue ? I see a lot of controller stuff being shuffled around but it's not clear why this helps fixing the issue. |
I have updated the |
@sharidas is this a brand new controller written from scratch or does it reuse some of the code that was moved to the user_management app ? |
@PVince81 Yes this is a new controller. It is inspired or lets say influenced from user_management's https://github.com/owncloud/user_management/blob/master/lib/Controller/GroupsController.php. Here is the comment, which helped to create this PR owncloud-archive/user_management#96 (comment). Also I have tried to avoid code duplication while writing this controller. Hope this address your query. |
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.
See comment.
Looks ok otherwise.
a874d2d
to
efb54cb
Compare
Current state of the PR
Hence kindly request for review @PVince81 |
efb54cb
to
d42fa7e
Compare
@PVince81 I have updated the new version with the unit tests updated. I missed updating the test, in my previous version :( |
b34a17a
to
e811ad4
Compare
42379f9
to
bd9aa79
Compare
Fix the group selector drop down Signed-off-by: Sujith H <[email protected]>
bd9aa79
to
229f014
Compare
@sharidas can you click "resolve conversation" on the review items that you solved ? |
I have clicked "resolve conversation" on the review items, that were solved with respect to the current state of the PR. |
Note: This PR would need to be backported to |
This change gets the group selector drop
down
Signed-off-by: Sujith H [email protected]
Description
Fix the group selector in the core. After moving the code to user_management app, the ajax request to get the groups available for the user did not worked. The reason for this is there is no controller in the core to address the request. This PR fixes the issue.
Related Issue
Motivation and Context
Fix the group selector in the core. After moving the code to user_management app the ajax request to get the groups available for user did not worked in the master branch of core. There was no route and controller to address the request. This PR tries to fix the issue by adding a new route and controller to core which accepts the request and provides the response back.
How Has This Been Tested?
group1
,group2
admin
,group1
andgroup2
listed.Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: