Commit Graph

393 Commits

Author SHA1 Message Date
Ibrahim Serdar Acikgoz
0e42613aef cmd: remove platform binary (#17712) 2021-06-04 10:32:50 +03:00
Miguel de la Cruz
b89216d1ad Adds focalboard v0.6.7 as a prepackaged plugin (#17686) 2021-06-02 16:13:51 +02:00
Claudio Costa
3681cd3688 [MM-32390] Config logic refactor (#17578)
* Replace config generator

* Cleanup

* Some renaming and docs additions to add clarity

* Cleanup logging related methods

* Cleanup emitter

* Fix TestDefaultsGenerator

* Move feature flags synchronization logic out of config package

* Remove unnecessary util functions

* Simplify load/set logic

* Refine semantics and add some test to cover them

* Remove unnecessary deep copies

* Improve logic further

* Fix license header

* Review file store tests

* Fix test

* Fix test

* Avoid additional write during initialization

* More consistent naming

* Update app/feature_flags.go

Co-authored-by: Christopher Speller <crspeller@gmail.com>

* Update config/store.go

Co-authored-by: Christopher Speller <crspeller@gmail.com>

* Update config/store.go

Co-authored-by: Christopher Speller <crspeller@gmail.com>

* Update config/store.go

Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>

* Move FF synchronizer to its own package

* Remove unidiomatic use of sync.Once

* Add some comments

* Rename function

* More comment

Co-authored-by: Christopher Speller <crspeller@gmail.com>
Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
2021-05-19 13:30:26 +02:00
Jesse Hallam
bb35a29ed9 Pre-package Incident Collaboration v1.9.3 (#17585)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-05-10 09:47:41 -03:00
Ben Schumacher
dc7a425e77 [MM-34918] Update prepackaged version of autolink and GitHub (#17465) 2021-04-28 08:29:55 +02:00
Carlos Tadeu Panato Junior
b0279a432d Updates on CI (#17484)
* moving mattermost-ver and golangci out from the build step

* adjusting resource class and update image for check-mocks job
2021-04-26 16:17:52 +02:00
Doug Lauder
ff657bfdef sync profile images (#17375)
support for synchronizing user's profile image for shared channels.
2021-04-22 17:48:09 -04:00
Allan Guwatudde
0b2c0832f1 [MM-33662] - Mock out CWS in enterprise code (#17305)
* [MM-33662] - Mock out CWS in enterprise code

* Feedback impl

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-04-22 15:25:56 +03:00
Jesús Espino
35d00b4644 Enable the errorAssertions govet check for mattermost-server code (#17346)
* Enable the errorAssertions govet check for mattermost-server code

* Removing unnecesary change

* Fixing some tests

* Fixing tests

* Fixing more after merge

* Fixing new offending entries

* Fixing small vet checks

* Fixing new cases detected by govet

* Fixing remote_cluster_test errors

* Fixing assertion

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-04-12 12:51:31 +02:00
Doug Lauder
02196e04fa MM-27493 Shared channels (MVP) (#17301)
Remote Cluster Service
- provides ability for multiple Mattermost cluster instances to create a trusted connection with each other and exchange messages
- trusted connections are managed via slash commands (for now)
- facilitates features requiring inter-cluster communication, such as Shared Channels
Shared Channels Service
- provides ability to shared channels between one or more Mattermost cluster instances (using trusted connection)
- sharing/unsharing of channels is managed via slash commands (for now)
2021-04-01 13:44:56 -04:00
Jesse Hallam
e3ac469ec6 pre-package Incident Collaboration v1.7.0 (#17234) 2021-03-26 10:53:50 -03:00
Agniva De Sarker
b950125d4e MM-33945: Update dependencies (#17201)
* MM-33945: Update dependencies

Ran `make update-dependencies`

https://mattermost.atlassian.net/browse/MM-33945

```release-notes
NONE
```

* fix test
2021-03-25 14:45:13 +05:30
Agniva De Sarker
4aac52bced Makefile: Refactor test-server-race (#17196)
test-server-race wasn't using the same set of steps
that the test-server step did. Therefore one test was failing.

Refactored it such that scripts/test.sh can be used to run
normal and race tests as well

```release-note
NONE
```
2021-03-22 23:11:50 +05:30
Alejandro García Montoro
c40f898bd0 Bump Incident Collaboration plugin to v1.6.0 (#17143)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-03-16 09:55:06 +01:00
Martin Raymond Kraft
58dce5930e [MM-31094] Replication Lag (#16888)
* MM-31094: Adds tooling to develop and test using a MySQL instance with replication lag. Adds some lazy lookups to fallback to master if results are not found.

* MM-31094: Removes mysql-read-replica from default docker services.

* MM-31094: Switches (store..SessionStore).Get and (store.TeamStore).GetMember to using context.Context.

* MM-31094: Updates (store.UsersStore).Get to use context.

* MM-31094: Updates (store.PostStore).Get to use context.

* MM-31094: Removes feature flag and config setting.

* MM-31094: Rolls back some master reads.

* MM-31094: Rolls a non-cache read.

* MM-31094: Removes feature flag from the store.

* MM-31094: Removes unused constant and struct field.

* MM-31094: Removes some old feature flag references.

* MM-31094: Fixes some tests.

* MM-31094: App layers fix.

* MM-31094: Fixes mocks.

* MM-31094: Don't reparse flag.

* MM-31094: No reparse.

* MM-31094: Removed unused FeatureFlags field.

* MM-31094: Removes unnecessary feature flags variable declarations.

* MM-31094: Fixes copy-paste error.

* MM-31094: Fixes logical error.

* MM-30194: Removes test method from store.

* Revert "MM-30194: Removes test method from store."

This reverts commit d5a6e8529b.

* MM-31094: Conforming to make's strange syntax.

* MM-31094: Configures helper for read replica with option.

* MM-31094: Adds some missing ctx's.

* MM-31094: WIP

* MM-31094: Updates test names.

* MM-31094: WIP

* MM-31094: Removes unnecessary master reads.

* MM-31094: ID case changes out of scope.

* MM-31094: Removes unused context.

* MM-31094: Switches to a helper. Removes some var naming changes. Fixes a merge error.

* MM-31094: Removes SQLITE db driver ref.

* MM-31094: Layer generate fix.

* MM-31094: Removes unnecessary changes.

* MM-31094: Moves test method.

* MM-31094: Re-add previous fix.

* MM-31094: Removes make command for dev.

* MM-31094: Fix for login.

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-03-12 12:37:30 -05:00
Christopher Speller
f2e27a39da Moving pre-packaged to Incident Collaboration v1.5.2 (#17074) 2021-03-04 16:33:58 -08:00
Jesús Espino
78355ae2a7 Moving filesstore services into shared folder (#16940)
* Moving filesstore services into shared folder

* Fixing app-layers generation

* Renaming from filesstore to filestore
2021-03-02 14:37:21 +01:00
Christopher Speller
0363f19611 Moving pre-packaged to Incident Collaboration v1.5.0 (#17022)
* Moving pre-packaged to Incident Collaboration v1.5.0

* 1.5.1 instead

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-03-01 14:07:41 -08:00
Jyoti Patel
87f553283a [GH-15906][MM-22844] Redesign welcome and verify email. (#16824)
Automatic Merge
2021-02-26 05:22:26 +01:00
John Tzikas
809affd6d1 Create basic make commands for configuring golang-migrate (#16938)
* Create basic make commands for configuring golang-migrate

* Showcase full flow with new migrations

* Apply PR suggestions

* Migrate over team members

* Update mocks

* Fix specs

* Move columns that added after table creation onto separate stmts

* Put back gorp table definitions

* Fix issues with golang-migrate that not tracks underlying db driver

* Help prompt after new migration and consistent checksum for bindata

* Put gorp mapping back

* Apply PR suggestiong

* Close migrations after they run

* Add migration file to bindata check

* Updates needed

* Reset store_test

* Add copyright

* Apply PR suggestions

* Fix new circleci check

* Put back upgrade step for backwards comp

* Add store test to test migration directions

* Apply PR suggestions

* Add go-bindata to tools

* Apply PR suggestios

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-02-23 16:22:31 +02:00
Christopher Poile
58b3e8d92d update incident-collaboration to 1.4.0 (#16920)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-02-16 17:09:13 -05:00
Ibrahim Serdar Acikgoz
fd2e75bc5b add config telemetry check to vet tool (#16944)
* add config telemetry check to vet tool

* trigger CI
2021-02-16 12:24:23 +03:00
Jesse Hallam
c8fa4ac117 pre-package incident management v1.3.2 (#16875)
* pre-package incident management v1.3.2

* feature flags

* use repository name, not plugin id, in PLUGIN_PACKAGES

* disable remote marketplace in tests

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-02-08 16:31:13 -04:00
Jesse Hallam
4a8496ef7c MM-32569: prepackage Incident Collaboration 1.3.1 (#16866) 2021-02-04 17:18:32 -04:00
Agniva De Sarker
9572293c57 Bump up minimum required Go version (#16825)
The Makefile has a command to validate Go version.
We bump it up to require 1.15.
2021-01-29 14:01:13 +05:30
Ben Schumacher
d9a890e73f Update Bundled plugin packages for v5.32 (#16302) 2021-01-26 19:43:51 +01:00
Agniva De Sarker
f4255ed52e Enable govet check for empty strings (#16785)
Adds the check for https://github.com/mattermost/mattermost-server/issues/16674
in the Makefile

```release-note
NONE
```
2021-01-25 21:45:57 +05:30
Doug Lauder
b932e0fb25 MM-32248 streamline serialization auto-generation (#16780)
* streamline serialization auto-gen
2021-01-24 23:58:26 -05:00
Jesse Hallam
d5659adbd7 docker: prometheus and grafana for development (#16649) 2021-01-19 22:28:22 -04:00
John Tzikas
0391fe7de9 Add make command for running the app in an HA topology (#16702)
* Add make command for running the app in an HA topology

* Tidy up conf files, remove unnecessary commands and add restart-haserver command

* Use the right flag for checking enterprise folder presence before ha setup
2021-01-18 19:38:44 +02:00
Agniva De Sarker
346c8b01b2 Fix go.mod to give priority to go mod tidy (#16685)
There is a race between go mod tidy and go mod vendor
due to https://github.com/golang/go/issues/37376.

However, if we give priority to go mod vendor, then
gopls complains of inconsistent vendoring. We make go mod tidy happy
as it's a more commonly used command than go mod vendor,
and is a common problem faced by other devs too
2021-01-13 19:14:52 +05:30
Elisabeth Kulzer
987eddce1f Add check for empty src translation strings (#16575)
* Add check for empty src translation strings

* Update check-deps version

* Fix translation and app layers and mocks

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-01-04 21:22:34 +01:00
Jesse Hallam
7773b17eff MM-30450: Pre-pacakge Incident Management v1.2.0 (#16576) 2020-12-18 13:57:56 -04:00
Jesse Hallam
cd9185fa23 MM-30801: pre-package channel export plugin (#16406)
* MM-30801: pre-package channel export plugin

The [channel export plugin](https://github.com/mattermost/mattermost-plugin-channel-export) complements [incident management](https://github.com/mattermost/mattermost-plugin-incident-management).

* only enable IM/CE by default on enterprise ready builds
2020-12-04 15:09:05 -04:00
Jesse Hallam
2ac83ffac7 MM-30800: prepackage incident management 1.1 (#16323)
* prepackage incident management v1.1 (#16195)

Fixes: https://mattermost.atlassian.net/browse/MM-30800

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>

* update telemetry whitelist

* newer version!

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-11-19 16:13:53 -04:00
Jason Paul Deland
e280aa1c63 Update to get latest release from S3 (#15952)
* Update to get latest release from S3

* Update mmctl to download to use S3

* Download MMCTL from S3

* Update download_mmctl_release.sh

* Update Makefile

* Update release.mk

* Update the script called, remove call to sub shell and clean up indentation

* Add quotes around THIS_BRANCH var

* Update script to support overriding the OS for packaging

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-10-16 20:27:50 -04:00
Eli Yukelzon
c298678663 MM-28835 Configure/update notices setting for TeamAdmin (#15632) 2020-09-29 15:17:38 +03:00
Ashish Bhate
ee76ad435b [MM-28303]: check if mmctl exists before checking on Github and reduce requests to Github (#15387)
Summary:
Every make call would ping Github to find out the mmctl version to download. Each check made 4 requests to Github. So every make execution resulted in 4 requests to Github. This leads to frequent rate-limit errors from Github.
In this PR we check for the mmctl version only if mmctl doesn't already exist. We also print a more helpful error message.
Reduce the number the number of requests to Github from 4 to 2.

Ticket Link:
https://mattermost.atlassian.net/browse/MM-28303
2020-09-24 14:54:57 +05:30
Ben Schumacher
d535e66638 [MM-28520] Update bundled version of nps to 1.1.0 (#15537) 2020-09-23 18:00:08 +02:00
Eli Yukelzon
4e9ddd4686 MM-27918 In-Product notices support (#15316) 2020-09-21 10:28:46 +03:00
Jesse Hallam
1337fa919c MM-28103: prepackage incident-response (#15360)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-09-10 21:05:20 -03:00
Jesús Espino
44079785eb Moving diagnostics into a service (#14832)
* Moving diagnostics into a service

* Fixing golint checks

* Fixing tests

* Renaming from diagnostics to telemetry

* Adding missing files

* Initializing telemetry earlier in the server startup

* Fixing tests

* Adding a log for the telemetryID initialization error

* Addressing PR review comments

* Fixing merge problem

* Removing some extra Diagnostics mentions

* Making tests pass
2020-09-08 20:30:54 +02:00
Jason Deland
953899ad95 Updating the mmctl process to set the value once and than use it. Also added the basic auth code from agniva 2020-09-02 18:32:10 -04:00
Ibrahim Serdar Acikgoz
2b1da58e6d make test: ignore data directory while running make test (#15346)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-08-31 13:01:12 +02:00
Elisabeth Kulzer
c368dc7838 Implement empty translation check. (#15364) 2020-08-31 10:43:09 +02:00
Agniva De Sarker
e1ca3e348f MM-27512: Use an authenticated user to bump up request rate limit (#15251)
* MM-27512: Use an authenticated user to bump up request rate limit

An unauthenticated user can only make 60 requests per hour which means 1
request every minute. This can lead to frequent rate limit errors while
getting the latest release.

We change that to use an authenticated user which is already available
in the CI. This moves us to make 5000 requests per hour.

We also add additional logging in the Makefile targets in case
the command fails again so that it's clear what has happened, and not return
cryptic 404 errors again.

Ideally, we should be able to inspect the output of the curl command, but since
the output value of the entire bash script is fed into the variable, it is a bit
difficult to print debug output.

If this still gives error, then we need to either use a cached artifact somehow
or add additional logging and add a retry logic on top of it.

* fix mistake
2020-08-18 19:42:12 +05:30
Agniva De Sarker
91a76b2df9 MM-27456: Use reflect-free serialization for hot structs (#15171)
Automatic Merge
2020-08-13 03:35:57 -04:00
Claudio Costa
9333b7d896 Start required docker services before running tests (#15217) 2020-08-11 09:41:23 +01:00
Agniva De Sarker
fb0fa2a726 MM-26882: Ensure to start docker containers during test (#15113)
* MM-26882: Ensure to start docker containers during test

This starts up docker containers which can help avoid failures
during a test run if a developers forgets to manually start them.

* Start LDAP if EE build
2020-07-29 20:21:15 +05:30
Ashish Bhate
7e3d76b9a2 [MM-26886]: check enterprise prereqs before running tests (#15083) 2020-07-22 16:59:12 +05:30