summaryrefslogtreecommitdiffstats
path: root/app
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | Stop re-wrapping password reset email error in another error (#9382)Harrison Healey2018-09-101-5/+1
| |
* | MM-12007 Add max dimensions to emoji images (#9379)Harrison Healey2018-09-101-3/+10
| |
* | MM-11855 Add App.HTTPService to allow mocking of HTTP client (#9359)Harrison Healey2018-09-0710-49/+179
| | | | | | | | | | | | * MM-11855 Add App.HTTPService to allow mocking of HTTP client * Initialize HTTPService earlier
* | Merge release-5.3Carlos Tadeu Panato Junior2018-09-032-2/+143
|\|
| * MM-11693 Allow connections to /plugins for interactive message buttons. (#9333)Christopher Speller2018-09-022-2/+143
| | | | | | | | | | | | | | | | * Allow connetions to /plugins for interactive message buttons. * Adding siteurl to exclusions for AllowedUntrustedInternalConnections * Adding subpath support for allowing interactive message buttons plugin connections.
* | add megacheck as makefile target (#9288)Daniel Schalla2018-09-0313-43/+25
|/ | | | | | | | | | | | | | | | | | | | | | | | | Fix code issues in channel_test.go Fix Channel Test Issues detected by Megacheck Fix API Emoji Test Issues detected by Megacheck Fixed API Issues Reported by Megacheck Fixed App issues reported by megacheck Remaining fixes removed test added by mistake from old HEAD gofmt Store Fixes simplified returns Fix test for multi member channel delete revert to delete unused function
* MM-11710 Add a check to webhook messages to populate username from DM ↵Sudheer2018-08-301-1/+1
| | | | channel for email subject (#9314)
* Add GetLDAPUserAttributes method to the plugin API (#9326)Joram Wilander2018-08-291-0/+16
|
* MM-11270: Forbid react/de-react in archived channels (#9323)Jesús Espino2018-08-291-39/+44
|
* 9304 added the attachments import to direct post (#9308)Pradeep Murugesan2018-08-293-3/+64
|
* MM-10532: Add EnableSyncWithLdapIncludeAuth config (#9319)Jesús Espino2018-08-281-2/+3
|
* Feature/search after before on (#9219)Dmitry Samuylov2018-08-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | * initial implementation of after, before, on search flags allowing to restrict the search to a specific day or a date range * missed setting beforeDate in SearchParams in one place * fixed condition when only flags are used for search without any plain terms * changed date format used for after/before/on flags to be in ISO8601 format as suggested in PR comments, added a helper function to pad month and day with zeroes allowing the user user either format, with or without leading zeroes * corrected expected compare to date setting for the TestParseDateFilterToTimeISO8601 test * fixed a bug for the scenario when you only have the date flags without any terms, added a couple of tests for that scenario * updated the date filter logic to use parameters to construct the query instead of simply appending strings together, as suggested in the pull request comments * added search unit test using date flags * added a helper function to create a test post with a createat date manually set, updated the test for search using date flags to create test posts with different createat dates to be able to better test the functionality * MM-11817 Add support for after/before/on search flags with Elasticsearch * add support to search posts to perform the search in context of the client's timezone when filtering by createat date using on: after: before: flags * updated tests to match the new signature
* MM-11327: Restrict Teams by Email (#9142)Gabe Van Engel2018-08-282-51/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Check a team's AllowedDomains setting before adding users to the team. * Updated AddUser tests to validate AllowedDomains restriction. * Updated variable name to match convention. * Removed AllowedDomains from team sanitization. * Update AppError's Where to match the calling function. * Added tests for user matching allowedDomains, and multi domain values of allowedDomains. * Added test to make sure we block users who have a subdomain of a whitelisted domain. * Revert "Removed AllowedDomains from team sanitization." This reverts commit 17c2afea584da40c7d769787ae86408e9700510c. * Update sanitization tests to include dockerhost, now that we enforce AllowedDomains. * Added tests to verify the interplay between the global and per team domain restrictions. * Validate AllowedDomains property against RestrictCreationToDomains before updating a team. * Remove team.AllowedDomains from sanitization. * Add i18n string for the team allowed domains restriction app error.
* Adding IdAttribute setting for SAML (#9291)Jesús Espino2018-08-281-0/+1
| | | | | | | | * Adding IdAttribute setting for SAML * Adding Saml Id Attribute to the diagnostics information * Adding entry to default.json
* Support for interactive menus in message attachments (#9285)Joram Wilander2018-08-242-4/+58
|
* Merge release-5.2Carlos Tadeu Panato Junior2018-08-243-4/+4
|\
| * MM-11782: Make archived channels experimental and off-by-default. (#9281)George Goldberg2018-08-223-4/+4
| | | | | | | | | | | | * MM-11782: Make archived channels experimental and off-by-default. * Fix test.
* | MM-11572: Force correct order on messages generated in the bulk (#9244)Jesús Espino2018-08-241-0/+15
| |
* | MM-11348: Add telemetry for advanced permissions. (#9249)George Goldberg2018-08-231-32/+132
| |
* | Adding Permissions check and reactions function to plugins API (#9273)Jesús Espino2018-08-201-0/+24
| | | | | | | | | | | | * Adding reactions functions * Adding permissions checking in the plugins api
* | Add FileInfo and get file []byte in plugin api (#9269)Elias Nahum2018-08-201-0/+8
| | | | | | | | | | | | | | | | * Add FileInfo and get file []byte in plugin api * Regenerated plugin mocks * Rename ReadFileAtPath to ReadFile
* | Add PostId to PostActionIntegrationRequest (#9270)Hanzei2018-08-181-0/+1
|/
* MM-9747: Small fixes for attachments import (#9225)Jesús Espino2018-08-082-3/+59
| | | | | | * MM-9747: Small fixes for attachments import * Adding unit test RootId check in replies
* MM-11384: Add system install date information to the client config (#9218)Jesús Espino2018-08-083-0/+128
| | | | | | | | * MM-11384: Add system install date information to the client config * Fixing translation text * Fixes from Peer Review