summaryrefslogtreecommitdiffstats
path: root/app/team.go
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'plugins-2'JoramWilander2018-07-101-8/+37
|\
| * First batch of new plugin api methods (#9022)Daniel Schalla2018-07-061-8/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | update api mocks Generated new hooks ChannelHasJoinedChannel Implementation User Left Team/Channel Hook; User Joined Team Hook Implementation Update RPC Client and Mocks gofmt go tests fix Add Config API Methods codegne Add Channel Has Been Created Hook Fix ChannelHasBeenCreated hook fix missing context param fix duplicate hooks; remove redudandcy
* | MM-11120 Adding setting to disable email invitations and rate limiting. (#9063)Christopher Speller2018-07-101-1/+5
|/ | | | | | | | | | * Adding setting to disable email invitations. * Adding a setting and rate limiting for email invite sending. * Modifying email rate limit to 20/user/hour * Adding EnableEmailInvitations to client side config and command.
* MM-10233: Add scheme importing to bulk importer. (#8928)George Goldberg2018-06-211-2/+11
|
* MM-9730 & MM-9729: Missing Server PRs (#8908)George Goldberg2018-06-051-0/+27
| | | | | | * MM-9730: API endpoint to update scheme-derived roles of TeamMembers. * MM-9729: API to update scheme-derived roles of ChannelMembers.
* Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-111-1/+1
|\
| * MM-10188: expect io.Reader in FileBackend.WriteFile (#8765)Jesse Hallam2018-05-101-1/+1
| | | | | | | | This is a reworked set of changes originally from @josephGuo to begin reducing the duplicated memory required when uploading files.
* | MM-10182 & MM-10183: Adds channel scheme and team scheme API endpoint. (#8680)Martin Kraft2018-05-021-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | * MM-10183: Adds channel scheme API endpoint. MM-10182: Adds team scheme API endpoint. MM-10182_3: Switch from scheme_id in path to body. * MM-10182/MM-10183: Changes path from 'schemes' to 'scheme'. * MM-10182: Fix merge error.
* | Merge branch 'advanced-permissions-phase-2' of ↵Martin Kraft2018-05-011-2/+2
|\ \ | | | | | | | | | github.com:mattermost/mattermost-server into advanced-permissions-phase-2
| * \ Merge branch 'master' into advanced-permissions-phase-2Christopher Speller2018-04-271-5/+5
| |\ \
* | \ \ Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-011-7/+25
|\ \ \ \ | |/ / / |/| | / | | |/ | |/|
| * | [MM-10354] Add feature to remove team icon (#8684)Saturnino Abril2018-04-301-1/+19
| |/ | | | | | | | | | | | | | | * set team.LastTeamIconUpdate to 0 when removing team icon * add APIv4 for removing team icon * removed comment and updated typo on AppError
| * Structured logging (#8673)Christopher Speller2018-04-271-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implementing structured logging * Changes to en.json to allow refactor to run. * Fixing global logger * Structured logger initalization. * Add caller. * Do some log redirection. * Auto refactor * Cleaning up l4g reference and removing dependancy. * Removing junk. * Copyright headers. * Fixing tests * Revert "Changes to en.json to allow refactor to run." This reverts commit fd8249e99bcad0231e6ea65cd77c32aae9a54026. * Fixing some auto refactor strangeness and typo. * Making keys more human readable.
* | MM-8796: Full implementation of "Schemes" in Store/Model/App layers. (#8357)George Goldberg2018-04-201-19/+57
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Scheme model and stub store. * Port ChannelStore to be Scheme aware. * Make almost all the API/APP layer work with ChannelSchemes. Only thing still hacky is UpdateChannelMemberRoles(). * Add basic SchemeStore implementation. * Migrate UpdateChannelMemberRoles properly and fix tests. * Update store tests and mocks so they work. * Include creating default roles in Scheme create store function. * Implement role deletion and start scheme deletion. * Only use non-deleted roles for authorization. * Add GetByScheme method to Team store. * Add GetChannelsByScheme. * Update store mocks. * Implement scheme deletion in the store. * Rename is valid function. * Add offset and limit to queries to fetch teams and channels by scheme. * Fix queries. * Implement scheme awareness in Team store and add a migration. * Tidy up ChannelStore mapping functions and add exhaustive unit tests. * Add all missing i18n. * Proper tests for TeamStore internal functions and fix them. * Make additional TeamMember fields nullable. * Make new ChannelMember fields nullable. * Create new nullable columns without defaults. * Make new fields in large tables nullalble. * Fix empty list of TeamMembers. * Deduplicate SQL queries. * Fix spelling. * Fix review comment. * More review fixes. * More review fixes.
* MM-9779: Incorporate a Token into the invitations system (#8604)Jesús Espino2018-04-181-19/+33
| | | | | | | | | | | | | | | | | | | | * Incorporate a Token into the invitations system * Adding unit tests * Fixing some api4 client tests * Removing unnecesary hash validation * Change the Hash concept on invitations with tokenId * Not send invitation if it wasn't able to create the Token * Fixing some naming problems * Changing the hash query params received from the client side * Removed unneded data param in the token usage
* MM-9999 Fix unwanted team invite_id in email invites. (#8550)Christopher Speller2018-03-291-5/+0
| | | | | | * Fix unwanted team invite_id in email invites. * Removing unused translation.
* Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-03-131-7/+2
|\
| * remove `go Publish(...)` idiom (#8373)Chris2018-03-021-7/+2
| |
* | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-03-021-4/+100
|\|
| * PLT-7567: Integration of Team Icons (#8284)Christian Hoff2018-03-011-0/+90
| | | | | | | | | | | | | | | | | | | | * PLT-7567: Integration of Team Icons * PLT-7567: Read replica workaround, upgrade logic moved, more concrete i18n key * PLT-7567: Read replica workaround, corrections * PLT-7567: upgrade correction
| * Remove global site url (#8343)Chris2018-02-221-1/+1
| | | | | | | | | | | | | | | | * remove global site url * missed one * revert mysterious change
| * XYZ-111: Check max users per team on re-join after leave a teamJesús Espino2018-02-131-3/+9
| |
* | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-02-131-0/+5
|\|
| * Added invite_id field to email invite url, along with validation of this ↵Jonathan2018-02-121-0/+5
| | | | | | | | field on the server (#8235)
* | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-02-061-5/+9
|\|
| * [PLT-8494] Add delete_team websocket event (#8167)Saturnino Abril2018-02-011-4/+8
| | | | | | | | | | | | * add delete_team websocket event * add to PermanentDeleteTeam
| * Used a consistent tense for system messages (#8079)Harrison Healey2018-01-261-1/+1
| |
* | XYZ-37: Advanced Permissions Phase 1 Backend. (#8159)George Goldberg2018-02-061-0/+4
|/ | | | | | | | | | | | | | | | | | | | | | | | | | * XYZ-13: Update Permission and Role structs to new design. * XYZ-10: Role store. * XYZ-9/XYZ-44: Roles API endpoints and WebSocket message. * XYZ-8: Switch server permissions checks to store backed roles. * XYZ-58: Proper validation of roles where required. * XYZ-11/XYZ-55: Migration to store backed roles from policy config. * XYZ-37: Update unit tests to work with database roles. * XYZ-56: Remove the "guest" role. * Changes to SetDefaultRolesFromConfig. * Short-circuit the store if nothing has changed. * Address first round of review comments. * Address second round of review comments.
* Merge branch 'release-4.6'Harrison Healey2018-01-231-1/+19
|\
| * PLT-8522 Added separate messages for being removed from channel or team (#8078)Harrison Healey2018-01-101-1/+19
| |
* | Handle missed case with ExperimentalEnableDefaultChannelLeaveJoinMessages ↵Joram Wilander2018-01-181-7/+9
|/ | | | setting (#8112)
* Role refactor (#7867)Chris2017-11-211-8/+8
| | | | | | | | * role refactor * add missing file * fix web test
* PLT-6217 Fixes system message posted to Town Square when a member leaves a ↵Tsilavina Razafinirina2017-11-201-3/+38
| | | | | | | | | | | | | | | | | | team (#7752) * Fixes system message posted to Town Square when adding/removing team member (#6483) Fixes unit test method call to match RemoveUserFromTeam modification (#6483) Fixes system message posted to Town Square when adding/removing team member (#6483) Removes unnessary error message * Updates system message when a user leaves a team (#6483) * Changes system message when a user is removed from team (#6483) * Adds a new string to be post to town-square when a member is added to a team (#6483)
* more global config ref cleanup (#7802)Chris2017-11-091-7/+7
|
* eliminate more utils.Cfg references (#7701)Chris2017-10-241-1/+1
|
* refactor max users per team (#7691)Chris2017-10-201-1/+1
|
* Reduce utils.Cfg references (#7650)Chris2017-10-181-3/+3
| | | | | | | | | | | | * app.UpdateConfig method * test fix * another test fix * the config override option as-was is just error prone, remove it for now * derp
* PLT-7811 Standardized team sanitization flow (#7586)Harrison Healey2017-10-091-5/+21
| | | | | | | | | | | | | | | | | | * post-4.3 commit (#7581) * reduce store boiler plate (#7585) * fix GetPostsByIds error (#7591) * PLT-7811 Standardized team sanitization flow * Fixed TestGetAllTeamListings * Stopped sanitizing teams for team admins * Removed debug logging * Added TearDown to sanitization tests that needed it
* PLT-7789: Fix raciness on Aurora with importing team members. (#7573)George Goldberg2017-10-041-8/+14
| | | | | | * PLT-7789: Fix raciness on Aurora with importing team members. * Fix and document return values.
* Goroutine wranglin (#7556)Chris2017-10-031-2/+6
| | | | | | * goroutine wranglin * synchronize WebConn.WritePump
* remove remaining Global() calls (outside of tests) (#7521)Chris2017-09-281-11/+11
|
* remove einterface gets (#7455)Chris2017-09-191-3/+3
|
* Renaming repoChristopher Speller2017-09-061-2/+2
|
* app type transition (#7167)Chris2017-09-061-120/+120
|
* App: NewLocAppError -> NewAppError (#7327)George Goldberg2017-09-011-6/+4
| | | | | | * App: NewLocAppError -> NewAppError * Remove statuscode that got missed.
* PLT-7288: Allow CLI to delete teams with no channels. (#7135)George Goldberg2017-08-091-1/+3
|
* make cli team / channel delete operations also delete webhooks and slash ↵Chris2017-07-311-1/+5
| | | | commands (#7028)
* Added websocket event and webapp handler for updating user roles (#6953)Nick Frazier2017-07-271-0/+9
|
* [PLT-5864] Move teammate name display setting to the System Console (#6681)Saturnino Abril2017-06-301-1/+2
| | | | | | | | | | * move teammate name display setting to the system console * update all the likes of TeammateNameDisplay names * fix gofmt error * rebase and fix conflict
* [PLT-5639] Show a message when invited addresses are blocked (#6691)Pieter Lexis2017-06-291-7/+26
| | | | | | | | | | | | | | | | * Show a message when invited addresses are blocked When using the "Send Email Invite" functionality. Emails were sent to domains that were not on the `RestrictCreationToDomains` list. This would lead to users getting a message that they can't create an account if they follow the link in the email. This commit will check the email addresses before the mails are sent and warn the user typing them in which ones are blocked. * Add unit test for domain restrictions on invite * Invite Member: Clear serverError on toggle