Uh oh!
There was an error while loading. Please reload this page.
feat(users): Store and load a user's manager - #38013
Conversation
kesselb
commented
May 2, 2023
Nice to have: remove the uid when the manager is deleted. A listener for user deleted is already there: https://github.com/nextcloud/server/blob/master/apps/provisioning_api/lib/Listener/UserDeletedListener.php |
| * | ||
| * @return string[] | ||
| */ | ||
| public function getManagerUids(): array; |
There was a problem hiding this comment.
thought: Those are very specific new methods in IUser, just for metadata elements. Maybe make it more generic so that it can absorb every kind of contact information we could give it?
There was a problem hiding this comment.
I thought so too but that's tricky with types. Some properties are string, some are nullable string, this is a string array.
hamza221
commented
May 3, 2023
ChristophWurst
commented
May 4, 2023
Is that done @hamza221 or do we miss anything? |
hamza221
commented
May 4, 2023
Done |
Mapping is done too. |
ChristophWurst
commented
May 4, 2023
/compile / |
| :show-config="showConfig" | ||
| :sub-admins-groups="subAdminsGroups" | ||
| :user="user" | ||
| :users="users" |
There was a problem hiding this comment.
- BUG this only looks at the local users. If you go to a group you can only assign a manger from the same group. If you have thousands of users and only the first x are visible you can only pick from those x.
The multiselect has to search users on the backend
There was a problem hiding this comment.
@hamza221 could you address this please? You will have to use the components async search callback feature and fetch users from the server
There was a problem hiding this comment.
Seems addressed. Users are looked up on the server now 👍
Turns out uid!=displayname for my test user. searching by display name works 👍 |
Uh oh!
There was an error while loading. Please reload this page.
960893d to
9ebbe1fCompareChristophWurst
commented
May 10, 2023
Files sharing acceptance test fails. Most likely unrelated? |
9ebbe1f to
3a1bb8bCompare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Took a random other PR and it's the same tests that fail: #38188https://drone.nextcloud.com/nextcloud/server/33791/36/3 😌 The tests are broken in general. Everything is fine. |
ChristophWurst
commented
May 11, 2023
3a1bb8b to
549be4cCompareChristophWurst
commented
May 11, 2023
Rebased because I can't restart Drone |
ChristophWurst
commented
May 11, 2023
acceptance-app-files-sharing fails reliably |
danxuliu
commented
May 12, 2023
When locally running the acceptance tests the Nextcloud logs show ( The Notifications app is installed when setting up the acceptance tests environment, but if present the existing app will be used without downloading it again. The failing acceptance tests pass after adding the following to an existing apps/notifications/lib/FakeUser.php: |
ChristophWurst
commented
May 12, 2023
You are the best, honestly. |
ChristophWurst
commented
May 12, 2023
Alright. I'm giving this PR a final rebase. nextcloud/notifications#1544 is pending. If it gets merged soon the tests will pass here. |
1c19b59 to
f502666Compareblizzz
commented
May 12, 2023
seems some rebuilds are needed. fyi, there'll be a nc/vue bump following as well. |
ChristophWurst
commented
May 12, 2023
OK can you tell me if I should rebase already or wait for the vue bump merge @blizzz? Cheers |
blizzz
commented
May 12, 2023
| <div v-if="showConfig.showUserBackend" class="userBackend" /> | ||
| <div v-if="showConfig.showLastLogin" class="lastLogin" /> | ||
| <div :class="{'icon-loading-small': loading.manager}" class="modal__item managers"> | ||
| <NcMultiselect ref="manager" |
There was a problem hiding this comment.
NcMultiselect is actually deprecated because it is not accessible, but I see it's used in this flie all over, so okay for now.
ChristophWurst
commented
May 12, 2023
showtime |
there are not just bundle conflicts. we have to adjust the front-end after #37870 |
f502666 to
e89971dCompareChristophWurst
commented
May 12, 2023
the table looks bad but that's coming from #37870 (comment) the feature works |
Co-Authored-By: hamza221 <hamzamahjoubi221@gmail.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
e89971d to
1381c4cCompareChristophWurst
commented
May 12, 2023
Psalm failure is unrelated |




Summary
Allow (sub) admins to set a user's manager.
TODO
Screenshot
Checklist