summaryrefslogtreecommitdiffstats
path: root/model/client4.go
Commit message (Collapse)AuthorAgeFilesLines
* MM-9556 Added ability to upload files without a multipart request (#8306)Harrison Healey2018-02-201-1/+8
| | | | | | * MM-9556 Added ability to upload files without a multipart request * MM-9556 Handled some unusual test behaviour
* fix client4 post sanitization (#8219)Chris2018-02-081-2/+2
|
* Add GET /emojis/name/{emoji_name} API endpoint (#8142)Joram Wilander2018-01-241-1/+15
|
* ABC-90 Add POST /emoji/search and GET /emoji/autocomplete API endpoints (#8125)Joram Wilander2018-01-231-0/+21
| | | | | | * Add POST /emoji/search and GET /emoji/autocomplete API endpoints * Add constant to be clearer
* Add sort query parameter to GET /emojis (#8121)Joram Wilander2018-01-191-0/+12
|
* [PLT-7793] Add /users/tokens/search endpoint (#8088)Adrian Carolli2018-01-111-0/+10
| | | | | | | | * Add /users/tokens/search endpoint + tests * Fix check-style * Unnecessary deletion
* [PLT-7793] Added /users/tokens endpoint (#8038)Adrian Carolli2018-01-051-4/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-041-0/+10
| | | | | | | | | | * 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-6896 per-paging for logs (#7903)Yusuke Nemoto2017-12-131-1/+1
| | | | | | | | | | * PLT-6896 Read logs from last * Getting rid of file.Stats * remove deprecated value * Make non-reassigned value constant
* [PLT-7362] Add post' root ID to APIv4 addChannelMember to render added user ↵Saturnino Abril2017-10-311-0/+11
| | | | | | | | | | (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
* simplify things (#7735)Chris2017-10-301-1/+1
|
* Differentiate between installed and activated states for plugins (#7706)Joram Wilander2017-10-251-2/+24
|
* [PLT-7794] Add user access token enable/disable endpoints (#7630)Nick Frazier2017-10-191-0/+26
| | | | | | | | | | | | * Add column to UserAccessTokens table * PLT-7794 Add user access token enable/disable endpoints * replaced eliminated global variable * updates to user_access_token_store and upgrade.go * style fix and cleanup
* PLT-7193: Regression - Custom slash commands don't work in direct or group ↵Jonathan2017-10-171-1/+17
| | | | | | | | message channels (#7635) * No longer overriding specified team id for DMs/GMs, as these types of channels don't belong to a team, and doing so breaks slash commands for them * Ensured user is on specified team in case of GM/DM, extended test suite
* [PLT-7396] Add the ability to revoke user sessions in System Console > Users ↵Rick Batka2017-10-161-0/+10
| | | | | | | | #7493 (#7623) * add endpoint and tests for revoking all sessions for a user * fix failing test build
* PLT-7785: Slash commands can be issued to a channel in a team without it (#7567)Jonathan2017-10-041-1/+4
| | | | | | * Ensured that specified channel is a part of specified team * Simplified approach to just infer team id from specified channel id to eliminate the attack vector entirely
* PLT-7705: API to get data retention policy. (#7539)George Goldberg2017-10-021-0/+16
| | | | | | * PLT-7705: API to get data retention policy. * Fix review comments.
* PLT-7404 Return viewed at times in view channel API response (#7428)Joram Wilander2017-09-291-3/+3
| | | | | | | | * Return viewed at times in view channel API response * Updated transaction to read and write once * Remove transaction and only update if new value greater than older
* Implement update OAuthApp endpoint for APIv4, add test (#7413)n1aba2017-09-181-0/+10
|
* PLT-7622 Improvements to server handling of webapp plugins (#7445)Joram Wilander2017-09-151-0/+11
| | | | | | | | * Improvements to server handling of webapp plugins * Fix newline * Update manifest function names
* Model: NewLocAppError -> NewAppError (#7450)George Goldberg2017-09-151-5/+5
|
* Fix elasticsearch purge index url in client4. (#7368)George Goldberg2017-09-051-1/+1
|
* Implement experimental REST API endpoints for plugins (#7279)Joram Wilander2017-09-011-0/+69
| | | | | | | | | | | | | | | | | | * 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()
* PLT-6403: Interactive messages (#7274)Chris2017-08-291-0/+10
| | | | | | | | | | * wip * finish first pass * requested changes * add DoPostAction to Client4
* Added unit tests for getFile headers (#7045)Harrison Healey2017-08-081-49/+153
| | | | | | | | | | | | * Added unit tests for getFile headers * Fixed exe type test to run correctly on multiple platforms * Make sure we close the body on all Client4 calls * Changed Response.Response field to Response.Header * Clarified type of Response.Header
* PLT-6763 Implement user access tokens and new roles (server-side) (#6972)Joram Wilander2017-07-311-0/+58
| | | | | | | | | | | | | | | | * 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-6595-Server: Job Management APIs. (#6931)George Goldberg2017-07-201-3/+33
| | | | | | | | * PLT-6595-Server: Job Management APIs. * MANAGE_JOBS Permission * Fix test.
* PLT-6595: API to purge Elasticsearch indexes. (#6971)George Goldberg2017-07-191-0/+10
|
* Merge branch 'release-4.0'Christopher Speller2017-07-181-7/+5
|\
| * PLT-7025: Fix Slack Import API. (#6905)George Goldberg2017-07-121-5/+3
| |
| * Fixing error in apiv4 flagged posts route (#6880)Christopher Speller2017-07-091-2/+2
| |
* | Fixing client4 ping (#6915)Christopher Speller2017-07-121-1/+1
| |
* | PLT-6916: Redesign the jobs package and Jobserver. (#6733)George Goldberg2017-07-071-6/+6
|/ | | | | | | | | | | | | | This commit redesigns the jobserver to be based around an architecture of "workers", which carry out jobs of a particular type, and "jobs" which are a unit of work carried by a particular worker. It also introduces "schedulers" which are responsible for scheduling jobs of a particular type automatically (jobs can also be scheduled manually when apropriate). Workers may be run many times, either in instances of the platform binary, or the standalone jobserver binary. In any mattermost cluster, only one instance of platform OR jobserver must run the schedulers. At the moment this is controlled by a config variable, but in future will be controlled through the cluster leader election process.
* Add paging to the GET /emojis endpoint (#6802)Joram Wilander2017-07-031-3/+4
|
* Add some basic sorting support for GET /users endpoint (#6801)Joram Wilander2017-06-301-0/+22
|
* PLT-6474: Server: Add elasticsearch/test endpoint to API. (#6792)George Goldberg2017-06-291-0/+17
|
* PLT-6931 Properly parse request body in post search (#6768)Joram Wilander2017-06-281-2/+2
| | | | | | * Properly parse request body in post search * Update driver to use correct body
* Move remaining actions over to use redux and v4 endpoints (#6720)Joram Wilander2017-06-261-3/+14
|
* Fix panic in v4 client (#6704)Joram Wilander2017-06-211-197/+205
|
* Add GET /teams/invite/{invite_id} endpoint for v4 (#6685)Joram Wilander2017-06-201-0/+10
|
* Add GET /analytics/old endpoint for v4 (#6666)Joram Wilander2017-06-191-0/+18
|
* Add POST and DELETE /license endpoints for v4 (#6665)Joram Wilander2017-06-191-1/+45
| | | | | | * Add POST and DELETE /license endpoints for v4 * Fix comment text
* Add APIv4 endpoint to permanently delete teams (#6604)Zeger-Jan van de Weg2017-06-151-0/+11
| | | | | Tests are added, however, it only tests the property if its soft deleted. In the background it will be hard deleted, but that is untestable through a integration test.
* [PLT-5465/APIV4] GET /system/health - Improve ping health check to have ↵Carlos Tadeu Panato Junior2017-05-301-7/+10
| | | | | | | | | | limits (#6331) * implement PLT-5465 - Improve ping health check to have limits * update /ping and delete /health * remove permission check
* PLT-6408 Framework for job server (#6404)Harrison Healey2017-05-181-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* PLT-6019: Add APIv4 Endpoint for restoring Channels (#6263)Robin Naundorf2017-05-151-0/+10
|
* Removing channel list alias from apiv4 client (#6383)Christopher Speller2017-05-101-10/+10
|
* Add tests for CreateUserWithInviteId and CreateUserWithHash (#6363)Carlos Tadeu Panato Junior2017-05-101-0/+34
|
* implement open graph metadata for apiV4 (#6343)Carlos Tadeu Panato Junior2017-05-101-0/+19
|
* Add API Endpoint for deleted Channels (#5889)Robin Naundorf2017-05-091-0/+11
|