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

1752 Коммитов

Автор SHA1 Сообщение Дата
Christopher Speller
7804debb7f MM-51321 Refactor audit log application. (#22481)
* Refactor audit log application.

* Fix incorrect API Usage for Auditing

* Fixups.

* Rename Object audit to Auditable. Some small fixes.

---------

Co-authored-by: Daniel Schalla <daniel@schalla.me>
2023-03-16 09:50:00 -07:00
Jesse Hallam
ea3ff49b35 Revert "Adding the debug bar logic in the server (#22410)" (#22478)
This reverts commit 280bc7f97e.
2023-03-10 14:30:17 -04:00
Christopher Poile
53f5f2f267 MM-51021 - Remove PostEditTimeLimit check for plugins and a few other code paths (#22422)
* lift PostEditTimeLimit check to API code; tests

* lift PatchPost time limit check into API layer; test

* fix test

* fix i18n; fix test

* fix test
2023-03-09 13:37:23 -05:00
Jesús Espino
280bc7f97e Adding the debug bar logic in the server (#22410)
* Adding debugbar layer

* Adding sql debugbar info

* Make duration consistent across the debugbar lines

* Adding the debugbar/systeminfo endpoint

* Adding logs to the debugbar

* Improve the debugbar logger fields info

* Improving the debug bar architecture

* Allow to enable/disable debugbar in the backend

* Exposing the Debug Bar enable in the client config

* Adding more system information to the debugbar

* Adding params info to the store layer

* Organizing a bit the debugbar code in the server and adding some extra data to the system info api

* Adding debugbar email traces

* Changing the socket event name to 'debugbar'

* Adding explain support for the debugbar

* Adding missed file

* Omitting data related to the debugbar itself

* Removing unneeded functions

* Avoid arbitrary execution in explain api

* Moving debugbar inside the platform directory

* Replacing debugbar logger with a new logger Target

* Removed uneeded changes

* Fixing some linter errors

* Adding a debugbar log level to use it later for log events strictly related to the debug bar

* Fixing linter errors

* Fixing tests

* Adding i18n strings
2023-03-09 17:55:36 +01:00
Nathaniel Allred
de63ddfd9b configure public key and related license variables at build time (#22202)
Instead of being completely hardcoded, public key is now set at build time according to build tag (test key if `testlicensekey` tag is passed to go build, production key otherwise). A `isProdLicensePublicKey` is also available for determining if the prod license key is being used. It is needed for choosing whether to point to production or test environment CWS.

The test license key and CWS url values in this value are set to production values in this PR, but will be updated to the test values once we are ready to do the necessary updates to test environment spinwicks.
2023-03-08 09:14:14 -06:00
Allan Guwatudde
1f5a6e439e [MM-50534] - Renew email adds portal link when not eligible for self-serve renewal (#22350)
* [MM-50534] - Renew email adds portal link when not eligible for self-serve renewal

* fix translations

* make more checks

* improve endpoint to make checks

* use new checks

* fix translations

* fix lint

* add meaningful names

* rename struct

* rename endpoint
2023-03-03 18:33:18 +03:00
Allan Guwatudde
d44065d4b3 [MM-49455] - Self-serve workspace deletion (#22200)
* [MM-49455] - Self-serve workspace deletion

* add subscription id to deletion request

* add server telemetry

* fix mocks

* feedback impl
2023-02-21 17:36:44 +03:00
na
7275887d14 Admin log table (#21153)
* Reformat Log Output for SysAdmin UI

* Restore old code

* Update

* Backend first pass

* PR feedback

* Set helpers to private

* Lint fix

* Fix mocks

* Fix another mock

* Fix lint again

* Fix i18n

* Update app/admin.go

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

* PR feedback

* FIx lint issue

---------

Co-authored-by: Daniel Schalla <daniel@schalla.me>
Co-authored-by: Nevyana Angelova <nevyangelova@Nevyanas-MacBook-Pro.local>
Co-authored-by: Devin Binnie <devin.binnie@mattermost.com>
Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-02-14 17:39:10 +07:00
Julien Tant
e325f3fa1c Restore admin notify cooloff and remove debug logs (#22289) 2023-02-09 06:43:30 -07:00
Rajat Dabade
825b281f36 Moving file response functionality to shared folder (#22226)
* Moving file response functionality to shared folder

* Linter fixes

* Added the attachment serve to shared folder

* Removed the unwanted logs

* import fixes

* Linter fixes

* License added

* Moved UnsafeContentTypes and MediaContentTypes from api4

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-02-08 20:09:42 -07:00
Muhammad S
3ae70591d0 [MM-48029] notify admin for plugin install from work templates (#22007)
Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Julien Tant <julien@craftyx.fr>
2023-02-08 14:08:33 -07:00
Pablo Andrés Vélez Vidal
a9a6d3c7fb MM-50355 - add senderId so the channel validations function can validate sender permissions when inviting guests (#22267)
Automatic Merge
2023-02-08 01:38:34 +02:00
Sinan Sonmez (Chaush)
50fec7c892 MM-45494: Add endpoint for message history (#20945)
* add api url

* write sql in store

* update app and client golang driver

* update layers and tests

* change sql query sort

* update layers

* fix style

* fix style post_store.go

* fix comments

* add test for app/post_test.go

* update layers

* fix test

* fix style

* fix style again :)

* add permission check

* add additional checks and tests

* change from nil to empty

* update app-layers

* fix style

* add index for OriginalId for Posts table

* fix postgres query

* update migration file names

* update app-layers

* address PR reviews

* write tests for post store

* fix style

* Update file name

* Update file name 2

* Update file name 3

* Update file name 4

* change the error orders

* update migration file name

---------

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-02-07 16:30:37 +02:00
Nick Misasi
366962fe93 [MM-49921] Cloud export compliance (#22189)
* Support for export compliance screening in cloud

* i18n

* Refactor error

* Fix

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-02-03 10:18:35 -05:00
Anurag Shivarathri
6a93d46556 [MM-48010] Fetch Threads since parameter should return threads with new replies. (#22228)
* Fix

* Test fix and condition is GtOrEq
2023-02-03 19:50:10 +05:30
Nathaniel Allred
f713862041 Mm 49496 Add state and jobs for preventing screened purchase attempts from retrying (#22188)
* make signup unavailable when screening is in progress
2023-02-02 15:48:59 -06:00
Nathaniel Allred
6bca1f22e6 error instead of panic if cloud endpoints are hit (#22211)
* error instead of panic when team edition receives a request to check on CWS availability.
2023-02-01 14:11:00 -06:00
Agniva De Sarker
c8d08adf29 Revert "[MM-42652] Re-enable test (#21986)" (#22196)
This reverts commit a3dcaee066.
2023-01-31 19:22:55 +05:30
Ben Schumacher
649d2c7303 [MM-49932] Remove experimental warning about plugins (#22162) 2023-01-31 09:43:15 +01:00
Pablo Andrés Vélez Vidal
ae3c21dd79 MM-49813 - validate inviter permissions when sending invitations to private channels (#22119)
* MM-49813 - validate members invitation permissions to private channels

* Validate on the receiver side that the sender id still has permissions to invite

* add translations

* fix texts

* simplify implementation

* remove local test hardcoded data

* add test to user_test

* fix vet warning

* Add comments to validate user permissions function

Co-authored-by: Martin Kraft <martin@upspin.org>

* regenerate app layer iface

* fix unit test

* fix app user_tests

---------

Co-authored-by: Martin Kraft <martin@upspin.org>
2023-01-30 16:19:27 +01:00
Ashish Bhate
58fda05349 MM-49486: Option to exclude file count in channel stats (#22096)
Co-authored-by: Mattermost Build <build@mattermost.com>
2023-01-27 21:03:33 -05:00
Julien Tant
79e6c65933 [MM-50007] WorkTemplate: disallow creating private playbook without an enterprise license (#22159) 2023-01-27 14:03:46 -07:00
Konstantinos Pittas
874c6269ec [MM-49265] Update translations when config is changed (#21987)
* update translations when config is changed

* wrap and return the error message

* use the configs directly instead of diff
2023-01-26 18:20:04 -05:00
Julien Tant
7bfca605e1 [MM-49929] Work templates: allow simple users to list marketplace plugins (#22151) 2023-01-26 09:08:05 -07:00
Julien Tant
753ee85c6b [MM-47846] Execute Work Template (#22055) 2023-01-25 10:24:01 -07:00
Said Atrahouch
53938167f8 [MM-49949] fix endpoint handle to download invoices (#22143)
* [MM-49949] fix endpoint handle to download invoices

* Bump _ inside the regex and remove in_
2023-01-25 10:41:26 -05:00
Nathaniel Allred
813a7efbcd if cloud interface reports upstream is off, notify the web client of the same (#22118) 2023-01-23 08:20:21 -06:00
Conor Macpherson
087aa38afb Merge pull request #22078 from mattermost/MM-49474-add-downgrade-feedback
MM-49474 - Add Telemetry Event for Submitting Downgrade Feedback
2023-01-17 11:19:33 -05:00
Mattermost Build
357428dfb0 Merge branch 'master' into MM-47853-true-up-review-telemetry-off-non-air-gapped 2023-01-17 08:45:44 +02:00
Conor Macpherson
a13fda6b61 Add telemetry event for submitting downgrade feedback. 2023-01-13 14:52:24 -05:00
Konstantinos Pittas
a3dcaee066 [MM-42652] Re-enable test (#21986) 2023-01-09 20:02:45 +02:00
Mattermost Build
c0fd11f953 Merge branch 'master' into MM-47853-true-up-review-telemetry-off-non-air-gapped 2023-01-09 16:53:36 +02:00
Conor Macpherson
337c80f2bf Create true up review earlier, move completed check to be earlier. 2023-01-06 11:08:58 -05:00
Allan Guwatudde
398476138d [MM-48416] - Fix flaky TestRequestTrialLicense - trial license user count less than current users (#21988) 2023-01-06 15:42:17 +03:00
Conor Macpherson
40724ae44d Merge branch 'master' of github.com:mattermost/mattermost-server into MM-47853-true-up-review-telemetry-off-non-air-gapped 2023-01-03 13:54:38 -05:00
Conor Macpherson
e31a6a47b0 Only check if diagnostics are disabled, remove telemetry enabled in true up review status response in favor of using front-end configs. 2023-01-03 13:35:31 -05:00
Mattermod
4a0a3eaa91 Merge branch 'master' into MM-48759_track_event_cws_signup_campaign_redirect 2023-01-03 18:41:04 +02:00
Conor Macpherson
84fe5514fc One last cleanup, i18n, etc. 2022-12-30 15:04:30 -05:00
Conor Macpherson
b3b39e4f15 Move get or create true up review status into the app interface, adds a function to execute checks for being within true up review widnow (and tests), adds a job for sending true up telemetry. 2022-12-30 13:11:17 -05:00
Vishal
babe01ee2e remove crt feature flag (#21788)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-12-30 14:41:31 +05:30
Conor Macpherson
c30439743c Ensure content is base64 encoded, add check for telemetry enabled. 2022-12-29 19:47:58 -05:00
Conor Macpherson
49c5ca69df Add comment to re-run checks. 2022-12-29 17:11:50 -05:00
Nathaniel Allred
408d752b5c dry up some code. Move other code to app layer (#21961)
* dry up some code. Move other code to app layer
* check err
2022-12-29 14:27:45 -06:00
Conor Macpherson
4e54a40a21 Add cws availability check. 2022-12-29 15:07:06 -05:00
Conor Macpherson
6685268085 Add cws availability check. 2022-12-29 14:58:05 -05:00
Agniva De Sarker
93f17980a1 Remove unnecessary debug log (#21959)
This log is continuously spamming our community server
and I see it all the time in my dev environment.

Let's remove this to keep the logs clean.

```release-note
NONE
```
2022-12-29 12:21:25 +05:30
Conor Macpherson
a839646757 Fix typo, ensure we don't throw away errors that are not store.NotFound. 2022-12-28 10:01:20 -05:00
Conor Macpherson
54bcd16842 Merge branch 'MM-47853-true-up-review-telemetry-off-non-air-gapped' of github.com:mattermost/mattermost-server into MM-47853-true-up-review-telemetry-off-non-air-gapped 2022-12-28 09:57:20 -05:00
Conor Macpherson
3c0375d18e Fix error type checks, change log levels, update comments. 2022-12-28 09:56:58 -05:00
Conor Macpherson
f42f7bdaf8 Update api4/license.go
typo

Co-authored-by: Allan Guwatudde <guwats10@gmail.com>
2022-12-28 09:27:23 -05:00