summaryrefslogtreecommitdiffstats
path: root/store/store.go
Commit message (Collapse)AuthorAgeFilesLines
* ABC-79: Optimize channel autocomplete query (#8163)Chris2018-01-311-0/+1
| | | | | | * optimize channel autocomplete query * move to new autocomplete endpoint
* ABC-90 Add POST /emoji/search and GET /emoji/autocomplete API endpoints (#8125)Joram Wilander2018-01-231-0/+1
| | | | | | * 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-1/+1
|
* ABC-73 Move session clean-up to daily task (#8095)Joram Wilander2018-01-171-0/+1
| | | | | | * Move session clean-up to daily task * Split delete query into batches
* [PLT-7793] Add /users/tokens/search endpoint (#8088)Adrian Carolli2018-01-111-0/+1
| | | | | | | | * Add /users/tokens/search endpoint + tests * Fix check-style * Unnecessary deletion
* [PLT-7793] Added /users/tokens endpoint (#8038)Adrian Carolli2018-01-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* PLT-8233: Purge ChannelMemberHistory Data when Data Retention Job runs (#7937)Jonathan2017-12-051-1/+1
| | | | | | | | | | * Changed the channel member history purge function to match pattern established by other data retention purge methods * Simplifying the channel member history store and associated tests * Regenerating mocks * Using a constant
* PLT-7503: Create Message Export Scheduled Task and CLI Command (#7612)Jonathan2017-11-301-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Created message export scheduled task * Added CLI command to immediately kick off an export job * Added email addresses for users joining and leaving the channel to the export * Added support for both MySQL and PostgreSQL * Fixing gofmt error * Added a new ChannelMemberHistory store and associated tests * Updating the ChannelMemberHistory channel as users create/join/leave channels * Added user email to the message export object so it can be included in the actiance export xml * Don't fail to log a leave event if a corresponding join event wasn't logged * Adding copyright notices * Adding message export settings to daily diagnostics report * Added System Console integration for message export * Cleaned up TODOs * Made batch size configurable * Added export from timestamp to CLI command * Made ChannelMemberHistory table updates best effort * Added a context-based timeout option to the message export CLI * Minor PR updates/improvements * Removed unnecessary fields from MessageExport object to reduce query overhead * Removed JSON functions from the message export query in an effort to optimize performance * Changed the way that channel member history queries and purges work to better account for edge cases * Fixing a test I missed with the last refactor * Added file copy functionality to file backend, improved config validation, added default config values * Fixed file copy tests * More concise use of the testing libraries * Fixed context leak error * Changed default export path to correctly place an 'export' directory under the 'data' directory * Can't delete records from a read replica * Fixed copy file tests * Start job workers when license is applied, if configured to do so * Suggestions from the PR * Moar unit tests * Fixed test imports
* PLT-5458: If someone posts a channel link to channel_A that you don't belong ↵Chris2017-11-281-0/+1
| | | | | | | | | | | | to, it doesn't render properly (#7833) * add channel link hints to post props * optimization * update regex, add unit test * fix rebase issue
* PLT-8131 (part2) Add plugin key value store support (#7902)Joram Wilander2017-11-271-0/+7
| | | | | | | | * Add plugin key value store support * Add localization strings * Updates per feedback
* PLT-7934: Make query for bulk elasticsearch indexing more efficient. (#7664)George Goldberg2017-10-251-1/+2
|
* refactor max users per team (#7691)Chris2017-10-201-1/+1
|
* refactor max channels per team enforcement (#7690)Chris2017-10-201-1/+1
|
* [PLT-7794] Add user access token enable/disable endpoints (#7630)Nick Frazier2017-10-191-0/+2
| | | | | | | | | | | | * 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
* Fix races / finally remove global app for good (#7570)Chris2017-10-041-0/+11
| | | | | | | | | | | | * finally remove global app for good * test compilation fixes * fix races * fix deadlock * wake up write pump so it doesn't take forever to clean up
* PLT-7218: CLI to move slash commands between teams. (#7574)George Goldberg2017-10-041-0/+2
|
* PLT-7644: Improve job scheduler architecture. (#7532)George Goldberg2017-09-281-0/+2
|
* PLT-7619: Cleanup flags in data retention. (#7501)George Goldberg2017-09-221-0/+1
|
* PLT-7639: Batch delete methods for data retention. (#7444)George Goldberg2017-09-151-0/+4
|
* Renaming repoChristopher Speller2017-09-061-1/+1
|
* PLT-???? Prepare file upload infrastructure for Data Retention. (#7266)George Goldberg2017-08-251-0/+1
| | | | | | | | | | | | | | | | | * Prepare file upload infrastructure for Data Retention. This commit prepares the file upload infrastructure for the data retention feature that is under construction. Changes are: * Move file management code to utils to allow access to it from jobs. * From now on, store all file uploads in a top level folder which is the date of the day on which they were uploaded. This commit is based on Harrison Healey's branch, but updated to work with the latest master. * Use NewAppError
* PLT-1649: add response_url support for custom slash commands (#6739)Chris2017-08-161-0/+8
| | | | | | | | | | * add response_url support for custom slash commands * pr suggestions * pr update / suggestion * test fix
* Revert " #4755 Combining consecutive user join/leave system messages to ↵Saturnino Abril2017-08-011-1/+0
| | | | | | | | | | | | single message and few other changes." (#7072) * Revert "PLT-6603: Don't return all posts on invalid query. (#7061)" This reverts commit 25a2013890c7e07b4621fa9b18342e7f35363049. * Revert " #4755 Combining consecutive user join/leave system messages to single message and few other changes. (#5945)" This reverts commit 8a91235fb3cdc8d094dbc2eaa0d7baa447132b3c.
* #4755 Combining consecutive user join/leave system messages to single ↵Debanshu Kundu2017-08-011-0/+1
| | | | | | | | | message and few other changes. (#5945) fix 7 and 8 remove @ at "{username} joined the channel" refactor and update test
* PLT-6763 Implement user access tokens and new roles (server-side) (#6972)Joram Wilander2017-07-311-0/+10
| | | | | | | | | | | | | | | | * 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
* make cli team / channel delete operations also delete webhooks and slash ↵Chris2017-07-311-0/+3
| | | | commands (#7028)
* PLT-5308 Caching layer part 2 (#6973)Christopher Speller2017-07-311-2/+0
| | | | | | | | | | | | * Adding Reaction store cache layer example * Implementing reaction store in new caching system. * Redis for reaction store * Adding redis library * Adding invalidation for DeleteAllWithEmojiName and other minor enhancements
* PLT-6595-Server: Job Management APIs. (#6931)George Goldberg2017-07-201-0/+1
| | | | | | | | * PLT-6595-Server: Job Management APIs. * MANAGE_JOBS Permission * Fix test.
* PLT-6475: Elasticsearch Indexing Worker. (#6879)George Goldberg2017-07-111-0/+1
|
* PLT-6916: Redesign the jobs package and Jobserver. (#6733)George Goldberg2017-07-071-3/+7
| | | | | | | | | | | | | | 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-1/+1
|
* Add some basic sorting support for GET /users endpoint (#6801)Joram Wilander2017-06-301-1/+2
|
* PLT-6080 moving clustering to memberlist (#6499)Corey Hulen2017-06-191-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-6472: Basic Elastic Search implementation. (#6382)George Goldberg2017-05-181-0/+1
| | | | | | | | | | | | | | * PLT-6472: Basic Elastic Search implementation. This currently supports indexing of posts at create/update/delete time. It does not support batch indexing or reindexing, and does not support any entities other than posts yet. The purpose is to more-or-less replicate the existing full-text search feature but with some of the immediate benefits of using elastic search. * Alter settings for AWS compatability. * Remove unneeded i18n strings.
* PLT-6019: Add APIv4 Endpoint for restoring Channels (#6263)Robin Naundorf2017-05-151-0/+1
|
* Add API Endpoint for deleted Channels (#5889)Robin Naundorf2017-05-091-0/+1
|
* PLT-6355: Use separate Read Replicas for Search. (#6216)George Goldberg2017-05-011-0/+1
|
* Creating common token store and moving email invites and verification to it ↵Christopher Speller2017-04-271-6/+6
| | | | (#6213)
* Refactor OAuth 2.0 code into app layer (#6037)Joram Wilander2017-04-121-3/+3
|
* 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 /users/{user_id}/posts/flagged (#5984)Saturnino Abril2017-04-051-0/+1
| | | | | | * APIv4 GET /users/{user_id}/posts/flagged * change permission check
* APIv4 post /teams/search (#5931)Saturnino Abril2017-04-031-0/+2
|
* Add store unit tests and add make target for testing store with postgres (#5925)Joram Wilander2017-04-031-1/+0
| | | | | | | | * Add store unit tests and add make target for testing store with postgres * Remove postgres target form test-server target * Fix audit test
* PLT-6162: Search for users not in a given team. (#5943)George Goldberg2017-04-031-0/+1
|
* PLT-5483 Fix bug where flagged posts endpoint returned posts on other teams ↵Joram Wilander2017-03-311-0/+1
| | | | | | | | (#5765) * Fix bug where flagged posts endpoint returned posts on other teams * Include flagged posts from DMs/GMs
* PLT-2713 Added ability for admins to list users not in any team (#5844)Harrison Healey2017-03-291-0/+1
| | | | | | * PLT-2713 Added ability for admins to list users not in any team * Updated style of unit test
* PLT-6083: API to get users not in a specific team. (#5888)George Goldberg2017-03-291-0/+2
|
* APIv4 post /channels/ids (#5845)Saturnino Abril2017-03-271-0/+1
| | | | | | * APIv4 post /channels/ids * updated enpoint as /teams/{team_id}/channels/ids
* Implement POST /users/search endpoint for APIv4 (#5822)Joram Wilander2017-03-231-0/+1
| | | | | | | | | | * Implement POST /users/search endpoint for APIv4 * PLT-2713 Added store functions for searching users that don't have a team * PLT-2713 Added 'without_team' option when searching users * PLT-2713 Added 'without_team' option when searching users (v4)