George Goldberg
901acc9703
Merge branch 'master' into advanced-permissions-phase-1
2018-03-02 15:55:03 +00:00
Derrick Anderson
4538857ae3
Merge remote-tracking branch 'origin/release-4.7' into merge47intomaster
2018-02-23 15:14:01 -05:00
Joram Wilander
659ce8c600
Change log level of 404s to DEBUG ( #8339 )
2018-02-21 09:20:10 -05:00
Harrison Healey
babd795d79
MM-9556 Added ability to upload files without a multipart request ( #8306 )
...
* MM-9556 Added ability to upload files without a multipart request
* MM-9556 Handled some unusual test behaviour
2018-02-20 10:41:00 -05:00
Jesús Espino
a04b02081a
Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-1
2018-02-07 18:05:23 +01:00
Chris
1ec295f88c
add App.License, remove utils.IsLicensed / utils.License calls ( #8203 )
2018-02-06 17:25:49 -06:00
George Goldberg
7941c30117
Merge branch 'master' into advanced-permissions-phase-1
2018-02-06 17:25:53 +00:00
George Goldberg
e1cd646135
XYZ-37: Advanced Permissions Phase 1 Backend. ( #8159 )
...
* 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.
2018-02-06 15:34:08 +00:00
Christopher Speller
1262d25473
User based rate limiting ( #8152 )
2018-01-31 09:49:15 -08:00
Jesús Espino
6990d052d5
[XYZ-6] Add sampledata platform command ( #8027 )
...
* Add fake dependency
* [XYZ-6] Add sampledata platform command
* Creating EMOJI_NAME_MAX_LENGTH as a constant and using it where needed
2018-01-11 10:57:47 -05:00
Chris
591ef9f352
Remove utils.ClientCfg and utils.ClientCfgHash ( #8041 )
...
* remove utils.ClientCfg and utils.ClientCfgHash
* remove unused import
2018-01-05 16:17:57 -06:00
Martin Kraft
942b5b5cc0
PLT-8058: Logging api.context.invalid_session.error app errors to log level 'info'. ( #7893 )
2017-11-23 09:44:56 -05:00
Christopher Speller
4491b5ecdf
Performance improvements for 40M posts ( #7708 )
...
* 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
2017-10-25 11:48:15 -07:00
Chris
8e19ba029f
Reduce utils.Cfg references ( #7650 )
...
* app.UpdateConfig method
* test fix
* another test fix
* the config override option as-was is just error prone, remove it for now
* derp
2017-10-18 15:36:43 -07:00
Joram Wilander
3e144f82e2
Only update session activity on specific endpoints ( #7549 )
2017-10-03 11:16:33 -07:00
Joram Wilander
15b361094a
PLT-7633 (E20) Add session idle timeout config setting ( #7524 )
...
* Add session idle timeout config setting
* Modify config setting name to SessionIdleTimeoutInMinutes
* Small re-org of if statement
* Merge with latest master
2017-09-28 14:04:52 +01:00
Chris
dcf9e96a0b
remove global refs from api/api4 ( #7496 )
2017-09-22 13:54:27 -04:00
Chris
ac74066f0e
remove einterface gets ( #7455 )
2017-09-19 18:31:35 -05:00
Christopher Speller
29fca51821
Renaming repo
2017-09-06 23:11:59 -07:00
Chris
1adfd0e9be
app type transition ( #7167 )
2017-09-06 17:12:54 -05:00
Joram Wilander
899ab31fff
Implement experimental REST API endpoints for plugins ( #7279 )
...
* 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()
2017-09-01 09:00:27 -04:00
George Goldberg
63b10be020
APIv4: NewLocAppError -> NewAppError ( #7328 )
2017-08-31 10:03:16 -04:00
Chris
213a072b38
PLT-6403: Interactive messages ( #7274 )
...
* wip
* finish first pass
* requested changes
* add DoPostAction to Client4
2017-08-29 16:14:59 -05:00
Corey Hulen
0ab490845a
PLT-6226 Fixing races with licensing ( #7213 )
...
* PLT-6226 Fixing races with licensing
* Fixing build issue
* Fixing licensing issue
* removing commented code
2017-08-16 09:51:45 -07:00
Joram Wilander
59992ae4a4
PLT-6763 Implement user access tokens and new roles (server-side) ( #6972 )
...
* 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
2017-07-31 12:59:32 -04:00
Harrison Healey
9a23519d07
PLT-6983 Allowed team invite IDs of arbitrary lengths to match API v3 ( #6944 )
2017-07-15 05:06:59 +08:00
Corey Hulen
58e8de3899
Fixing mean request time ( #6760 )
2017-06-26 21:46:19 -07:00
Joram Wilander
2e6fd031d1
Add GET /teams/invite/{invite_id} endpoint for v4 ( #6685 )
2017-06-20 14:55:43 +01:00
Corey Hulen
36f216cb7c
PLT-6080 moving clustering to memberlist ( #6499 )
...
* 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
2017-06-19 08:44:04 -07:00
Harrison Healey
577ed27f1b
PLT-6408 Framework for job server ( #6404 )
...
* 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
2017-05-18 15:05:57 -04:00
Joram Wilander
202c383d8d
Fix MFA enforcement on login and page load ( #6356 )
2017-05-09 07:48:57 -05:00
Corey Hulen
a8cf08d6ef
PLT-6322 log error messages in english ( #6234 )
2017-04-28 10:03:52 -04:00
Saturnino Abril
6fa7082833
fix reaction's name validation with + sign in it ( #6221 )
2017-04-26 10:11:32 -04:00
Saturnino Abril
ecb10ed62f
APIv4 DELETE /users/{user_id}/posts/{post_id}/reactions/name ( #6117 )
...
* 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
2017-04-22 08:52:03 -04:00
Joram Wilander
be9624e2ad
Implement v4 endpoints for OAuth ( #6040 )
...
* 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
2017-04-20 09:55:02 -04:00
Christopher Speller
92d8fa4aa8
Merge branch 'release-3.8'
2017-04-17 15:08:56 -04:00
Carlos Tadeu Panato Junior
80684ad69f
implement DELETE /emoji/{emoji_id} fro apiV4 ( #6021 )
...
implement GET /emoji/{emoji_id} for apiv4
2017-04-17 10:07:28 -04:00
Harrison Healey
fb6f2a123c
PLT-5860 Updated copyright date ( #6058 )
...
* 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
2017-04-12 08:27:57 -04:00
Joram Wilander
dfc6db7374
Refactor switching login type code into app layer and add v4 endpoint ( #6000 )
...
* Refactor switching login type code into app layer and add v4 endpoint
* Fix unit test
2017-04-10 08:19:49 -04:00
Saturnino Abril
a3f5cffd46
APIv4 PUT /commands/{command_id} ( #5999 )
...
* APIv4 PUT /commands/{command_id}
* update client parameter and api4 test
2017-04-07 10:06:09 -07:00
George Goldberg
87343176fc
PLT-5977: Only reload clients when client config changes. ( #5989 )
2017-04-05 19:10:20 +01:00
Harrison Healey
c7bdce8a66
PLT-5900 Removed automatic configuration of SiteURL ( #5952 )
...
* Revert "PLT-5765 Passed SiteURL to SendNotifications (#5705 )"
This reverts commit a8e68bd890 .
* Removed automatic configuration of SiteURL
* Reverted unintentional config changes
* Updated help text
* Added link to docs in Site URL warning
* Fixed merge conflict
2017-04-04 11:54:52 -04:00
George Goldberg
c6ded1dbfd
Merge branch 'release-3.7'
2017-03-23 17:38:24 +00:00
Joram Wilander
bea49cbcf3
Add ability to use 'me' in place of user id for APIv4 ( #5826 )
2017-03-21 18:43:16 -04:00
George Goldberg
91d430b2a3
Fix policy application in team edition. ( #5771 )
2017-03-15 19:32:02 +00:00
Joram Wilander
3ebfb36953
Implement compliance endpoints for APIv4 ( #5683 )
...
* Implement compliance endpoints for APIv4
* Add paging to get reports endpoint
2017-03-13 10:14:16 -04:00
Poornima
482a0fb5fc
Adding functionality to get & delete incoming webhooks ( #5648 )
2017-03-11 19:40:56 -03:00
Ruzette Tanyag
cef5028cbe
Implemented preferences endpoints for apiv4 ( #5531 )
...
* implemented preferences endpoints for apiv4
* added user id in preferences endpoints
2017-02-28 09:14:16 +00:00
Joram Wilander
a5f8bdd3a0
Various APIv4 fixes ( #5474 )
2017-02-20 15:35:02 -05:00
Joram Wilander
91fe8bb2c0
Implement upload and get file endpoints for APIv4 ( #5396 )
...
* Implement POST /files endpoint for APIv4
* Implement GET /files/{file_id} endpoint for APIv4
2017-02-17 10:31:21 -05:00