summaryrefslogtreecommitdiffstats
path: root/api/api.go
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Move WebSocket API to it's own package and add websocket v4 endpoint (#5881)Joram Wilander2017-03-281-1/+0
|
* Implement APIv4 infrastructure (#5191)Joram Wilander2017-01-301-1/+1
| | | | | | * Implement APIv4 infrastructure * Update parameter requirement functions per feedback
* More app code migration (#5170)Joram Wilander2017-01-251-8/+0
| | | | | | | | * Migrate admin functions into app package * More user function refactoring * Move post functions into app package
* Closing response body when fetching link previews (#5181)Christopher Speller2017-01-241-0/+8
|
* PLT-4938 Add app package and move logic over from api package (#4931)Joram Wilander2017-01-131-8/+11
| | | | | | | | | | * Add app package and move logic over from api package * Change app package functions to return errors * Move non-api tests into app package * Fix merge
* Adding metrics for caching mechanisms (#4828)Christopher Speller2016-12-191-1/+10
|
* Fixing etag issue with load tests (#4777)Corey Hulen2016-12-131-0/+1
|
* PLT-1378 Initial version of emoji reactions (#4520)Harrison Healey2016-11-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Refactored emoji.json to support multiple aliases and emoji categories * Added custom category to emoji.jsx and stabilized all fields * Removed conflicting aliases for :mattermost: and :ca: * fixup after store changes * Added emoji reactions * Removed reactions for an emoji when that emoji is deleted * Fixed incorrect test case * Renamed ReactionList to ReactionListView * Fixed :+1: and :-1: not showing up as possible reactions * Removed text emoticons from emoji reaction autocomplete * Changed emoji reactions to be sorted by the order that they were first created * Set a maximum number of listeners for the ReactionStore * Removed unused code from Textbox component * Fixed reaction permissions * Changed error code when trying to modify reactions for another user * Fixed merge conflicts * Properly applied theme colours to reactions * Fixed ESLint and gofmt errors * Fixed ReactionListContainer to properly update when its post prop changes * Removed unnecessary escape characters from reaction regexes * Shared reaction message pattern between CreatePost and CreateComment * Removed an unnecessary select query when saving a reaction * Changed reactions route to be under /reactions * Fixed copyright dates on newly added files * Removed debug code that prevented all unit tests from being ran * Cleaned up unnecessary code for reactions * Renamed ReactionStore.List to ReactionStore.GetForPost
* PLT-4403 Add server-based channel autocomplete, search and paging (#4585)Joram Wilander2016-11-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * Add more channel paging API * Add channel paging support to client * Add DB channel search functions * Add API for searching more channels * Add more channel search functionality to client * Add API for autocompleting channels * Add channel autocomplete functionality to the client * Move to be deprecated APIs to their own file * Final clean-up * Fixes related to feedback * Localization changes * Add unit as suffix to timeout constants
* PLT-3105 Files table migration (#4068)Harrison Healey2016-09-301-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implemented initial changes for files table * Removed *_benchmark_test.go files * Re-implemented GetPublicFile and added support for old path * Localization for files table * Moved file system code into utils package * Finished server-side changes and added initial upgrade script * Added getPostFiles api * Re-add Extension and HasPreviewImage fields to FileInfo * Removed unused translation * Fixed merge conflicts left over after permissions changes * Forced FileInfo.extension to be lower case * Changed FileUploadResponse to contain the FileInfos instead of FileIds * Fixed permissions on getFile* calls * Fixed notifications for file uploads * Added initial version of client code for files changes * Permanently added FileIds field to Post object and removed Post.HasFiles * Updated PostStore.Update to be usable in more circumstances * Re-added Filenames field and switched file migration to be entirely lazy-loaded * Increased max listener count for FileStore * Removed unused fileInfoCache * Moved file system code back into api * Removed duplicate test case * Fixed unit test running on ports other than 8065 * Renamed HasPermissionToPostContext to HasPermissionToChannelByPostContext * Refactored handleImages to make it more easily understandable * Renamed getPostFiles to getFileInfosForPost * Re-added pre-FileIds posts to analytics * Changed files to be saved as their ids as opposed to id/filename.ext * Renamed FileInfo.UserId to FileInfo.CreatorId * Fixed detection of language in CodePreview * Fixed switching between threads in the RHS not loading new files * Add serverside protection against a rare bug where the client sends the same file twice for a single post * Refactored the important parts of uploadFile api call into a function that can be called without a web context
* PLT-3412 WebRTC Server side & System Console (#3706)enahum2016-09-151-0/+4
| | | | | | | | | | * WebRTC Server side * WebRTC System Console * Consistency on variable names * Add turn and stun uri validation
* PLT-3647 Email Batching (#3718)Harrison Healey2016-08-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PLT-3647 Added config settings for email batching * PLT-3647 Refactored generation of email notification * PLT-3647 Added serverside code for email batching * PLT-3647 Updated settings UI to enable email batching * PLT-3647 Removed debug code * PLT-3647 Fixed 0-padding of minutes in batched notification * PLT-3647 Updated clientside UI for when email batching is disabled * Go fmt * PLT-3647 Changed email batching to be disabled by default * Updated batched email message * Added email batching toggle to system console * Changed Email Notifications > Immediate setting to a 30 second batch interval * Go fmt * Fixed link to Mattermost icon in batched email notification * Updated users to use 30 second email batching by default * Fully disabled email batching when clustering is enabled * Fixed email batching setting in the system console * Fixed casing of 'Send Email notifications' -> 'Send email notifications' * Updating UI Improvements for email batching (#3736) * Updated text for notification settings and SiteURL. * Prevented enabling email batching when SiteURL isn't set in the system console * Re-added a couple debug messages * Added warning text when clustering is enabled
* PLT-2241 Refactored statuses into a more real-time system (#3573)Joram Wilander2016-07-181-0/+1
| | | | | | | | | | * Refactored statuses into a more real-time system * Updated package.json with correct commit and fixed minor bug * Minor updates to statuses based on feedback * When setting status online, update only LastActivityAt if status already exists
* Added infrastructure for basic WebSocket API (#3432)Joram Wilander2016-07-121-0/+4
|
* PLT-3143 Added serverside code for custom Emoji (#3311)Harrison Healey2016-06-141-0/+4
| | | | | | | | | | | | | | * Added model objects for emoji * Added database tables for emoji * Added settings for custom emoji * Added serverside APIs and unit tests for custom emoji * Added additional validation to catch duplicate emoji names earlier on * Added additional validation to prevent users from adding emoji as another user
* PLT-2559 Always return successful when trying to join a channel that the ↵Harrison Healey2016-06-061-2/+2
| | | | | | | | | | user is already a member of (#3265) * Added unit tests for SqlChannelStore.GetMember * Fixed api routes for accessing channels by name when the name includes an underscore * Changed join channel API to always return successful when the user is already a member of the channel
* PLT-1800 Load server side locale from the config.json (#3202)enahum2016-06-021-1/+0
| | | | | | | | | | | | * PLT-1800 Load server side locale from the config.json * Add support for locales with country specifics * Fix localization on served locale file as plain/text * Remove github.com/cloudfoundry/jibber_jabber as vendor dependency * Fix get locale on login_controller
* Revert "PLT-1800 Load server side locale from the config.json" (#3201)Christopher Speller2016-06-011-0/+1
|
* PLT-1800 Load server side locale from the config.json (#3135)enahum2016-06-011-1/+0
| | | | | | | | | | * PLT-1800 Load server side locale from the config.json * Add support for locales with country specifics * Fix localization on served locale file as plain/text * Remove github.com/cloudfoundry/jibber_jabber as vendor dependency
* Adding APIs to reload config, recycle db connections and ping server (#3096)Corey Hulen2016-05-241-0/+10
| | | | | | | | * Adding APIs to reload config, recycle db connections and ping server * Fixing unit test * Adding unit tests
* PLT-2600/PLT-2770 Added Get Public Link modal and added new API for public ↵Harrison Healey2016-05-051-0/+3
| | | | | | | | file links (#2892) * Switched public file links to use a GetLinkModal * Separated getFile and the new getPublicFile api calls
* Fixing permalinks to channels your not a memeber of (#2805)Christopher Speller2016-04-271-2/+4
|
* PLT-2057 User as a first class object (#2648)Corey Hulen2016-04-211-13/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adding TeamMember to system * Fixing all unit tests on the backend * Fixing merge conflicts * Fixing merge conflict * Adding javascript unit tests * Adding TeamMember to system * Fixing all unit tests on the backend * Fixing merge conflicts * Fixing merge conflict * Adding javascript unit tests * Adding client side unit test * Cleaning up the clint side tests * Fixing msg * Adding more client side unit tests * Adding more using tests * Adding last bit of client side unit tests and adding make cmd * Fixing bad merge * Fixing libraries * Updating to new client side API * Fixing borken unit test * Fixing unit tests * ugg...trying to beat gofmt * ugg...trying to beat gofmt * Cleaning up remainder of the server side routes * Adding inital load api * Increased coverage of webhook unit tests (#2660) * Adding loading ... to root html * Fixing bad merge * Removing explicit content type so superagent will guess corectly (#2685) * Fixing merge and unit tests * Adding create team UI * Fixing signup flows * Adding LDAP unit tests and enterprise unit test helper (#2702) * Add the ability to reset MFA from the commandline (#2706) * Fixing compliance unit tests * Fixing client side tests * Adding open server to system console * Moving websocket connection * Fixing unit test * Fixing unit tests * Fixing unit tests * Adding nickname and more LDAP unit tests (#2717) * Adding join open teams * Cleaning up all TODOs in the code * Fixing web sockets * Removing unused webockets file * PLT-2533 Add the ability to reset a user's MFA from the system console (#2715) * Add the ability to reset a user's MFA from the system console * Add client side unit test for adminResetMfa * Reorganizing authentication to fix LDAP error message (#2723) * Fixing failing unit test * Initial upgrade db code * Adding upgrade script * Fixing upgrade script after running on core * Update OAuth and Claim routes to work with user model changes (#2739) * Fixing perminant deletion. Adding ability to delete all user and the entire database (#2740) * Fixing team invite ldap login call (#2741) * Fixing bluebar and some img stuff * Fix all the different file upload web utils (#2743) * Fixing invalid session redirect (#2744) * Redirect on bad channel name (#2746) * Fixing a bunch of issue and removing dead code * Patch to fix error message on leave channel (#2747) * Setting EnableOpenServer to false by default * Fixing config * Fixing upgrade * Fixing reported bugs * Bug fixes for PLT-2057 * PLT-2563 Redo password recovery to use a database table (#2745) * Redo password recovery to use a database table * Update reset password audits * Split out admin and user reset password APIs to be separate * Delete password recovery when user is permanently deleted * Consolidate password resetting into a single function * Removed private channels as an option for outgoing webhooks (#2752) * PLT-2577/PLT-2552 Fixes for backstage (#2753) * Added URL to incoming webhook list * Fixed client functions for adding/removing integrations * Disallowed slash commands without trigger words * Fixed clientside handling of errors on AddCommand page * Minor auth cleanup (#2758) * Changed EditPostModal to just close if you save without making any changes (#2759) * Renamed client -> Client in async_client.jsx and fixed eslint warnings (#2756) * Fixed url in channel info modal (#2755) * Fixing reported issues * Moving to version 3 of the apis * Fixing command unit tests (#2760) * Adding team admins * Fixing DM issue * Fixing eslint error * Properly set EditPostModal's originalText state in all cases (#2762) * Update client config check to assume features is defined if server is licensed (#2772) * Fixing url link * Fixing issue with websocket crashing when sending messages to different teams
* Visiting invalid URLs and bad APIs causes redirect to error pageChristopher Speller2016-04-011-0/+2
|
* Convering client to react-router.Christopher Speller2016-03-141-40/+3
|
* Replaced FeedbackEmail with SupportEmail in the email footerHarrison Healey2016-03-031-1/+1
|
* PLT-7: Refactoring api to use translations (chunk 4)Elias Nahum2016-01-241-2/+10
| | | | - Translation for api templates english and spanish
* Merge branch 'master' into PLT-7-client-infra=Corey Hulen2016-01-211-3/+3
|\
| * Refactoring api to use translations (chunk 1)Elias Nahum2016-01-211-3/+3
| | | | | | | | | | | | | | | | - Add spanish translations - Files in order by name from admin to export - Does not include api templates and tests - Fix web_test to load translations - Fix i18n to fallback to DEFAULT_LOCALE if no system locale found
* | PLT-7 Adding react-intl libs=Corey Hulen2016-01-211-0/+1
|/
* PLT-7 adding server side libraries=Corey Hulen2016-01-191-0/+3
|
* Added license validation and settingsJoramWilander2016-01-141-0/+1
|
* Upgrade logging package=Corey Hulen2016-01-111-1/+1
|
* Inital support for multi-tab loging=Corey Hulen2015-10-161-1/+1
|
* Added api to get and set preferenceshmhealey2015-10-131-0/+1
|
* Changing SpinPunch to Mattermost in copyrightChristopher Speller2015-10-081-1/+1
|
* Implement incoming webhooks.JoramWilander2015-09-211-0/+1
|
* Implement OAuth2 service provider functionality.JoramWilander2015-09-161-0/+1
|
* Removing old config stuff=Corey Hulen2015-09-151-1/+0
|
* PLT-93 cleaing up client side configs=Corey Hulen2015-09-151-4/+6
|
* PLT-12 adding log viewer=Corey Hulen2015-09-101-0/+1
|
* Added initial api to allow clientside code to query serverside configurationhmhealey2015-08-111-0/+1
|
* Changed all templates to use site url instead of team url for finding the ↵nickago2015-07-311-2/+2
| | | | 'static' directory
* Changing the way we mattermost handles URLs. team.domain.com becomes ↵Christopher Speller2015-07-201-2/+2
| | | | | | | domain.com/team. Renaming team.Name to team.DisplayName and team.Domain to team.Name. So: team.Name -> url safe name. team.DisplayName -> nice name for users
* first commit=Corey Hulen2015-06-141-0/+61