summaryrefslogtreecommitdiffstats
path: root/api4/context.go
Commit message (Collapse)AuthorAgeFilesLines
* Refactor context out of API packages (#8755)Joram Wilander2018-05-141-663/+0
| | | | | | | | | | | | * Refactor context out of API packages * Update function names per feedback * Move webhook handlers to web and fix web tests * Move more webhook tests out of api package * Fix static handler
* Structured logging (#8673)Christopher Speller2018-04-271-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Fixing DB load causing user logout. (#8559)Christopher Speller2018-04-021-2/+4
|
* Fixing misspell errors (#8544)Jesús Espino2018-03-291-1/+1
|
* Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-03-021-2/+16
|\
| * Merge remote-tracking branch 'origin/release-4.7' into merge47intomasterDerrick Anderson2018-02-231-2/+4
| |\
| | * Change log level of 404s to DEBUG (#8339)Joram Wilander2018-02-211-2/+4
| | |
| * | MM-9556 Added ability to upload files without a multipart request (#8306)Harrison Healey2018-02-201-0/+12
| |/ | | | | | | | | | | * MM-9556 Added ability to upload files without a multipart request * MM-9556 Handled some unusual test behaviour
* | Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-1Jesús Espino2018-02-071-2/+2
|\|
| * add App.License, remove utils.IsLicensed / utils.License calls (#8203)Chris2018-02-061-2/+2
| |
* | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-02-061-32/+13
|\|
| * User based rate limiting (#8152)Christopher Speller2018-01-311-32/+13
| |
* | XYZ-37: Advanced Permissions Phase 1 Backend. (#8159)George Goldberg2018-02-061-0/+23
|/ | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* [XYZ-6] Add sampledata platform command (#8027)Jesús Espino2018-01-111-1/+1
| | | | | | | | * Add fake dependency * [XYZ-6] Add sampledata platform command * Creating EMOJI_NAME_MAX_LENGTH as a constant and using it where needed
* Remove utils.ClientCfg and utils.ClientCfgHash (#8041)Chris2018-01-051-1/+1
| | | | | | * remove utils.ClientCfg and utils.ClientCfgHash * remove unused import
* PLT-8058: Logging api.context.invalid_session.error app errors to log level ↵Martin Kraft2017-11-231-2/+13
| | | | 'info'. (#7893)
* Performance improvements for 40M posts (#7708)Christopher Speller2017-10-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | * Optimizing get root posts SQL query * Setting session invalidation to be reliable * Adding app reciever to SessionHasPermissionToUser * Adding app reciever to SessionHasPermissionToTeam * Adding app reciever to SessionHasPermissionTo * Clear session cache if permission was denied * Fixing rebase issues * Revert "Optimizing get root posts SQL query" This reverts commit f364757e7015cfb4ec673d0a4fc3d57cd25d8dd7. * Fixing build
* 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
* Only update session activity on specific endpoints (#7549)Joram Wilander2017-10-031-1/+0
|
* PLT-7633 (E20) Add session idle timeout config setting (#7524)Joram Wilander2017-09-281-0/+1
| | | | | | | | | | * Add session idle timeout config setting * Modify config setting name to SessionIdleTimeoutInMinutes * Small re-org of if statement * Merge with latest master
* remove global refs from api/api4 (#7496)Chris2017-09-221-10/+36
|
* remove einterface gets (#7455)Chris2017-09-191-6/+5
|
* Renaming repoChristopher Speller2017-09-061-4/+4
|
* app type transition (#7167)Chris2017-09-061-4/+6
|
* Implement experimental REST API endpoints for plugins (#7279)Joram Wilander2017-09-011-0/+12
| | | | | | | | | | | | | | | | | | * Implement experimental REST API endpoints for plugins * Updates per feedback and rebase * Update tests * Further updates * Update extraction of plugins * Use OS temp dir for plugins instead of search path * Fail extraction on paths that attempt to traverse upward * Update pluginenv ActivePlugins()
* APIv4: NewLocAppError -> NewAppError (#7328)George Goldberg2017-08-311-13/+7
|
* PLT-6403: Interactive messages (#7274)Chris2017-08-291-0/+11
| | | | | | | | | | * wip * finish first pass * requested changes * add DoPostAction to Client4
* PLT-6226 Fixing races with licensing (#7213)Corey Hulen2017-08-161-2/+2
| | | | | | | | | | * PLT-6226 Fixing races with licensing * Fixing build issue * Fixing licensing issue * removing commented code
* PLT-6763 Implement user access tokens and new roles (server-side) (#6972)Joram Wilander2017-07-311-0/+16
| | | | | | | | | | | | | | | | * Implement user access tokens and new roles * Update config.json * Add public post permission to apiv3 * Remove old comment * Fix model unit test * Updates to store per feedback * Updates per feedback from CS
* PLT-6983 Allowed team invite IDs of arbitrary lengths to match API v3 (#6944)Harrison Healey2017-07-151-1/+1
|
* Fixing mean request time (#6760)Corey Hulen2017-06-261-1/+1
|
* Add GET /teams/invite/{invite_id} endpoint for v4 (#6685)Joram Wilander2017-06-201-0/+11
|
* PLT-6080 moving clustering to memberlist (#6499)Corey Hulen2017-06-191-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PLT-6080 adding cluster discovery service * Adding memberlist lib * Adding memberlist lib * WIP * WIP * WIP * WIP * Rolling back config changes * Fixing make file * Fixing config for cluster * WIP * Fixing system console for clustering * Fixing default config * Fixing config * Fixing system console for clustering * Tweaking hub setting * Bumping up time * merging vendor dir * Updating vendor dir * Fixing unit test * Fixing bad merge * Remove some testing code * Moving comment * PLT-6868 adding db ping retry * Removing unused loc strings * Adding defer to cancel
* PLT-6408 Framework for job server (#6404)Harrison Healey2017-05-181-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added initial job server * Added job server to be ran as part of platform * Added test job to the enterprise repo * Fixed job server not loading license * Renamed job package to jobs * Fixed TE not being buildable * Added JobStatus table to database * Changed fields used by JobStatus * Added APIs to query job status * Added config change listener to server * Added option to run job server from Makefile * Added ability to enable/disable jobs from config * Commented out placeholder for search indexing job * Fixed govet * Removed debug messages and fixed job api init message
* Fix MFA enforcement on login and page load (#6356)Joram Wilander2017-05-091-2/+6
|
* PLT-6322 log error messages in english (#6234)Corey Hulen2017-04-281-4/+4
|
* fix reaction's name validation with + sign in it (#6221)Saturnino Abril2017-04-261-1/+4
|
* APIv4 DELETE /users/{user_id}/posts/{post_id}/reactions/name (#6117)Saturnino Abril2017-04-221-2/+14
| | | | | | | | | | * APIv4 DELETE /users/{user_id}/posts/{post_id}/reactions/name * updated v3 deleteReaction endpoint * update parameter of app.DeleteReactionForPost() * update utils.IsValidAlphaNum, add utils.IsValidAlphaNumHyphenUnderscore, and add related tests
* Implement v4 endpoints for OAuth (#6040)Joram Wilander2017-04-201-0/+23
| | | | | | | | | | | | | | | | | | * Implement POST /oauth/apps endpoint for APIv4 * Implement GET /oauth/apps endpoint for APIv4 * Implement GET /oauth/apps/{app_id} and /oauth/apps/{app_id}/info endpoints for APIv4 * Refactor API version independent oauth endpoints * Implement DELETE /oauth/apps/{app_id} endpoint for APIv4 * Implement /oauth/apps/{app_id}/regen_secret endpoint for APIv4 * Implement GET /user/{user_id}/oauth/apps/authorized endpoint for APIv4 * Implement POST /oauth/deauthorize endpoint
* Merge branch 'release-3.8'Christopher Speller2017-04-171-1/+1
|\
| * PLT-5977: Only reload clients when client config changes. (#5989)George Goldberg2017-04-051-1/+1
| |
* | implement DELETE /emoji/{emoji_id} fro apiV4 (#6021)Carlos Tadeu Panato Junior2017-04-171-0/+11
| | | | | | implement GET /emoji/{emoji_id} for apiv4
* | PLT-5860 Updated copyright date (#6058)Harrison Healey2017-04-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * PLT-5860 Updated copyright date in about modal * PLT-5860 Updated copyright notice in JSX files * PLT-5860 Updated copyright notice in go files * Fixed misc copyright dates * Fixed component snapshots
* | Refactor switching login type code into app layer and add v4 endpoint (#6000)Joram Wilander2017-04-101-2/+1
| | | | | | | | | | | | * Refactor switching login type code into app layer and add v4 endpoint * Fix unit test
* | APIv4 PUT /commands/{command_id} (#5999)Saturnino Abril2017-04-071-0/+11
|/ | | | | | * APIv4 PUT /commands/{command_id} * update client parameter and api4 test
* PLT-5900 Removed automatic configuration of SiteURL (#5952)Harrison Healey2017-04-041-18/+13
| | | | | | | | | | | | | | | | * Revert "PLT-5765 Passed SiteURL to SendNotifications (#5705)" This reverts commit a8e68bd8905972ae59de90fa33d5b3e3c274dc47. * Removed automatic configuration of SiteURL * Reverted unintentional config changes * Updated help text * Added link to docs in Site URL warning * Fixed merge conflict
* Merge branch 'release-3.7'George Goldberg2017-03-231-1/+1
|\
| * Fix policy application in team edition. (#5771)George Goldberg2017-03-151-1/+1
| |
* | Add ability to use 'me' in place of user id for APIv4 (#5826)Joram Wilander2017-03-211-0/+4
| |
* | Implement compliance endpoints for APIv4 (#5683)Joram Wilander2017-03-131-0/+11
| | | | | | | | | | | | * Implement compliance endpoints for APIv4 * Add paging to get reports endpoint