summaryrefslogtreecommitdiffstats
path: root/api4/api.go
Commit message (Collapse)AuthorAgeFilesLines
* MM-12505: remove all things WebRTC (#9700)Jesse Hallam2018-10-181-5/+0
|
* Refactored to rename "service terms" to "terms of service" (#9581)Harshil Sharma2018-10-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * #124 renamed identififers from service terms to terms of service * #124 renamed identififers from service terms to terms of service * 124 renamed ServiceTerms model to TermsOfService * 124 Renamed EnableCustomServiceTerms feature flag to EnableCustomTermsOfService * 124 Renamed EnableCustomServiceTerms feature flag to EnableCustomTermsOfService * #124 fixed formatting * #124 fixed formatting * #132 renamed table ServiceTerms to TermsOfService * #124 renamed some missed files from 'service_terms' to 'terms_of_service' * #124 removed fixed TODOs * drop migrate of ServiceTerms table, since backporting * s/ServiceTerms/TermsOfService/ in tests * s/AcceptedServiceTermsId/AcceptedTermsOfServiceId/ Change the model attribute, even though the column name will eventually be removed. * s/accepted_service_terms_id/accepted_terms_of_service_id/ to match redux * s/serviceTerms/termsOfService * rename column too, and add max size constraint * s/EnableCustomServiceTerms/EnableCustomTermsOfService
* #MM-12130 changes for custom service terms (#9450)Harshil Sharma2018-09-261-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * #MM-12130 changes for custom service terms * Fixed styling * Added getServiceTerms API * removed unnecessary panic * removed custom service terms text from flat config * reverted user sql store as those changes are no longer needed * added tests * Updated a config key to be more standard * Added copyright info * Loading service terms only if the feature is enabled * Loading service terms only if the feature is enabled * removed unused index * added createservice termns API * made a param to bool instead of string * added createservice termns API * review fixes * fixed styling * Minor refactoring * removed saveConfig and loadConfig magic * added empty service terms text check to createServiceTerms API * refactoed some urls to be terms_of_service instead of service_terms * removed check for support settings * changed URLs in tests * removed unused code * fixed a bug * added service termd id in conif * fixed a test * review fixes * minor fixes * Fixed TestCreateServiceTerms
* Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-171-5/+2
|\
| * MM-8708 Remove api package (#8784)Joram Wilander2018-05-161-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove api package * Remove api dependency from cmd package * Remove EnableAPIv3 setting * Update web tests * Add more websocket tests * Move some ws and oauth tests to api4 package * Move command tests into api4 package * Test fixes * Fix msg command test * Add some app file tests
* | Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-151-17/+5
|\|
| * Move SAML endpoints out of api package (#8780)Joram Wilander2018-05-141-5/+1
| |
| * Refactor context out of API packages (#8755)Joram Wilander2018-05-141-12/+4
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* | MM-10140: API Implementation for Schemes related Endpoints (#8615)George Goldberg2018-05-031-1/+4
|/ | | | | | | | | | | | | | * Implement basic scheme CRUD endpoints. * Get All Schemes (Paged) Endpoint and store plumbing. * Add get teams/channels for schemes. * Fix unit tests. * Review fixes. * More review fixes.
* Structured logging (#8673)Christopher Speller2018-04-271-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-02-131-0/+5
|\
| * Add /v4/image api (#8230)Chris2018-02-091-0/+5
| | | | | | | | | | | | | | | | * add image api * i suppose i should add a test... * only redirect to image proxy
* | XYZ-37: Advanced Permissions Phase 1 Backend. (#8159)George Goldberg2018-02-061-0/+5
|/ | | | | | | | | | | | | | | | | | | | | | | | | | * 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-241-2/+4
|
* ABC-90 Add POST /emoji/search and GET /emoji/autocomplete API endpoints (#8125)Joram Wilander2018-01-231-1/+1
| | | | | | * Add POST /emoji/search and GET /emoji/autocomplete API endpoints * Add constant to be clearer
* [PLT-6936] Translate AppError.Message automatically by default (#8063)Jesús Espino2018-01-081-1/+0
|
* refactor template code (#7860)Chris2017-11-201-2/+0
|
* Miscellaneous app cleanup (#7594)Chris2017-10-091-6/+0
| | | | | | | | | | | | * app cleanup * whoops, forgot a file * some minor cleanup * longer container deadline * defensive checks
* PLT-7705: API to get data retention policy. (#7539)George Goldberg2017-10-021-0/+4
| | | | | | * PLT-7705: API to get data retention policy. * Fix review comments.
* remove remaining Global() calls (outside of tests) (#7521)Chris2017-09-281-1/+1
|
* remove global refs from api/api4 (#7496)Chris2017-09-221-122/+111
|
* remove more global refs (#7480)Chris2017-09-211-2/+1
|
* Remove global app references (#7433)Chris2017-09-121-7/+8
| | | | | | | | * remove global app references * test fix * fix api4 test compilation
* PLT-7407: Back-end plugins (#7409)Chris2017-09-111-1/+1
| | | | | | | | | | | | * tie back-end plugins together * fix comment typo * add tests and a bit of polish * tests and polish * add test, don't let backend executable paths escape the plugin directory
* Renaming repoChristopher Speller2017-09-061-4/+4
|
* app type transition (#7167)Chris2017-09-061-5/+5
|
* Implement experimental REST API endpoints for plugins (#7279)Joram Wilander2017-09-011-0/+7
| | | | | | | | | | | | | | | | | | * 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-2/+1
|
* PLT-1649: add response_url support for custom slash commands (#6739)Chris2017-08-161-4/+2
| | | | | | | | | | * add response_url support for custom slash commands * pr suggestions * pr update / suggestion * test fix
* PLT-6474: Server: Add elasticsearch/test endpoint to API. (#6792)George Goldberg2017-06-291-0/+4
|
* PLT-6408 Framework for job server (#6404)Harrison Healey2017-05-181-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* implement open graph metadata for apiV4 (#6343)Carlos Tadeu Panato Junior2017-05-101-0/+5
|
* fix reaction's name validation with + sign in it (#6221)Saturnino Abril2017-04-261-2/+2
|
* APIv4 DELETE /users/{user_id}/posts/{post_id}/reactions/name (#6117)Saturnino Abril2017-04-221-0/+6
| | | | | | | | | | * 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-3/+9
| | | | | | | | | | | | | | | | | | * 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
* PLT-1384 Added websocket event when preferences are updated/deleted (#6107)Harrison Healey2017-04-201-1/+1
|
* APIv4 POST /reactions (#6092)Saturnino Abril2017-04-181-0/+3
| | | | | | * APIv4 POST /reactions * update corresponding V3 endpoint
* Implement GET /webrtc/token endpoint for APIv4 (#6046)Joram Wilander2017-04-161-0/+1
|
* 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
* APIv4 GET /posts/{post_id}/reactions (#6047)Saturnino Abril2017-04-111-0/+1
|
* implement POST /emoji for apiV4 (#5868)Carlos Tadeu Panato Junior2017-04-061-0/+1
|
* APIv4 GET /users/{user_id}/posts/flagged (#5984)Saturnino Abril2017-04-051-0/+2
| | | | | | * APIv4 GET /users/{user_id}/posts/flagged * change permission check
* Move WebSocket API to it's own package and add websocket v4 endpoint (#5881)Joram Wilander2017-03-281-1/+1
|
* Implement some team endpoints for APIv4 (#5870)Joram Wilander2017-03-251-7/+9
| | | | | | * Implement GET /users/{user_id}/teams/members endpoint for APIv4 * Implement DELETE /teams/{team_id}/members/{user_id} endpoint for APIv4
* [APIV4] GET /users/{user_id}/status - user status endpoint for apiV4 (#5824)Carlos Tadeu Panato Junior2017-03-241-0/+1
|
* implement POST /commands for apiv4 (#5849)Carlos Tadeu Panato Junior2017-03-231-0/+1
|
* Implement some channel endpoints for APIv4 (#5767)Joram Wilander2017-03-161-0/+2
|
* Implement brand image endpoints for APIv4 (#5733)Joram Wilander2017-03-141-0/+4
| | | | | | * Implement brand image endpoints for APIv4 * Fix unit test
* Implement admin LDAP endpoints for APIv4 (#5720)Joram Wilander2017-03-141-0/+4
|
* APIv4: GET /files/{file_id}/public (#5665)Saturnino Abril2017-03-131-0/+3
|