Граф коммитов

11741 Коммитов

Автор SHA1 Сообщение Дата
Jesús Espino
187e4ac765 Unbinding the permission INVITE_GUEST from INVITE_USER (#12908) 2019-10-25 18:10:34 +02:00
Adrian
a622ba412e Use locale-agnostic Firefox download link (#12251)
This link redirects to the most suitable language for the user based on their browser's `Accept-Language` header.
2019-10-25 11:19:56 +02:00
Christopher Speller
89317487b8 Fixing inconsistant docker build containers. (#12911) 2019-10-25 11:00:43 +02:00
Carlos Tadeu Panato Junior
64a377c60c use the branch to tag the docker image and also build team edition (#12903) 2019-10-25 10:43:27 +02:00
Rajat Varyani
7cf7e7f238 [MM-18871] Update session in app instance in app layer (#12540) 2019-10-25 14:13:13 +05:30
Veda Depatla
7c230d542a replace fmt.sprintf (#12776)
* replace fmt.sprintf

* update error message

* Update app/ldap.go

Co-Authored-By: Jesse Hallam <jesse.hallam@gmail.com>

* Update app/ldap.go

Co-Authored-By: Jesse Hallam <jesse.hallam@gmail.com>
2019-10-24 23:26:37 -04:00
ptisserand
6ce97648f4 MM-19670: Migrate tests to use testify (#12883) (#12898)
* MM-19670: Migrate tests to use testify (#12883)

* MM-19670: (#12883) Applied changes requested in PR #12898

* MM-19670: (#12883) assert.Equal parameters are 'expected' and then 'actual'.
2019-10-24 22:55:58 -04:00
Hossein Ahmadian-Yazdi
b9329d1984 [MM-13704] Updated CLI "deleter user" to also permanently delete GroupMembers associated to user (#12858)
* [MM-13704] Updated CLI to set DeleteAt in groupmemebrs

* [MM-13704] Updated Mock Test

* [MM-13704] Refactored to use current pattern to write function

* [MM-13704] Small text change

* [MM-13704] updated translation

* [MM-13704] Updated params of error function

* [MM-13704] Fixed confusion between channel and group store

* [MM-13704] Addressed PR comments

* [MM-13704] Added test case

* [MM-13704] Fixed err declaration
2019-10-24 17:31:17 -04:00
Laura Pareja
4f8fd3e59e migrate tests from api4/status_test.go to testify (#12906) 2019-10-24 16:59:18 +02:00
Simon
caeadbec88 MM-19468 Migrate tests from "api4/command_test.go" to use testify (#12809)
* MM-19468 Migrate tests from "api4/command_test.go" to use testify

* swap expected and actual values during token regeneration test
2019-10-24 09:32:31 -04:00
Shobhit Gupta
cedaee99b8 Migrate tests from "api4/websocket_test.go" to use testify (#12896)
* Migrate tests to use testify

* Fix build

* Fix tests
2019-10-24 09:04:06 -04:00
Mrigank Krishan
0652e121ec use testify in "model/session_test.go" (#12644)
Migrate tests from "model/session_test.go" to use testify
2019-10-24 10:04:50 +01:00
Ioannis Mavroukakis
07cd32779d MM-394 convert remaining mailservice tests to require/assert (#12813) 2019-10-24 09:01:53 +02:00
Andre Polykanine
9fa6e80e55 Refactor app/notification_email.go for structure logging (#12740) 2019-10-24 07:44:01 +02:00
Harrison Healey
1234e68575 MM-19574 Don't return metadata for deleted posts (#12878) 2019-10-23 14:31:22 -04:00
Maurício Linhares
23aa193f28 Changes tests to use testify.require at api4/file_test.go fixe… (#12814) 2019-10-23 14:45:15 +02:00
Jesse Hallam
a96565671d MM-19477: model extra manifest data (#12823)
Model `HomepageURL` and `SupportURL` for use in listing plugins in the marketplace.
2019-10-23 10:45:58 +02:00
Joram Wilander
9307f75fe9 Add some group plugin APIs (#12180)
* Add group store GetByUser

* Add group store GetByName

* Add group plugin APIs

* Minor naming fixes

* Add minimum version comments
2019-10-22 14:38:08 -04:00
Nikhil Ranjan
fbf4d6d139 Convert store/storetest/user_access_token_store.go t.Fatal calls into assert/require calls (#12801)
* Convert store/storetest/user_access_token_store.go t.Fatal calls into assert/require calls

* more t.Fatal Calls converted
2019-10-22 21:47:15 +08:00
Rahul Verma
c8814b4219 Converted store/storetest/bot_store.go t.Fatal calls into assert/require calls (#12838) 2019-10-22 14:22:06 +01:00
Phillip Ahereza
60572a00c8 Migrate tests from services/httpservice/client_test.go to testify (#12743) 2019-10-22 14:40:50 +02:00
Christopher Poile
c12c585fb8 [MM-19526] /code is rendering HTML incorrectly (#12840)
* text from /code command needs to be treated differently when processed

* PR comments
2019-10-22 08:39:49 -04:00
Shobhit Gupta
94db07f65f Migrate tests from "store/storetest/command_webhook_store.go" to use testify (#12773)
* Migrate tests to use testify

* Remove dangling semicolon

* Fix failing test

* Change from assert to require.Nil
2019-10-22 05:00:11 +08:00
Jesse Hallam
4f7bd2200d MM-18651: no spurious mentions on leaving channels (#12527)
Today, the server emits a system message containing one of `<username> left the channel.` or `<username> removed from the channel.` when such an event occurs.

While the client interprets this special kind of message to take into account the enduser's username display settings (e.g. to render `First Last left the channel.`), the server also processes this "message" to look for mentions.

With the user in question no longer in the channel, it incorrectly splits usernames containing a period into two tokens and tries to mentions users accordingly. So `christopher.poile` ends up trying to mention `christopher` and `poile`. If such a user exists, they receive a spurious mention for this event.

Change the message rendered by the server to explicitly prepend an `@`, which in turn is detected by the mention logic to avoid splitting. As above, this has no effect on the client-side rendered message.
2019-10-21 14:56:08 -03:00
Sascha Andres
e83f83fa85 MM-1946 Migrate tests from "web/web_test.go" to use testify #12794 (#12802)
* MM-1946 Migrate tests from "web/web_test.go" to use testify #12794

Also changed call in commented out test for client.

* refactor: re-introduce t.Run

* Update web/web_test.go

Co-Authored-By: Harrison Healey <harrisonmhealey@gmail.com>
2019-10-21 11:00:21 -04:00
Will Andrews
4c7220d69a changed from using t.Fatal to Require (#12774) 2019-10-21 16:27:42 +02:00
Ben Sooraj
4b127cd877 Migrate tests from "store/storetest/reaction_store.go" to use testify (#12752)
* testReactionDelete

* testReactionSave

* testReactionGetForPost

* testReactionDeleteAllWithEmojiName

* testReactionStorePermanentDeleteBatch

* testReactionBulkGetForPosts

* `assert` to follow convention with first parameter as `t`

* using semantic assertions instead

* removing unnecessary empty lines
2019-10-21 16:19:47 +02:00
Carlos Tadeu Panato Junior
709f407d33 update build image to go 1.13 (#12833)
* update build image to go 1.13

* Define TLS Max Version for Clients since TLS1.3 does not allow cipher suites to be configured
2019-10-21 15:31:29 +02:00
Carlos Tadeu Panato Junior
43161731fa fix bash to not build webapp when it is already built (#12834) 2019-10-21 15:14:23 +02:00
Ruslan Abelharisov
d10c524d34 Replace t.fatal with testify package functions (#12842) 2019-10-21 11:12:25 +02:00
Claudio Costa
3c06fc28ad Add parsing and validation for old filenames migration (#12827) 2019-10-18 17:21:23 +02:00
Jesse Hallam
8c151f1f2f MM-19516: fix production marketplace url (#12822)
We changed the production marketplace URL to `api.integrations.mattermost.com`, but I never backported https://github.com/mattermost/mattermost-server/pull/12378 to v5.16, and we shipped with the invalid marketplace.integrations.mattermost.com instead.

While we've added the old hostname to enable the functionality immediately for v5.16 customers, I'd like to patch this properly for an eventual future deprecation of the old hostname.

This change should be backported alongside the PR above.
2019-10-18 10:27:26 -03:00
Christopher Speller
e62471dff6 MM-18816 Adding ability to add users as another user to the plugin API. (#12562)
* Adding ability to add users as anouther user to the plugin API.

* Documentation feedback.
2019-10-17 16:11:26 -07:00
Nikhil Ranjan
d7ee3553fa Plugin framework: add ability to install other plugins to the… (#12232)
* add ability to upload other plugins to the plugin API

* generated client rpc glue code

* fix UploadPlugin API signature

* generated plugin mocks

* added upload plugin test

* removed unused comment

* using single line to call InstallPlugin with file Reader

* fix minimum server version

* added successful plugin upload test

* renamed UploadPlugin to InstallPlugin
2019-10-17 14:57:55 -04:00
Joshua Bezaleel Abednego
db97b49e7a store/storetest: migrate command_store.go to use testify (#12797)
* Modify the calls to t.Fatal to using require package

* Fixes according to suggestions
2019-10-17 10:45:40 -07:00
Shobhit Gupta
4a6cf29d4e Migrate tests to use testify (#12811) 2019-10-17 10:41:45 -07:00
Michael Kochell
8c94f48991 [MM-18831] Trim whitespace of Display Name when channel is cre… (#12380) 2019-10-17 10:39:27 -06:00
Michael Kochell
83bab2c125 [MM-19102] Enable debug flag for plugin check tests (#12588) 2019-10-17 10:38:47 -06:00
Agniva De Sarker
ee1f458bb1 Fix CI config (#12771)
* Fix CI config

- -mod=vendor flag was not being passed during the build stage, forcing
it to download everything again.
- Optimize the git clone of webapp with --depth=1 and use GIT_SSH_COMMAND to clone.
- Add $(GOFLAGS) to some other places which got missed out.

* Remove GOFLAGS from go list command

It does not work for Go 1.12. Need to fix later.
2019-10-17 18:38:21 +02:00
Rohan Julka
b8f6b2022e Migrate tests from api4/system_test.go to use testify (#12812) 2019-10-17 17:25:13 +02:00
WonChul Heo
bbb7308124 [MM12767] - Migrate tests from "store/storetest/license_store.… (#12769) 2019-10-17 17:05:14 +02:00
Ogundele Olumide
47e3685419 MM-18270 Refactor "app/server.go" to use structured logging (#12505) 2019-10-17 17:04:57 +02:00
aqche
54181e4015 Migrate tests from 'store/sqlstore/utils_test.go' to use testify (#12815) 2019-10-17 07:24:06 -07:00
Peeyush Gupta
fffcef0b00 MM-19234 Migrate tests from model/team_member_test.go to use testify (#12642) 2019-10-17 09:22:55 -04:00
Jesse Hallam
ff160a4d32 MM-19048: avoid error spam during CI builds (#12626)
Detect the IS_CI flag and skip trying to rewrite subpaths that won't necessarily exist.
2019-10-17 09:55:02 -03:00
pqzx
1ad0cb646f Migrate tests from "store/storetest/session_store.go" to use t… (#12805) 2019-10-17 14:36:17 +02:00
Ben Sooraj
c7e2689926 mlog standardisation for app/import.go (#12741)
* mlog standardisation for app/import.go

* using the corrent mlog.Field type for the error
2019-10-17 11:18:08 +01:00
Eli Yukelzon
66c66eef0d MM-19371 - Reply count disappears from pinned and flagged conv… (#12753) 2019-10-17 11:10:49 +03:00
Martin Kraft
c742d18828 MM-17477: Truncates group display name upon linking. (#12751) 2019-10-16 11:50:24 -04:00
Eli Yukelzon
4225977966 MM-19154 - Fix flaky test TestGroupStore/MySQL/GetGroups/Get_g… (#12705) 2019-10-16 12:55:36 +03:00