summaryrefslogtreecommitdiffstats
path: root/api4
Commit message (Collapse)AuthorAgeFilesLines
* AllowEditPost and PostEditTimeLimit migration (#8208)Jesús Espino2018-02-091-7/+0
| | | | | | | | * AllowEditPost and PostEditTimeLimit migration * Not set EDIT_POST permission to sysadmin_role if ALLOW_EDIT_POST is configured to NEVER * Remove a bit of code duplication
* XYZ-76: Add license check to patchRoles endpoint. (#8224)George Goldberg2018-02-082-3/+60
|
* Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-1Jesús Espino2018-02-073-6/+9
|\
| * Remove fmt.Println trace on api4 tests (#8212)Jesús Espino2018-02-071-2/+1
| |
| * Abort on critical error during server startup (#8204)Pierre de La Morinerie2018-02-071-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only a handful of critical errors are present in the codebase. They all occur during server startup (in `app.StartServer()`). Currently, when one of these critical error occurs, it is simpled mentionned in the logs – then the error is discarded, and the app attempts to continue the execution (and probably fails pretty quickly in a weird way). Rather than continuing operations in an unknow state, these errors should trigger a clean exit. This commit rewrites critical startup errors to be correctly propagated, logged, and then terminate the command execution. Additionnaly, it makes the server return a proper error code to the shell.
| * add App.License, remove utils.IsLicensed / utils.License calls (#8203)Chris2018-02-062-3/+3
| |
* | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-02-062-32/+35
|\|
| * User based rate limiting (#8152)Christopher Speller2018-01-311-32/+13
| |
| * ABC-79: Optimize channel autocomplete query (#8163)Chris2018-01-311-0/+22
| | | | | | | | | | | | * optimize channel autocomplete query * move to new autocomplete endpoint
* | XYZ-37: Advanced Permissions Phase 1 Backend. (#8159)George Goldberg2018-02-0612-574/+618
|/ | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Add GET /emojis/name/{emoji_name} API endpoint (#8142)Joram Wilander2018-01-243-2/+47
|
* ABC-90 Add POST /emoji/search and GET /emoji/autocomplete API endpoints (#8125)Joram Wilander2018-01-233-1/+179
| | | | | | * Add POST /emoji/search and GET /emoji/autocomplete API endpoints * Add constant to be clearer
* PLT-3383: image proxy support (#7991)Chris2018-01-222-12/+12
| | | | | | | | | | | | * image proxy support * go vet fix, remove mistakenly added coverage file * fix test compile error * add validation to config settings and documentation to model functions * add message_source field to post
* Add sort query parameter to GET /emojis (#8121)Joram Wilander2018-01-192-1/+14
|
* Finally remove utils.Cfg (#8113)Chris2018-01-174-81/+90
| | | | | | | | * finally remove utils.Cfg * fix compile error * another test compilation fix
* [PLT-8430] Auto lowercase team and channel names in API requests (#7992)Carlos Tadeu Panato Junior2018-01-123-2/+10
|
* redirect error uri when OAuth SSO is setup but account creation is disabled ↵Saturnino Abril2018-01-111-1/+1
| | | | (#8086)
* [PLT-7793] Add /users/tokens/search endpoint (#8088)Adrian Carolli2018-01-112-0/+71
| | | | | | | | * Add /users/tokens/search endpoint + tests * Fix check-style * Unnecessary deletion
* Remove global config watcher (#8080)Chris2018-01-111-2/+7
| | | | | | | | | | * remove global config watcher * keep config watcher disabled for tests * compile fix * fix resource leak
* [XYZ-6] Add sampledata platform command (#8027)Jesús Espino2018-01-112-2/+2
| | | | | | | | * Add fake dependency * [XYZ-6] Add sampledata platform command * Creating EMOJI_NAME_MAX_LENGTH as a constant and using it where needed
* [PLT-6936] Translate AppError.Message automatically by default (#8063)Jesús Espino2018-01-082-2/+1
|
* Remove utils.ClientCfg and utils.ClientCfgHash (#8041)Chris2018-01-053-3/+3
| | | | | | * remove utils.ClientCfg and utils.ClientCfgHash * remove unused import
* [PLT-7793] Added /users/tokens endpoint (#8038)Adrian Carolli2018-01-052-1/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added /users/tokens/all endpoint - UserAccessStore now has getAll method - Added tests - Added route - Added handler * Remove space fix check-style * Remove blank space check-style * Fixes for make check-style * Remove extra code that is un-needed in user_test.go * Rename endpoint + grammar - Renamed /users/tokens/all to /users/tokens - Renamed getUserAccessTokens to getUserAccessTokensForUser - Renamed getAllUserAccessTokens to getUserAccessTokens - Minor Grammar changes * Add localization for sql_user_access_token.get_all * Fix minor plural spelling
* Add admin update endpoint that can update authservice and authdata (#7842)Chris Duarte2018-01-042-0/+90
| | | | | | | | | | * add admin update endpoint that can upate authservice and authdata * Control only SystemAdmin access * Refactored AdminUpdate endpoint to only be able to update AuthData, AuthService and Password by User.Id * Refactor to move `PUT /api/v4/users/{user_id}/auth`. Created a struct to hold UserAuth info.
* [PLT-8173] Strip the post_ prefix on incoming webhook overrides. (#8019)Jesse Hallam2018-01-031-8/+8
|
* [PLT-8173] Add username and profile picture to webhook set up pages (#8002)Jesse Hallam2018-01-021-0/+61
|
* Allow for custom subject in TestInviteUsersToTeam (#7999)Chris Duarte2018-01-021-1/+5
|
* Reduce logging data races, fix MySQL test race condition (#7994)Chris2017-12-2227-93/+4
| | | | | | | | * fix races * revert unintentional change * fix test as intended
* Merge branch 'release-4.5'Christopher Speller2017-12-181-1/+1
|\
| * fix PUT webhook permissions (#7970)Chris2017-12-121-1/+1
| |
* | fix reaction test (#7978)Chris2017-12-141-10/+5
| |
* | PLT-6896 per-paging for logs (#7903)Yusuke Nemoto2017-12-133-12/+23
| | | | | | | | | | | | | | | | | | | | * PLT-6896 Read logs from last * Getting rid of file.Stats * remove deprecated value * Make non-reassigned value constant
* | Add plugin slash command support (#7941)Chris2017-12-081-1/+1
| | | | | | | | | | | | | | | | * add plugin slash command support * remove unused string * rebase
* | Allow deactivation of SSO users (#7952)Joram Wilander2017-12-082-3/+20
|/
* Fix oauth app update (#7913)Joram Wilander2017-12-012-1/+8
|
* PLT-8018: Bundled jira plugin (#7920)Chris2017-11-301-1/+1
| | | | | | | | | | | | * bundled jira plugin * fix generated file formatting, add prepackaged key * whoops, uploaded wrong file * whitelist generated files for license check * make it work for people without go/bin in their path
* Add Config to disable Auth Transfers. (#7843)Chris Duarte2017-11-281-0/+51
| | | | | | * Add Config to disable Auth Transfers. * Set config ExperimentalEnableAuthenticationTransfer behind an E20 license restriction
* PLT-8058: Logging api.context.invalid_session.error app errors to log level ↵Martin Kraft2017-11-231-2/+13
| | | | 'info'. (#7893)
* origin checker refactor (#7889)Chris2017-11-221-3/+1
|
* HTTP client refactor (#7884)Chris2017-11-221-2/+1
| | | | | | * http client refactor * simplification
* Role refactor (#7867)Chris2017-11-218-137/+114
| | | | | | | | * role refactor * add missing file * fix web test
* [PLT-840] Add option to outgoing webhooks to reply to the posted message as ↵Carlos Tadeu Panato Junior2017-11-201-12/+53
| | | | a comment (#7807)
* refactor template code (#7860)Chris2017-11-201-2/+0
|
* PLT-6217 Fixes system message posted to Town Square when a member leaves a ↵Tsilavina Razafinirina2017-11-202-3/+3
| | | | | | | | | | | | | | | | | | 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)
* Reorganize file util functionality (#7848)Chris2017-11-162-6/+5
| | | | | | | | * reorganize file util functionality * fix api test compilation * fix rebase issue
* more global config ref cleanup (#7802)Chris2017-11-095-34/+29
|
* several one-line panic, race, and logic fixes (#7766)Chris2017-11-033-5/+9
|
* prevent deactivation of sso users (#7759)Chris2017-11-022-3/+3
|
* [PLT-7362] Add post' root ID to APIv4 addChannelMember to render added user ↵Saturnino Abril2017-10-312-8/+41
| | | | | | | | | | (as system post) at RHS (#7730) * add post' root ID to apiv4 addChannelMember to render added user (as system post) at RHS * add check to post_root_id parameter * add AddChannelMemberWithRootId function for backward compatibility
* PLT-7978 Add websocket event for user role update (#7745)Joram Wilander2017-10-314-15/+15
| | | | | | | | * Add websocket event for user role update * Fix tests * More test fixes