-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Regression: team sync not accepting multiple teams #21768
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
Regression: team sync not accepting multiple teams #21768
Conversation
|
|
||
| const items = ldapUserGroups.filter((field) => field && field.ou).map((field) => (typeof field.ou === 'string' ? field.ou.split(',') : field.ou)); | ||
| const groups = []; | ||
| for (const item of items) { |
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 for is doing exactly what the reduce below is doing right? just flattening an array.. maybe you could use reduce in both places?
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.
oh, just realized you used in other places too.. maybe could be even better creating a reducer to use on all those places =)
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 think the Node version we use supports the [].flat function 👀 isn't it?
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.
wut?! I didn't know that 🤔 [].flat is better indeed.. thx @KevLehman 🤗
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.
[].flat is like the flattenDeep method of lodash, It's pretty useful 🎉
* rocketchat/master: (273 commits) Bump version to 3.14.0 Bump version to 3.14.0-rc.4 bump fuselage (RocketChat#21841) [FIX] Duplicated header on admin's user contextualbar (RocketChat#21810) Bump version to 3.14.0-rc.3 Bump Apps-Engine version (RocketChat#21840) [FIX][Enterprise] Omnichannel simultaneous chat limit is not properly checking the limit by department (RocketChat#21839) Fix node_modules cache path again Regression: Reactivate direct conversations only if all involved users are active (RocketChat#21714) Bump version to 3.14.0-rc.2 [FIX] Omnichannel Activity Monitor closing chats returned to the queue (RocketChat#21782) Fix node_modules cache path Regression: Problem with Importer's logs (RocketChat#21812) Chore: Add tests for teams.update REST endpoint (RocketChat#21653) QoL improvements to add channel to team flow (RocketChat#21778) Chore: Cache EE node_modules on CI (RocketChat#21831) Regression: team sync not accepting multiple teams (RocketChat#21768) regression: Italic being parsed with surrounding non-whitespace text (RocketChat#21815) Regression: Unread Threads Header and List (RocketChat#21816) Fix attachment previews. (RocketChat#21746) ...
Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments