summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Document minimum server version for plugin API methods (#9616)Hanzei2018-10-171-1/+45
|
* [MM-12608] Migrate to idiomatic error handling in the file `app/scheme.go` ↵Rafael George2018-10-171-28/+26
| | | | | | | | | | | | | | | | | | in the mattermost-server repo (#9592) * Add idiomatic error handling * Remove unused else statement and fix compilation errors * Add an inline error initialization The error its just been use once for the return no need to have it in separate lines. * Remove uneeded code - Remove extra line - Remove initializing in two lines when not needed
* [MM-12465] Added capability to export reactions of posts during bulk export ↵Wasim Thabraze2018-10-173-1/+75
| | | | | | | | | | (#9600) * Added capability to export reactions of posts * Added capability to export reactions of replies of a post * Added test case to test the reactions of a post
* Migrate to idiomatic error handling in app/notification_email.go (#9676)Hanzei2018-10-171-73/+28
|
* Migrate to idiomatic error handling in app/command.go (#9675)Hanzei2018-10-171-120/+130
|
* Set default ciphers, set tls 1.2 via config, set curve prefs (#9315)Daniel Schalla2018-10-169-10/+394
| | | | | | | | | | | | | | | | | Config Checks at StartUp Part1 Config Checks; Tests for TLS Server HSTS header implementation + tests make gofmt happy with new go version... make gofmt happy with new go version #2... fix logic bug fix typo Fix unnecessary code block
* MM-12368 Add create webhook-incoming command (#9566)Artur Mogozov2018-10-162-0/+97
|
* [MM-12362] Add CLI command 'config show' (#9536) (#9564)Mukul Rawat2018-10-152-2/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add the subcommand by creating a new Command instance. * Implemented the structure of the subcommand function. * Register our new command * Write some helper functions * finish the pretty print function * write some test for config show * Refactor and extract the tab printing functionality in its own function * Use app.Config() to create our config object & accept incoming changes * Removed reading the file, make helper functions return string and perform printing inside the command * Remove the previous code for checking presence of arguments and use 'cobra.NoArgs()' instead * Remove named return and instead declare the variable and then return it. * Remove printTab function and simplify printing out tabs using strings.Repeat * Add some functions to test the output * Update the usage and remove a comment * Update the print
* add GetEmojiByName method to plugin API (#9641)Charles Kenney2018-10-154-0/+61
|
* MM-11905: deactivate plugins before unregistering (#9666)Jesse Hallam2018-10-151-2/+1
| | | | | Plugins that listen for config changes might incorrectly re-register their commands before being /actually/ deactivated, leaving the new commands alive thereafter.
* [MM-12538] Migrate to idiomatic error handling the file `app/session.go` (#9590)Mukul Rawat2018-10-151-86/+93
| | | | | | | | | | in the mattermost-server (#9573) * Refactor and make error handling idiomatic * Golint gives a warning when using method parameters with names like 'deviceId', so rename them to `deviceID` * Change all ID back to Id
* [MM-12536] Migrate to idiomatic error handling the file `app/user_agent.go` ↵Mukul Rawat2018-10-151-39/+42
| | | | | | | | | | | | | | | in the mattermost-server (#9575) (#9576) * Make changes to function getPlatformName. * Make changes to the function getOSName, use switch statement inside instead of nested if * create helper function and make getBrowserVersion() more idiomatic * update getUAVersion * update getBrowserName * changes required in review done
* [MM-12363] Added Team archive command to archive a team by name (#9565)Wasim Thabraze2018-10-152-2/+98
| | | | | | | | * Added Team archive command to archive a team by name * Team archive command now uses SoftDelete method Team search and list command now shows archived teams with the term '(archived)' appended to them
* Added TextArea (longstring) to the docs in manifest to be rendered in the ↵Carlos Tadeu Panato Junior2018-10-151-0/+2
| | | | documentation (#9658)
* Add GetPostsBefore() to plugin API (#9651)Hanzei2018-10-154-0/+64
|
* add GetChannelsForTeamForUser to plugin api (#9646)Daniel Hodan2018-10-154-0/+63
|
* GH-9609: Add GetUsersInTeam in plugin API (#9642)Daniel Hodan2018-10-154-0/+63
| | | | | | * add GetUsersInTeam in plugin api * remove extra space in comment
* Add SearchChannels plugin api (#9657)Jason Mojica2018-10-154-0/+62
|
* [MM-12360] Created CLI command "config get" (#9534) (#9558)Mukul Rawat2018-10-152-0/+507
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added the get command to get the value of a config setting. * Depending on the config setting it can work on any depth of the setting. * Added test for the get command. * Add print tabs * Remove excess else statements * Return with the value and remove named return variable * Refactor the printMap function and return a string, remove side effects * Improve the error message, use the name argument * Use app.Config() to create our config object * Remove reading the file, make helper functions return string and perform printing inside the command * Remove the tab printing * Add extra quotes on the output * Remove extra code for checking arguments and replaced it with cobra.ExactArgs(1) * Remove buffer from printConfigValues * Add some tests to check the output of the command * Write test for the function 'structToMap' and test for complext nested structs * Write test for the function 'configToMap' and test for complext nested structs * Write test for the function 'printMap' and test for complext maps as input * Write test for the function 'printConfigValues' and test for complext maps as input * Remove commented code * Update the description of the command
* Add a delete brand image action on the APIv4 (#9552)Julien Levesy2018-10-154-0/+68
|
* GH-9633 Added plugin API method to return user's profile image (#9653)Alexander Akhmetov2018-10-155-1/+84
|
* Add GetPostsSince() to plugin API (#9649)Hanzei2018-10-154-0/+62
|
* Add GetPostThread() to plugin API (#9652)Hanzei2018-10-154-0/+61
|
* MM-12419: Flush channels from cache when deleted/restored. (#9625)George Goldberg2018-10-152-0/+4
|
* [MM-12537] Migrate to idiomatic error handling the file `app/status.go` in ↵Mukul Rawat2018-10-141-23/+23
| | | | | | | | | | the mattermost-server (#9574) (#9589) * Perform idiomatic error handling * Golint gives warning when using the variable name 'userId' so change it to 'userID' * Change all ID back to Id
* [MM-12606] Migrate to idiomatic error handling in the file `app/role.go` in ↵Mukul Rawat2018-10-131-17/+20
| | | | | the mattermost-server repo. (#9586) (#9593) * Refactor and make idiomatic changes in error handling
* [MM-12607] Migrate to idiomatic error handling in the file `app/saml.go` in ↵Mukul Rawat2018-10-131-3/+3
| | | | | | | the mattermost-server repo. (#9585) (#9587) * Refactor function 'GetSamlMetadata' * Run make check-style, make changes
* MM-12355: Add CLI command "command create" (#9569)Jason Mojica2018-10-132-0/+218
| | | | | | | | | | * Add create command * Create CreateCommand Tests * Change method flag description * Change nil test assertion
* [APIv4] add getChannelMembersTimezone (#9286)Carlos Tadeu Panato Junior2018-10-1311-7/+203
| | | | | | | | * add getChannelMembersTimezone * update per feedback review * add delimeter to error
* MM-11905: delete plugin commands on removal (#9601)Jesse Hallam2018-10-103-21/+147
| | | | | | | | * defer plugin tear down for testing * test expected plugin command unregistration * MM-11905: uninstall plugin commands on remove
* DeleteAll for KV (#9431)Daniel Schalla2018-10-1020-4/+501
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Expire K/V Values Regenerate Code pathfix Update Expiry on Update Check for Exit Signal gofmt Rewrote Go Routine Remove tempoarily cleanup loop fix expiretime TEST: Expired Watchdog as GoRoutine Check if Srv is nil Use Scheduler/Worker for Expired Key CleanUp add license fix scheduler job type; DoJob Restructuring Remove unused imports and constants move db migration from 5.4 to 5.5
* Add GetPostsForChannel method to plugin API (#9557)Akash Srivastava2018-10-104-0/+63
| | | Signed-off-by: Akash Srivastava <akash.srivastava@openebs.io>
* Refactored to rename "service terms" to "terms of service" (#9581)Harshil Sharma2018-10-0937-629/+630
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * #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-12519: simplify autocomplete team id checking (#9577)Jesse Hallam2018-10-092-19/+12
| | | This handles clients sending a team id in a direct message or group channel autocomplete, when it necessarily won't match. Just verify that the user has permission for the team in question, whenever it is provided.
* Added the changes requested for MM-8860: Bulk import email intervals (#8498) ↵Simone Salsi2018-10-087-0/+62
| | | | | (#9578) MM-8860: Bulk import email intervals (#8498)
* MM-12251: Add flag to MoveChannel to remove all deactivated users. (#9515)George Goldberg2018-10-088-6/+162
|
* 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
* Small fix in the webhook list error handling (#9567)Jesús Espino2018-10-051-1/+1
|
* #MM-12130 Added permission check for createServiceTerms API (#9556)Harshil Sharma2018-10-052-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * #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 * Fix incorrect key in en.json and changes some translations from service terms to terms of service * Improved translated messages * Added permission check in createServiceTerms API
* [MM-12484] Fix return search posts on date filters (#9568)Saturnino Abril2018-10-054-36/+154
| | | | | | * fix return search posts on date filters * add name to test cases
* MM-12357: Add CLI command "team list" (#9531)Ashutosh Kumar2018-10-051-0/+47
| | | | | | | | | | | | | | * (feat:command list)add command list for teams Signed-off-by: sonasingh46 <sonasingh46@gmail.com> * address review comments Signed-off-by: sonasingh46 <sonasingh46@gmail.com> * address review comments Signed-off-by: sonasingh46 <sonasingh46@gmail.com>
* MM-12371 Add webhook list command (#9528)Ben Echols2018-10-042-0/+135
| | | | | | | | | | | | | | | | * Added start of the webhook command * start of unit tests * created a simple hook for unit test * added outgoing as well * have it all working * Add license headers to the files * Addressing code review, fixed print reverted sql change
* Added missed translations (#9554)Jesús Espino2018-10-041-0/+60
|
* 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-034-0/+63
| | | Signed-off-by: Akash Srivastava <akash.srivastava@openebs.io>
* MM-11863 Add KVList method (#9467)Shobhit Gupta2018-10-039-0/+156
| | | | | | | | | | | | | | * Add KVList method * Add KVList method Add KVList method * Add pagination support * Change offset, limit to page, perPage * Rename constant
* Fix CMD Init. Error Checks (#9547)Daniel Schalla2018-10-031-1/+1
|
* Set a proper HTTP user-agent header (#9482)Andreas Linz2018-10-035-9/+46
| | | | | | | | | | | | | 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-036-53/+105
| | | | | | | | | | | | | | | | * 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-12367] Added CLI command 'team search' (#9512)Wasim Thabraze2018-10-032-0/+87
| | | | | | | | | | | | | | * Added 'search' sub-command for the command 'team' to search across teams with name * Addressed code review * Moved 'removeDuplicatesAndSortTeams' function to team.go Addressed more code reviews * Added unit test case for team search command * Added unit test case to test searching of teams by display name