Commit Graph

19187 Commits

Author SHA1 Message Date
Harrison Healey
76021c76a0
MM-60351 Use oEmbed for YouTube links (#28312)
* Split up handling of permalinks and other links in getLinkMetadata

* MM-60351 Use oEmbed for YouTube links

* Explicitly request json from the oEmbed provider

* Fix linter

* Fix type of CacheAge field

* Address feedback
2024-10-01 14:06:45 -04:00
Andrew Zigler
d53a2ef4df
Add Hacktoberfest 2024 Holopin badge to holopin.yml (#28288)
See https://github.com/marketplace/holopin for usage
2024-10-01 13:55:09 -04:00
Arya Khochare
23d06d4520
Errcheck issues fixed in server/channels/api4/brand_test.go (#28364) 2024-10-01 16:34:01 +02:00
Jesse Hallam
edf5610b48
Update LICENSE.txt to reflect new paths (#28241)
* Update LICENSE.txt to reflect new paths

Various paths changed after last year's monorepo transition. Update our
license to reflect these, and simplify to reference all of the public
module (already under the Apache 2.0 license).

* fix apparent typo in AGPL license version
2024-10-01 09:47:09 -03:00
CarlssonFilip
c5a504883d
[GH-28353] Fix errcheck issues in server/channels/api4/channel_bookmark_test.go (#28358) 2024-10-01 13:02:56 +02:00
Ibrahim Serdar Acikgoz
076a3cb0d5
cmd/mmctl/user: attempt to improve migrate-auth documentation (#28330) 2024-10-01 12:46:06 +02:00
Weblate (bot)
f190375403
Translations update from Mattermost Weblate (#28356)
Automatic Merge
2024-09-30 16:14:32 +02:00
Ben Schumacher
a30e19cce8
Explicitly list ignored files for errcheck linter (#28329) 2024-09-30 08:54:51 +02:00
M-ZubairAhmed
4c6ac0a432
[MM-60218] Resettting to default doesnt reset to user's global notification setting in a channel's setting (#28046) 2024-09-27 18:17:23 +00:00
Felipe Martin
bb4d7de2b5
fix: dm shared channel indicator (#28302)
* fix: dm shared channel indicator
2024-09-27 12:31:03 -04:00
Julien Tant
d1cad8c692
add reuse check on update MFA (#28304) 2024-09-27 17:35:36 +02:00
Aditya Soni
f97cd9ea5b
MM-51091: Fixed the checkmarks bug (#28287)
* Fixed the checkmarks bug

* Fixed indentation

* Fixing the snapshots

* resolving the comments

* check-lint issues

* react fragment removal

* Fixing the .snap files
2024-09-27 11:17:30 -04:00
Ben Schumacher
2b426573cd
[MM-60619] Annotate cluster logs messages (#28268) 2024-09-27 09:17:16 +02:00
Matthew Birtch
bd61f1484b
MM-60604 Hide pinned icon in channel header when no pinned posts (#28276) 2024-09-26 20:24:07 -04:00
Daniel Espino García
0676d300de
Fix draft sent to show and rise errors (#28097)
* Fix draft sent to show and rise errors

* Remove event and set skipCommands

* Fix tests

* Improve error styles

* Fix lint

* Fix lint

* Fix tests

* Various fixes

* Fix lint

* fix test

* Extract onSubmit options type

* Address feedback

* Fix text
2024-09-26 16:59:20 +02:00
Devin Binnie
d58b048965
[MM-60603] Don't follow threads when marking them as read on focus (#28263)
* [MM-60603] Don't follow threads when marking them as read on focus

* Fix tests

* Fix lint

* Fix the original bug in the API call
2024-09-26 09:02:11 -04:00
Ben Schumacher
3428cd15b6
[MM-60648] Don't start server until all routes are registered (#28291) 2024-09-26 13:57:48 +02:00
Ben Schumacher
20ed58906a
[MM-60307] Check if session is nil before calling UpdateLastActivityAtIfNeeded (#28254) 2024-09-26 13:52:59 +02:00
Agniva De Sarker
9900151fb6
Remove some dead code from Redis (#28313)
I forgot to remove this method in my
earlier refactoring. A bit weird that no linter
caught this. 🤔

```release-note
NONE
```
2024-09-25 22:05:46 +05:30
Daniel Espino García
1e8ef05338
Fix missing profile messages on notification dashboards (#28297) 2024-09-25 12:07:24 +02:00
Nikhil Kulkarni
6d51307ddf
[MM-57711] Convert ./components/latex_inline/latex_inline.tsx from Class Component to Function Component (#28129)
* Changed the class component to functional

* Updated the tests for latex_inline

* Updated the snapshots and tests

* Updated the tests, snapshots and changed div to span

* Updated snapshots and tests

* used renderWithContext instead of render in tests

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-25 11:59:33 +02:00
Agniva De Sarker
5a511a14ee
MM-60606: Respect allowFromCache flag in Channelstore.GetMany (#28290)
Setting the flag to false never worked, and it was never
caught because there wasn't an instance when this method
was called with allowFromCache=false.

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

```release-note
NONE
```
2024-09-25 13:54:57 +05:30
Agniva De Sarker
9447cb9074
MM-60171: Using a generic function to allocate values (#28245)
We sprinkle a bit of generic magic to refactor a lot
of duplicate code.

To avoid exposing unnecessary code, I duplicated the function
twice. But let me know if you have strong opinions about this.

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

```release-note
NONE
```


---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-25 10:00:14 +05:30
Caleb Roseland
e0e0b57b8b
MM-54022: add warning when deleting a remote post (#28284) 2024-09-24 12:04:26 -05:00
Harrison Healey
e080f9f5ed
Change localizeMessage to take a MessageDescriptor as a parameter (#28141)
* Change localizeAndFormatMessage to take a MessageDescriptor

* Change localizeMessage to take a MessageDescriptor as a parameter

* Update mmjstool to support new localizeMessage signature

* Change mmjstool commit back to master branch
2024-09-24 12:07:51 -04:00
Mario Vitale
8e2dc45841
Re-enable postgres migration tests (#28270)
* Utilize separate image for migration tests
* Re-enable migration tests
* Apply Ibrahim's suggestion
* Apply Saturn's suggestion
2024-09-24 17:50:12 +02:00
Caleb Roseland
355dd18e52
MM-60335: Upgrade to typescript 5.5.4 (#28099)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-24 10:39:35 -05:00
Harrison Healey
46cad5c552
MM-59854 Fully allow at mentions in message attachment field values and add E2E tests (#28018)
* Add descriptions to test cases for getNeededAtMentionedUsernames

* MM-59854 Load users who are at-mentioned in message attachment fields

* MM-59854 Add server support for at-mentioning users in message attachment fields

* Migrate support/external_commands from JS to TS

* MM-59584 Ensure that at-mentions never show in other message attachment fields

* MM-59584 Add E2E tests for how we load users based on at mentions

* Use new E2E test helpers in other places

* Update snapshots
2024-09-24 09:41:03 -04:00
yasserfaraazkhan
3e84d20dbe
E2E: Add delay to slow down cypress and depict end user's speed. (#28113) 2024-09-24 19:07:17 +05:30
Pablo Vélez
88ad3bb95b
MM-60419 - fix styling regression by adding back placeholder injection link element (#28219)
* MM-60419 - fix styling regression by adding back placeholder injection link

* add relevant comment

* add more details to how the link element work

* Update webapp/channels/src/root.html

---------

Co-authored-by: Harrison Healey <harrisonmhealey@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-24 15:28:35 +02:00
Pablo Vélez
5c7f99921b
MM-60312 - replace office365 logo with entraId new logo (#28234)
* MM-60312 - replace office365 logo with entraId new logo

* rename icon file name

* remove unncessary aria-label in svg inside a button

* remove unnecessary translation

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-24 15:27:04 +02:00
M-ZubairAhmed
df901b132e
[MM-60514] Accessing bot_accounts page directly fails to load (#28247) 2024-09-24 10:40:33 +00:00
M-ZubairAhmed
a03972e502
[MM-60303] Changing status in mobile app doesn't change your status in the webapp (#28246) 2024-09-24 10:39:26 +00:00
Daniel Espino García
040838b056
Add metrics for mobile versions snapshots (#28191)
* Add metrics for mobile versions snapshots

* Add notifications disabled and fix lint

* Address feedback

* Verify all references to JobTypeActiveUsers

* Fix typos

* Improve platform values

* Add test and MySQL support
2024-09-24 12:02:19 +02:00
Agniva De Sarker
d45a54a8e9
MM-60480: Do not invalidate channel member cache on login (#28143)
On user login, we were aggressively clearing the channel member
cache when it wasn't necessary. There is no channel membership
info that is changing on a user login.

Additionally, we fix some more issues with pointer passing
to the cache. It's a known problem that our value passing
style isn't consistent when we fetch items from cache.
Sometimes we pass pointer-to-pointer, sometimes it's just a
pointer. This is also the reason for https://github.com/mattermost/mattermost/pull/27830.

We fix 2 such cases where we passed pointer-to-pointer
but didn't handle the special case inside the cache.
This time, we actually fix it in the app layer instead
of the cache layer and also add a test for good measure.

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

```release-note
NONE
```

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-24 13:01:19 +05:30
Weblate (bot)
b6f83c8438
Translations update from Mattermost Weblate (#28282)
Automatic Merge
2024-09-23 16:14:32 +02:00
Pablo Vélez
b798dd8106
MM-59950 - add deletedAt column to users export (#28137) 2024-09-23 15:15:50 +02:00
Saturnino Abril
073e2cecaa
use node's native fetch, add ensureLicense flag and update snapshots (#28279) 2024-09-23 21:11:45 +08:00
Guillermo Vayá
343746c4b6
MM-59954 Community plugins telemetry (#28226)
* add known plugins to the list of possible plugins to be located

* improve testing and fix config data collection

* Improve testing

* remove empty lines

* make linter happy

* go through all plugins
2024-09-23 12:59:19 +02:00
Ben Schumacher
87ad717434
[MM-57194] Don't return config values from plugins that are not installed (#28260) 2024-09-23 10:17:07 +02:00
Mario Vitale
60b38bb91a
Enhance reporting, add shellcheck (#28240)
* Enhance reporting, add shellcheck

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-20 15:05:51 +02:00
Guillermo Vayá
dfa1d1027b
MM-60415 ignore deactivated bots (#28184)
* ignore bot accounts when counting deactivated users

* moved query to squirrel

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>

* set is null right

* Run a different query depending on driver due to performance reasons.

---------

Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-20 13:02:09 +02:00
Alejandro García Montoro
9b368b9214
MM58746: Bump yuin/goldmark dependency (#28250)
* Bump yuin/goldmark dependency to latest version

* Add docs to modules-tidy make rule

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-20 12:08:35 +02:00
Miguel de la Cruz
8a735f1b03
Add a specific error when inviting a remote cluster to a remote channel (#28255) 2024-09-19 14:27:41 -05:00
Mario Vitale
c27d536ad3
Checkout latest stable pgloader release (#28251)
* Checkout latest stable pgloader release
* Disable Mystql to Postgres migration check
2024-09-19 15:19:42 +02:00
Ben Schumacher
40d2ae97f1
[MM-60307] Fix racy use of session in NewWebConn (#28195) 2024-09-19 14:10:17 +02:00
Caleb Roseland
d6c11d1d26
get channel id for bookmark files in ES/OS (#28221)
Co-authored-by: Miguel de la Cruz <mgdelacroix@gmail.com>
2024-09-19 11:57:10 +02:00
Miguel de la Cruz
987a25b4d0
Adds a make target and a database for a shared channels node (#28238)
This PR allows to run a different Mattermost instance in port :8066
using the `make run-node` target. This instance reuses the frontend
files compiled for the main development instance, has its own database
and local mode enabled through environment variables, and for the rest
of the configuration simply takes whatever properties are set in the
`config.json` file.

This target is specially useful to run a Shared Channels development
environment, compiling first the frontend and then running `make
run-server` and `make run-node` side by side, later connecting both
and testing Shared Channels features.
2024-09-19 10:00:56 +02:00
Harshil Sharma
13b6e75fa9
Fixed horizontal alignment of no draft graphic (#28224)
* Fixed horizontal alignment of no draft graphic

* Lint fix
2024-09-19 12:33:11 +05:30
Agniva De Sarker
7be7a47fd3
MM-59933: Increment/Decrement the member count directly (#28196)
While using Redis, there is no need to invalidate
and then update the new count from the DB when
we know the exact number it is going to be incremented
or decremented by.

In that case, we can directly use Redis primitives
to update the cache and prevent yet another DB query.

To achieve this, we modify the LRU cache get/set
paths slightly to not marshal into byte slices
for *int64 values. This is needed for Redis to operate
the INCR/DECR commands.

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

```release-note
NONE
```

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-09-19 09:38:38 +05:30