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

194 Коммитов

Автор SHA1 Сообщение Дата
Mattermod
17ea088eb4 Update latest version to 6.4.1 (#19680)
Co-authored-by: Mmbot <mmbot@mattermost>
2022-03-03 13:44:19 +02:00
Agniva De Sarker
3f52bd197a GraphQL (part 2): Model changes and resolvers (#19486)
This PR adds the necessary resolvers to support
the graphQL front-end. Some additional methods
need to be added to the model structs to support
this. Comments have been made to clarify their purpose.

There is a slight duplication of code in the api layer.
But eventually that's going to go away when we move
away from the REST API entirely.

The schema is in api4/schema.graphqls and gets compiled
into the binary as an asset.

The GraphiQL editor url is at GET /api/v5/graphql.

Everything is behind the feature flag MM_FEATUREFLAGS_GRAPHQL.

```release-note
NONE
```
2022-02-11 12:37:05 +05:30
Josh Soref
294bd44971 [GH-19267] Spelling comments (#19268)
* spelling: comments

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-01-20 10:07:27 +05:30
Carlos Tadeu Panato Junior
36008ae412 fix mmctl download script when using as stand alone script (#19143) 2021-12-16 11:31:57 +01:00
Carlos Tadeu Panato Junior
c317254954 build: add mmctl to arm64 packages (#19090)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-12-03 15:37:37 +01:00
Carlos Tadeu Panato Junior
2865ad9221 Revert "DOPS-602: Change how mmctl gets packaged and locally fetched. (#18335)" (#18930)
This reverts commit 5ede63badc.
2021-11-03 14:54:34 +01:00
Elisabeth Kulzer
5ede63badc DOPS-602: Change how mmctl gets packaged and locally fetched. (#18335)
* DOPS-602: Change how mmctl gets packaged and locally fetched.
2021-11-02 14:45:02 +01:00
James Addison
8c4e6a85b3 Add .gitlab-ci.yml-compatible continuous integration configuration (#17844)
* Add .gitlab-ci.collabora.yml continuous integration configuration

* Relocate custom GitLab CI/CD configuration file to 'contrib' directory

* Fixup: .gitlab-ci.collabora.yml -> .gitlab-ci.yml

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-10-29 13:16:45 +02:00
Carlos Tadeu Panato Junior
fc712f5fdf default mm package to release 6.0.0 (#18667) 2021-10-18 13:48:55 +02:00
Carlos Tadeu Panato Junior
d074c3d20d fix package name typo (#18665) 2021-10-13 16:01:32 +08:00
Carlos Tadeu Panato Junior
e95e0e95a8 build: add targets for linux/darwin arm64 and include those in the package (#18491)
* build: add targets for linux/darwin arm64 and include those in the package

* update based on feedback

* store arm64 targets
2021-10-12 11:12:32 +02:00
Carlos Tadeu Panato Junior
5120097a02 build: set 600 permission to config.json when packagin the app (#18490) 2021-10-01 09:40:11 -05:00
Carlos Tadeu Panato Junior
f27f7bfe79 Update base container image from alpine 3.12 to 3.14 (#18450)
* update default mm package to 5.39.0

* update base container image from alpine 3.12 to 3.14
2021-09-23 17:36:05 +02:00
Claudio Costa
9534f9fb62 Update schemas to include new indexes (#18313)
* Update schemas to include new indexes

* Increase local usability of gitlab scripts. (#18314)

* Increase local usability of gitlab scripts.

* Fix loading/saving SQL dumps

* Add logging to schema tests.

* Fix adding logs dir.

Co-authored-by: Claudio Costa <cstcld91@gmail.com>

Co-authored-by: Elisabeth Kulzer <elikul@elikul.de>
2021-09-01 09:00:49 +02:00
Joram Wilander
e9935e44bd Bump go.mod and docker go version to 1.16 (#18280)
* Bump go.mod go version to 1.16

* Bump docker build go version to 1.16.7
2021-08-27 08:08:03 -04:00
Mattermod
ddaa07e35f Update latest version to 5.38.1 (#18243)
Automatic Merge
2021-08-23 11:45:03 +02:00
Ben Cooke
ce081357e8 [MM-36445] Changing elastic search docker version (#18117)
* changing elastic docker version for testing

* fixing elastic issue

* temp dockerfile

* test

* removing command

* fixing dockerfile

* adding 7.0.0

* using elasticsearch 7

Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.local>
2021-08-18 11:26:05 -04:00
Devin Binnie
0dbaa48741 Change inbucket default port from 10080 to 9001 (#18145) 2021-08-18 09:31:25 -04:00
Martin Kraft
4db27ceda9 Switch to mysql/mysql-server docker image for ARM64 support. (#18137) 2021-08-16 09:23:21 -04:00
Carlos Tadeu Panato Junior
2982cc6f4e update mm server builder to use go 1.16.7 (#18107) 2021-08-10 18:53:35 +02:00
Mattermod
61e4e4d3fc Update latest version to 5.37.1 (#18058)
Co-authored-by: Mmbot <mmbot@mattermost>
2021-08-04 17:47:07 +02:00
Elisabeth Kulzer
04ef406bd6 Increase mysql version of gitlab docker-compose. (#17982)
Automatic Merge
2021-07-22 14:05:02 +02:00
Agniva De Sarker
4968657651 MM-37034: Bump the MySQL min version to 5.7 (#17919)
* MM-37034: Bump the MySQL min version to 5.7

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

```release-note
Minimum required MySQL version is now 5.7
```

* fix shadow warnings

```release-note
NONE
```

* Bumped to 5.7.12

```release-note
NONE
```

* update comment

```release-note
NONE
```

* refactor

```release-note
NONE
```

* fix lint error

```release-note
NONE
```

* fix2

```release-note
NONE
```

* add tests

```release-note
NONE
```

* simplify

```release-note
NONE
```
2021-07-21 16:38:39 +02:00
Carlos Tadeu Panato Junior
959834aefa update mattermost server build to use go 1.16.6 (#17969)
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2021-07-21 11:19:28 +02:00
Emil Velikov
a78a7c7b54 Split package target into per platform (#17692)
Currently the `package` make target handles all three platforms -
Windows, OSX and Linux. While doing it in surprisingly serial mode.

Split it up in 3, so that things are a bit faster and people can package
only what they need.

v2: Rebase (platform was removed)

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>

Co-authored-by: Emil Velikov <emil.velikov@collabora.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-07-19 14:35:21 +02:00
Mattermod
4ad0193d0a Bump version (#17932)
Co-authored-by: Mmbot <mmbot@mattermost>
2021-07-15 18:17:48 +02:00
Carlos Tadeu Panato Junior
eaa76e9529 go: upgrade builder image to use go1.16 (#17897)
* go: upgrade builder image to use go1.16
2021-07-14 13:39:19 +02:00
Elisabeth Kulzer
0765f27483 Enable e2e testing with docker-compose on GitLab (#17765)
* Make testing with docker-compose work on GitLab.

* Comment heavy jobs.

* Make testing with docker-compose work on GitLab.

* Comment heavy jobs.

* Fix images

* Addressing review.
2021-06-23 15:31:57 +02:00
Mattermod
71ef1c5386 Bump version (#17819)
Co-authored-by: Mmbot <mmbot@mattermost>
2021-06-22 13:08:49 +02:00
Mattermod
d093e102a4 Bump version (#17790)
Automatic Merge
2021-06-16 16:10:22 +02:00
Mattermod
45550d4d2a Bump version (#17716)
Automatic Merge
2021-06-04 11:40:22 +02:00
Ibrahim Serdar Acikgoz
0e42613aef cmd: remove platform binary (#17712) 2021-06-04 10:32:50 +03: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
Carlos Tadeu Panato Junior
fc75b72bba ci: upgrade inbucket (#17560) 2021-05-12 12:45:03 +02:00
Carlos Tadeu Panato Junior
c90c371fd4 build/package: remove dist/mattermost directory (#17601) 2021-05-11 12:23:25 +02:00
Carlos Tadeu Panato Junior
0cbfc58276 ci: update inbucket to use mattermost/inbucket:release-1.2.0 (#17559) 2021-05-03 15:24:51 +02:00
Jesús Espino
d2ed053b6b Add doc extraction dependencies (#17403)
Automatic Merge
2021-04-19 18:06:05 +02:00
Max Erenberg
869da7a78b [MM-32044] Reset SAML auth data (#17161)
Automatic Merge
2021-04-13 00:46:30 +02:00
Mattermost Build
565f65a0c3 Bump version (#17368)
Co-authored-by: Mmbot <mmbot@mattermost>
2021-04-09 13:32:27 +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
Mattermost Build
9d65b72a3a Bump version (#17195)
Co-authored-by: Mmbot <mmbot@mattermost>
2021-03-22 16:23:11 +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 d5a6e8529bd5f4d993824c828e239d009b05e567.

* 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
Elisabeth Kulzer
fa2ecad0a9 Remove Jenkinsfile (#17066) 2021-03-04 16:38:23 +01:00
Jyoti Patel
87f553283a [GH-15906][MM-22844] Redesign welcome and verify email. (#16824)
Automatic Merge
2021-02-26 05:22:26 +01:00
Martin Raymond Kraft
22308ea21c Updates the release version of the osixia/openldap Docker image. (#16893) 2021-02-17 16:10:27 -05:00
Mattermost Build
46b4987873 Bump version (#16952)
Co-authored-by: Mmbot <mmbot@mattermost>
2021-02-17 10:50:21 +01:00
Mattermost Build
c14194d78b Bump version (#16813)
Automatic Merge
2021-01-28 13:15:17 +01:00
Jesse Hallam
f8caa6c841 Job metrics & dynamic Grafana annotations (#16650)
* docker: prometheus and grafana for development

Add prometheus and grafana docker configuration when developing with access to the enterprise repository. This simplifies the setup for developers adding new metrics or even examining events from their development server. The services are disabled by default when no enterprise source is detected.

Grafana is provisioned automatically with the Prometheus datasource, as well as the canonical dashboards used with Mattermost. Furthermore, no authentication is required to access Grafana to simplify access from a development environment. The default home dashboard is customized to automatically show links to the provisioned dashboards. Dashboards can be saved, and login remains available via the default `admin/admin` credentials (which initiates a password reset), but no dashboard or system configuration is (currently) persisted if the container is destroyed.

Linux requires slightly special handling (well, really it's Docker for MacOS/Windows), in that `host.docker.internal` is the canonical way to resolve the host on MacOS/Windows, but on Linux it's usually sufficient to just use `localhost`. Until https://github.com/docker/for-linux/issues/264 is resolved, this PR includes code to customize the Prometheus configuration to point at the required address for the running platform.

* metrics: track active jobs by type

* metrics: active jobs chart

* metrics: server start and job annotations

* Update build/docker-compose.common.yml

Co-authored-by: Claudio Costa <cstcld91@gmail.com>

* prometheus: resolve docker host via 172.17.0.1 instead

* skip enabling prometheus and grafana by default

* handle JOB_STATUS_ERROR and JOB_STATUS_CANCELED end states

* handle nil srv.metrics

* lookup job to determine type for metrics

* mocked unit tests for jobs

* goimports lint fixes

* missing license

* add instance to server start tag

* filter annotations by selected instance

Co-authored-by: Claudio Costa <cstcld91@gmail.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2021-01-20 15:43:02 -04: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