summaryrefslogtreecommitdiffstats
path: root/app
Commit message (Collapse)AuthorAgeFilesLines
...
* MM-12251: Add flag to MoveChannel to remove all deactivated users. (#9515)George Goldberg2018-10-082-3/+36
|
* MM-12323: Fix trailing slash in ServiceSettings.SiteURL (#9463)Hanzei2018-10-052-4/+31
| | | | | | | | | | * Fix trailing slash in ServiceSettings.SiteURL * Add test for LoadConfig * Fix test * Simplify test
* Move CustomServiceTermsEnabled to the correct table in diagnostics (#9521)Jason Blais2018-10-041-1/+1
| | | | | | * Move CustomServiceTermsEnabled to the correct table in diagnostics * Fix style error
* Add GetChannelMembers method to plugin API (#9525)Akash Srivastava2018-10-031-0/+4
| | | Signed-off-by: Akash Srivastava <akash.srivastava@openebs.io>
* MM-11863 Add KVList method (#9467)Shobhit Gupta2018-10-033-0/+57
| | | | | | | | | | | | | | * Add KVList method * Add KVList method Add KVList method * Add pagination support * Change offset, limit to page, perPage * Rename constant
* Set a proper HTTP user-agent header (#9482)Andreas Linz2018-10-031-2/+4
| | | | | | | | | | | | | Previously, mattermost-server would always request with the default user-agent of Go's net/http package that is `Go-http-client/1.1` or something similar. This has several disadvantages, one is that the default user-agent made it pretty hard to distinguish mattermost requests from other service requests in a network log for example. Now a user-agent of the form `mattermost-<current-version>` is set in the client. - [x] Added or updated unit tests (required for all new features)
* MM-12193: remove auto unmarshalling (#9519)Jesse Hallam2018-10-031-8/+32
| | | | | | | | | | | | | | | | * MM-12193: remove auto configuration unmarshalling Since plugin hook events are called concurrently, there's no way for the plugin framework to coordinate safe access to the automatically unmarshalled configuration fields. Remove this functionality, and update documentation to illustrate a safe way to do this. * better Fprint example * fix unit tests * log when OnConfigurationChange fails through OnActivate * clarify lifecycle when OnConfigurationChange returns an error * call SetAPI even if OnConfigurationChange not implemented
* MM-10699: Disallow renaming direct and group message channels (#9518)Jesús Espino2018-10-022-7/+48
| | | | | | * MM-10699: Disallow renaming direct and group message channels * Replacing errors.New with errors.Wrapf
* MM-12067: Add SetDefaultProfileImage to reset the user profile image to a ↵Jesús Espino2018-10-022-27/+83
| | | | | | | | | | | | generated one (#9449) * MM-12067: Add SetDefaultProfileImage to reset the user profile image to a generated one * Allow to get the default profile image for my user * Allowing to reset the last update image date to 0 * PR reviews
* fix gofmt for go 1.11 (#9516)Carlos Tadeu Panato Junior2018-10-011-51/+51
| | | | | | | | * fix gofmt for go 1.11 * fix test * comment out one test
* MM-12110: Don't /invite or /kick deactivated users. (#9494)George Goldberg2018-10-014-16/+78
|
* Migrate to idiomatic error handling app/notification*.go (#9487)Jesús Espino2018-10-013-73/+81
|
* Idiomatic error handling for app/{job,license,login}.go (#9474)Jesús Espino2018-09-283-50/+46
|
* Add EnablePublicChannelsMaterialization to diagnostics.go (#9495)Jason Blais2018-09-281-8/+9
| | | | | | | | * Fix style error in diagnostics.go * Add EnablePublicChannelsMaterialization to diagnostics.go * Fix build error
* MM-12080: Added some extra logging to cluster leader changed. (#9475)George Goldberg2018-09-272-1/+6
| | | | | Purpose of this is to make in-field debugging of cluster leader issues (particularly around duplicate job scheduling) easier to debug from production server logs.
* MM-12013: Fix post-permission checks to cascade for DM/GM channels. (#9476)George Goldberg2018-09-271-1/+3
|
* Fixing non elastic search paging. (#9471)Christopher Speller2018-09-271-0/+5
|
* Add plugin API methode to return the current server version (#9429)Hanzei2018-09-271-0/+4
|
* Idiomatic error handling for app/import*.go (#9473)Jesús Espino2018-09-273-125/+107
|
* MM-11567: Autocomplete search in: for DMs and GMs (#9430)Jesús Espino2018-09-271-3/+51
| | | | | | | | | | * MM-11567: Autocomplete search in: for DMs and GMs * Adding unit tests * Allowing to search Direct Messages in the autocompletion * Fix it in TE
* When leave a channel the push notification can fail (#9478)Jesús Espino2018-09-271-1/+7
|
* #MM-12130 changes for custom service terms (#9450)Harshil Sharma2018-09-268-2/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * #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
* Move HTTPService and ConfigService into services package (#9422)Harrison Healey2018-09-263-91/+6
| | | | | | | | * Move HTTPService and ConfigService into utils package * Re-add StaticConfigService * Move config and http services into their own packages
* MM-7188: Cleaning push notification on every read, not only on channel ↵Jesús Espino2018-09-268-100/+209
| | | | | | | | | | | | switch (#9348) * MM-7188: Cleaning push notification on every read, not only on channel switch * Removed unnecesary goroutine * Fixing tests * Applying suggestion from PR
* Adding paging to elasticsearch API. (#9425)Christopher Speller2018-09-261-2/+2
|
* Idiomatic error handling for app/file.go (#9456)Jesús Espino2018-09-251-48/+56
|
* Migrate to idiomatic error handling app/a*.go and app/b*.go (#9455)Jesús Espino2018-09-255-84/+91
|
* Migrate to idiomatic error handling app/authentication.go (#9411)Jesús Espino2018-09-241-27/+35
|
* Add missing dots (fixing compilation error on go 1.11) (#9448)Jesús Espino2018-09-241-1/+1
|
* MM-11707: Change the default setting for EDIT_OTHERS_POSTS (#9447)Jesús Espino2018-09-241-6/+3
| | | | | | | | | | | | * MM-11707: Removes edit_others_posts permission from the team_admin role in MakeDefaultRoles(). * MM-11707: Tests fix. * MM-11707: Update test store. * MM-11707: Allow to change the permission for edit the others posts on TE * Fixing tests
* Idiomatic error handling for app/c*.go (#9423)Jesús Espino2018-09-243-18/+20
|
* Idiomatic error handling for app/e*.go (#9426)Jesús Espino2018-09-244-98/+109
|
* Move file backend to its own service (#9435)Jesús Espino2018-09-203-4/+7
| | | | | | * Move file backend to its own service * Moving utils/inbucket to mailservice package
* Improving token lookup. (#9436)Christopher Speller2018-09-201-5/+7
|
* Add ChannelId and TeamId to PostActionIntegrationRequest (#9384)Hanzei2018-09-192-8/+19
| | | | | | * Add ChannelId and TeamId to PostActionIntegrationRequest * Add tests
* Migrate to idiomatic error handling the first half to the app/channel.go (#9413)Jesús Espino2018-09-171-232/+243
|
* MM-11700 Clean up handling of user display names for notifications (#9343)Harrison Healey2018-09-186-72/+265
| | | | * MM-11700 Clean up handling of user display names for notifications
* MM-11781: Basic Data Export Command Line. (#9296)George Goldberg2018-09-173-40/+432
| | | | | | | | | | | | | | | | * MM-11781: Basic Data Export Command Line. * ChannelStore new unit tests. * TeamStore new unit tests. * Unit test for new UserStore function. * Unit tests for post store new methods. * Review fixes. * Fix duplicate command name.
* [MM-11860]: Expose slack attachment parsing functions in the model package ↵Charles Birk2018-09-174-30/+5
| | | | | | (#9351) Refactored parseSlackAttachment functions from https://github.com/mattermost/mattermost-server/blob/master/app/post.go#L312 into model/slack_attachments.go so that plugins have access to them.
* MM-12045: Fix MFA for ldap accounts (#9420)Jesús Espino2018-09-171-2/+5
|
* MM-11424 Extend bulk import to support themes across teams(#9305) (#9419)FurmanovD2018-09-176-14/+112
| | | | | | | | | | | | | | | | | * MM-11424 Extend bulk import to support themes across teams(#9305) Also added: Advanced Settings: +'feature_enabled_markdown_preview' +'formatting' Sidebar Settings: +'show_unread_section' * MM-11424 (PR review) user teams' theme validator test updated * MM-11424 (PR review) added test with valid JSON of invalid theme(by structure) JSON string contains numeric and JSON object fields, not just a correct "string":"string" map
* fixing log messages (#9341)Carlos Tadeu Panato Junior2018-09-173-5/+5
| | | | | | | | | | | | * fixing log messages * update per review * Update notification.go * Update server.go * Update notification.go
* Migrate to idiomatic error handling the second half to the app/channel.go ↵Jesús Espino2018-09-171-225/+242
| | | | (#9414)
* MM-11734: better plugin `error` handling (#9405)Jesse Hallam2018-09-131-2/+78
| | | | | | | | * MM-11734: encode unregistered error implementations as an ErrorString * MM-11734: test error string handling * more idiomatic error handling
* MM-11886: materialize channel search (#9349)Jesse Hallam2018-09-131-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | * materialize PublicChannels table Introduce triggers for each supported database that automatically maintain a subset of the Channels table corresponding to only public channels. This improves corresponding queries that no longer need to filter out 99% DM channels. This initial commit modifies the channel store directly for easier code reviewing, but the next wraps an experimental version around it to enable a kill switch in case there are unforeseen performance regressions. This addresses [MM-11886](https://mattermost.atlassian.net/browse/MM-11886) and [MM-11945](https://mattermost.atlassian.net/browse/MM-11945). * extract the experimental public channels materialization Wrap the original channel store with an experimental version that leverages the materialized public channels, but can be disabled to fallback to the original implementation. This addresses MM-11947. * s/ExperimentalPublicChannelsMaterialization/EnablePublicChannelsMaterialization/ * simplify error handling * move experimental config listener until after store is initialized
* MM-11230: Make permissions checks in commands failsafe. (#9392)George Goldberg2018-09-1212-128/+577
| | | | Also add additional unit tests to make sure the permissions tests are completely solid.
* MM-11725: Add specific autocomplete endpoint for search autocomplete (#9337)Jesús Espino2018-09-111-0/+10
|
* MM-11895: Don't crush user-provided GET parameters on slash command URLs (#9372)alezakos2018-09-111-1/+5
|
* Merge release-5.3Carlos Tadeu Panato Junior2018-09-101-2/+4
|\
| * Speed up search results post selection. (#9380)Christopher Speller2018-09-101-2/+4
| |