Ibrahim Serdar Acikgoz
8d90c7042f
[MM-48883] Remove app package dependency for products ( #21853 )
2022-12-14 15:24:04 +03:00
Agniva De Sarker
7606fd9725
MM-48651: Log error while queuing telemetry ( #21821 )
...
We didn't use to handle the error returned from the Enqueue
method. We fix that.
Additionally, we add a verbosity flag that can allow us to
look into verbose logs from the rudder client. This can
help us to debug issues regarding telemetry not being sent.
https://mattermost.atlassian.net/browse/MM-48651
```release-note
NONE
```
2022-12-08 21:25:00 +05:30
Ibrahim Serdar Acikgoz
d8e2859b0b
Minimize app dependency on platform service ( #21548 )
2022-12-07 20:31:03 +03:00
Ibrahim Serdar Acikgoz
43e26ccda2
MPA: move product hooks out of plugins environment ( #21772 )
...
* product: add new hooks manager for porducts
* move product hooks out of plugins environment
* add hooks for plugin
2022-12-05 20:16:35 +01:00
Ibrahim Serdar Acikgoz
372653a921
Revert "app/pluginservice: move plugin out from the Channels product ( #21697 )" ( #21725 )
...
This reverts commit 6c55c4d356 .
2022-11-24 19:22:36 +05:30
Ibrahim Serdar Acikgoz
6c55c4d356
app/pluginservice: move plugin out from the Channels product ( #21697 )
2022-11-24 11:13:29 +03:00
Nick Misasi
a541cda9d0
Invalidate cloud caches when a new license is loaded ( #21579 )
...
Automatic Merge
2022-11-02 22:40:26 +02:00
Ibrahim Serdar Acikgoz
c6b6b3313e
app/platform: fix an issue about accessing to a closed db on shutdown ( #21549 )
2022-10-31 15:58:35 +03:00
Ibrahim Serdar Acikgoz
2ce3e81490
move file backend to the platform service ( #21365 )
2022-10-21 12:24:36 +03:00
Ibrahim Serdar Acikgoz
e99eba33ff
app/platform: move failover config initialization to platform ( #21281 )
2022-10-07 13:53:13 +03:00
Ibrahim Serdar Acikgoz
10655a2eb3
fix a data race in the platform service ( #21242 )
2022-10-06 14:14:03 +03:00
Ibrahim Serdar Acikgoz
5e69c6b02f
Move cluster, webhub and store out of Server ( #20899 )
2022-10-06 11:04:21 +03:00
Vishal
f5f036d94b
[MM-44489] Cloud limits: enforcing files ( #20703 )
...
* Update last accessible file time
* Filter fileInfos
* Set inaccessible header
* Fix lint issue
* Fix lint issue
* Fix i18n
* add nil check
* Fix merge conflicts
* Add helper functions to clear out inaccessible files content
* Remove content for inaccessible files
* Fix typo
* wip
* Remove InaccessibleContent field, instead use Archived
* Add store tests
* Add tests
* Add separate funcs to ignore cloud limits
* Use separate query for MySql
* Use GetReplicaX
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2022-09-28 12:52:53 -04:00
Vishal
44011db725
Add a semaphore ( #21027 )
2022-09-15 13:38:16 +05:30
Allan Guwatudde
bd42f0cd8c
[MM-45564] - Notify Admin v2 ( #20777 )
...
* [MM-45564] - Notify Admin v2
* add dummy data
* update dummy data
* add store methods
* experiment with recurring task
* complete saving of the notification
* make improvements
* make improvements
* add store layer tests
* fix lint
* update store layer tests
* add app layer unit tests
* add store layers
* add app layer tests
* fix lint
* fix lint
* fix tests
* fix tests lint
* fix lint
* fix lint
* fix retry layer test
* add notifications manual trigger
* filter notifications based on current plan
* add test case
* temp change
* feedback impl
* fix translations
* change job scheduler
* refactor job
* fix store layer tests
* extract i18n
* fix lint
* fix translations
* fix translations
* add license statement for new file
* feedback impl-2
* fix lint
* update make file
* add intl ids
* improve
* fix lint
* feedback impl
* move code and rename files
* fix lint
* feedback impl
* add config for trigger notifications api
* fix tests
* tmp change
* undo temp changes
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2022-09-02 13:52:48 +03:00
Kyriakos Z
c11ad8995f
Adds OmitConnection parameter to broadcast ( #20723 )
...
* Adds OmitConnection parameter to broadcast
Currently we have no means to omit sending a websocket event to a
specific connection id.
This is needed mainly so that the initiator won't receive an event for
the action it just initiated.
Will be used for the global drafts feature, so that we won't update
drafts through ws when a user is typing.
This commit adds OmitConnection to the Broadcast struct and to the
NewWebSocketEvent function signature.
shouldSendEvent should return false for that specific connection.
* Return early only if connection id matches the omitted
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2022-09-02 13:17:22 +03:00
Ibrahim Serdar Acikgoz
efbcb0a35a
move logger under platform ( #20831 )
...
* move logger under platform
2022-08-24 10:10:56 +03:00
Doug Lauder
6a6e05073e
Add preferences service API for products ( #20869 )
2022-08-23 11:57:07 -04:00
Ashish Bhate
ff4406e8b2
MM-46402: Use pointer to pointer to set pointer to nil ( #20827 )
...
Summary
We need a pointer to a pointer to set the original pointer to nil
The original task was not being set to nil (the local variable containing the pointer was being set to nil). The cancel function was being called even though the task had already been cancelled. This repeated cancellation was causing a panic because we were trying to close a channel that had already been closed the first time the task was cancelled.
Ticket Link
https://mattermost.atlassian.net/browse/MM-46402
2022-08-19 07:27:16 +05:30
Tim Scheuermann
a28a967eba
MM-45991 Wrap errors ( #20785 )
2022-08-18 11:01:37 +02:00
Ibrahim Serdar Acikgoz
f0e4794cda
Move config store into Platform Service ( #20718 )
...
* update config methods
2022-08-08 16:52:31 +03:00
Ibrahim Serdar Acikgoz
ac79a887a2
Move metrics under platform service (continued) ( #20732 )
...
* move metrics into platform
Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in >
2022-08-02 10:59:29 +03:00
Agniva De Sarker
90c6350410
Revert "move metrics server into platform service ( #20683 )" ( #20726 )
...
This reverts commit b18a42313b .
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2022-07-27 21:30:25 +02:00
Agniva De Sarker
20cb042362
Hackathon: Post Reminders ( #20555 )
...
This PR adds the post reminder backend work.
We add a new API endpoint via which a user can set a reminder for a post. An ephemeral message will be sent down the line to let the user know about the action. And then after the time is over, the system admin bot will send a DM message to the user about the reminder post.
2022-07-26 16:12:56 +05:30
Ibrahim Serdar Acikgoz
b18a42313b
move metrics server into platform service ( #20683 )
...
move metrics into platform
2022-07-25 16:54:06 +03:00
Doug Lauder
2aaf4cf0fb
Fix broken master; ensure all product service APIs have correct implementations ( #20663 )
...
* fix broken master; ensure all product service APIs are implemented by the structs passed to products
* use zero allocation interface checks
2022-07-15 13:20:40 -04:00
Tim Scheuermann
6dc897b04f
MM-45193 Use context for channel logging ( #20575 )
2022-07-14 11:01:29 +02:00
Vishal
e5ee5eecd8
[MM-44488] Cloud limits: enforcing messages ( #20362 )
...
* Add new Job to keep updating the last_accessible_post time
* Filter out posts for funcs returning PostList model
* Separate methods to get and compute cache
* filter pinned posts
* For posts with sorted CreateAt order, support a faster form of filtering.
* Add inaccessible header for getPost and getPostsByIDs APIs
* replace manual binary search with the std. library
* in-place filter posts
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
Co-authored-by: Nathaniel Allred <neallred@protonmail.com >
2022-07-06 11:56:39 +05:30
Doug Lauder
9cbe7dac09
Add system service for Focalboard multi product architecture ( #20574 )
...
* add system service; add GetUsers to users service
* add feature flag
2022-07-05 08:13:02 -04:00
Ibrahim Serdar Acikgoz
717a4d04a9
Use any instead of interface{} ( #20577 )
...
* replace interface{} with any
2022-07-05 09:46:50 +03:00
Doug Lauder
91877c3016
Add Store service for Focalboard multi-product architecture ( #20568 )
...
* add Store service
2022-06-30 08:28:37 -04:00
Doug Lauder
7e4024665c
Add KVStore service and Log service for Focalboard multi product architecture ( #20563 )
...
* add KVStore service, add Log service
2022-06-29 09:08:34 -04:00
Doug Lauder
5544e753e8
Add FileInfoStore and Cloud services for Focalboard multi product architecture ( #20546 )
...
* add FileInfoStore and Cloud services
2022-06-27 14:32:27 -04:00
Doug Lauder
f4dcffd8d3
Additional Product APIs for Focalboard multi-product architecture ( #20527 )
...
* bump focalboard version; add services to product API
* add API to fetch logger
* import boards in same fashion as enterprise
2022-06-23 07:55:50 -04:00
Agniva De Sarker
de50943d61
jake/gh 20356 ( #20485 )
...
* [MM-44667] Set InsecureSkipVerify for S3 when EnableInsecureOutgoingConnections is set
* Cleanup s3New, customTransport
* Lint fixes
* Cleanup s3store_test.go
* Using default transport
```release-note
NONE
```
Co-authored-by: Jake Gutierrez <jakegut0108@gmail.com >
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2022-06-20 15:42:01 +05:30
Ibrahim Serdar Acikgoz
39991d236b
Add Product Interfaces ( #20403 )
...
* app: improve plugin interfaces
* add documentation
* improve doc
* add error id
* add more info to readme
2022-06-13 09:36:43 +03:00
Ibrahim Serdar Acikgoz
c1c084a596
app/plugin: add product middleware and enable products register their routers ( #20374 )
2022-06-07 09:12:15 +03:00
Ibrahim Serdar Acikgoz
70610a9c96
app/server: add userservice to the service map ( #20296 )
2022-05-27 14:40:24 +03:00
Ibrahim Serdar Acikgoz
9985e22dab
app: add permissions wrapper ( #20242 )
2022-05-26 14:03:47 +03:00
Ibrahim Serdar Acikgoz
3f921bf170
app/server: shutdown producst before closing the store ( #20159 )
2022-05-10 10:55:40 +03:00
Agniva De Sarker
89fac9d485
MM-41153: Add seats deployed to support packet ( #20125 )
...
Support packet contains 2 new fields:
1. Active users.
2. License supported users.
We refactor the code to its separate file.
```release-note
NONE
```
2022-05-03 21:13:16 +05:30
lkyuchukov
79a0d3dac4
Don't log error when SendEmailNotifications is set to false ( #20007 )
...
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2022-04-29 14:45:24 +05:30
Ibrahim Serdar Acikgoz
6ab7cd0f1a
jobs: add config cleanup job ( #19987 )
2022-04-15 10:31:10 +03:00
Agniva De Sarker
16b1cbd6e3
spelling ( #19956 )
...
* spelling: activated
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: attachments
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: categories
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: category
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: cellspacing
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: channel
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: compliance
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: constraint
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: counts
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: createat
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: deactivate
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: destination
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: exceeded
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: failed
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: foreign
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: hours
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: inactivity
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: inappropriate
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: initialization
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: initialized
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: management
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: mismatch
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: recipients
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: scheme
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: signature
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: subscription
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: suggestions
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: sync
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: telemetry
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* spelling: webhook
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
* Trigger CI
```release-note
NONE
```
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com >
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2022-04-11 19:31:19 +05:30
Ibrahim Serdar Acikgoz
54cb6d889f
app: add channels wrapper ( #19861 )
2022-04-08 08:59:37 +03:00
Allan Guwatudde
c17e210dd0
[MM-40962-2] - Fix unnecessary logging in license expiration check ( #19826 )
...
* [MM-40962-2] - Fix unnecessary logging in license expiration check
* skip check for TE
* document
* feedback impl-1
* fix logic
* remove saving of renewal token
* fix lint
* remove commented code
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2022-03-31 18:25:46 +03:00
Allan Guwatudde
fa56ee9d9a
[MM-42713] - Remove cloud user limit restrictions ( #19835 )
...
* [MM-42713] - Remove cloud user limit restrictions
* remove unused code
* fix translations
* feedback impl-1
* enterprise code clean up
* feedback impl-2
* fix mocks
* fix translations
Co-authored-by: Mattermod <mattermod@users.noreply.github.com >
2022-03-31 18:24:38 +03:00
Ibrahim Serdar Acikgoz
0efb7bf07d
app/teams: add getMember method ( #19862 )
2022-03-30 09:54:46 +03:00
Ibrahim Serdar Acikgoz
a4a6fe0a94
app: add posts wrapper ( #19816 )
2022-03-29 12:44:52 +03:00
Ibrahim Serdar Acikgoz
d33ef8d79c
app/products: add dependency resolver ( #19847 )
...
* app/products: add dependency resolver
* reflect review comments
2022-03-29 11:58:29 +03:00