Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

[WIP] Move MetaData and Group selector to core #96

Closed
wants to merge 1 commit into from

Conversation

sharidas
Copy link
Contributor

@sharidas sharidas commented Nov 6, 2018

Move the MetData file and Group selector
code to core.

Signed-off-by: Sujith H [email protected]

Move the MetData file and Group selector
code to core.

Signed-off-by: Sujith H <[email protected]>
@sharidas sharidas self-assigned this Nov 6, 2018
@sharidas sharidas added this to the development milestone Nov 6, 2018
@sharidas
Copy link
Contributor Author

sharidas commented Nov 6, 2018

Current state of the PR

  • Removed MetaData.php to core.
  • Moved the index method from GroupsController to core.
  • Update the unit tests accordingly

@DeepDiver1975
Copy link
Contributor

Move the MetData file and Group selector
code to core.

really? this class is 💩 - whatfor you need this in core? I prefer to have a different solution

@@ -25,7 +25,7 @@
namespace OCA\UserManagement\Controller;

use OC\AppFramework\Http;
use OCA\UserManagement\MetaData;
use OC\MetaData;
Copy link
Contributor

Choose a reason for hiding this comment

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

You are not allowed to use private classes in apps ...

* @param int $sortGroups
* @return DataResponse
*/
public function index($pattern = '', $filterGroups = false, $sortGroups = MetaData::SORT_USERCOUNT) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this is part of the rest full api - I don't get the need of this ....

@PVince81
Copy link
Contributor

PVince81 commented Nov 6, 2018

@sharidas please post context... why is this PR needed ? etc

@sharidas
Copy link
Contributor Author

sharidas commented Nov 6, 2018

@DeepDiver1975 Sure I will come up with an alternative solution.
This PR along with the owncloud/core#33442 was to solve owncloud/core#31739. It was a rough idea, that came to my mind. I will think of an alternative one.

@DeepDiver1975
Copy link
Contributor

alternative solution.

keep user mgmt untouched and add a new controller in core

@DeepDiver1975 DeepDiver1975 deleted the move-metadata-groupselector-tocore branch November 6, 2018 15:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants