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

19519 Коммитов

Автор SHA1 Сообщение Дата
Arya Khochare
5eef415a39 Fixed errcheck issues in server/channels/api4/post_test.go (#29201) 2024-11-12 10:07:19 +01:00
Harshil Sharma
7c3d71c089 Scheudled post test enhancement (#29187)
* Added test for user beloonging to channel but not team

* Added test for read onmly channel

* Added test for fetching scheduled posts for team you don;'t belong to

* Added more tests

* test enhancements

* CI
2024-11-12 12:29:29 +05:30
Harshil Sharma
56260e93d4 Added debug settings for testing and e2e tests (#29175) 2024-11-12 11:26:14 +05:30
Harshil Sharma
64bf13f250 MM-60141 - Scheduled post copy text option (#29123)
* verified available actions on scheduled posts

* Review fixes

* Added copy text option for scheudled posts

* Added check for archived channel and deactivated DM

* Import optimisation
2024-11-12 05:23:20 +00:00
Agniva De Sarker
847f42fd4c MM-61700: Fix race conditions from web_hub initialization (#29214)
The Store variable was written to _after_ the server
started which was causing the race.

We simply move it to before we start the server.

While we are here, we fix yet another race condition
which was unrelated, but doing it in one sweep. This
was related to the user props access. When a user is updated,
there was 3 ws events that get sent out, 2 were deep-copied
whereas 1 was not. This led to race condition in postgres
binary-param mode where we were trying to set the user props.



https://mattermost.atlassian.net/browse/MM-61700
2024-11-12 08:46:18 +05:30
Pablo Vélez
108117ba4d ICU Fixathon - clean up React.Fragment old syntax (#29006)
* ICU Fixathon - clean up React.Fragment old syntax

* enforce use of fragment shorthand over React.Fragment

* use short version of fragment
2024-11-11 18:05:47 +01:00
Arya Khochare
2461d0fed6 errcheck issues fixed (#29196) 2024-11-11 16:55:10 +01:00
Weblate (bot)
89aba8e899 Translations update from Mattermost Weblate (#29219)
Automatic Merge
2024-11-11 15:17:13 +01:00
unified-ci-app[bot]
9776c42979 chore: Update NOTICE.txt file with updated dependencies (#29216)
Automatic Merge
2024-11-11 14:47:12 +01:00
dependabot[bot]
b245a82392 Bump the github-actions-updates group across 1 directory with 3 updates (#29217)
Bumps the github-actions-updates group with 3 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action), [tj-actions/changed-files](https://github.com/tj-actions/changed-files) and [mikepenz/action-junit-report](https://github.com/mikepenz/action-junit-report).


Updates `github/codeql-action` from 3.27.0 to 3.27.1
- [Release notes](https://github.com/github/codeql-action/releases)
- [Commits](https://github.com/github/codeql-action/compare/v3.27.0...v3.27.1)

Updates `tj-actions/changed-files` from 45.0.3 to 45.0.4
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](c3a1bb2c99...4edd678ac3)

Updates `mikepenz/action-junit-report` from 4.3.1 to 5
- [Release notes](https://github.com/mikepenz/action-junit-report/releases)
- [Commits](db71d41eb7...ec3a351c13)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions-updates
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions-updates
- dependency-name: mikepenz/action-junit-report
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-11 12:49:28 +02:00
Ben Schumacher
d33d7a5ec7 [MM-61441] Don't overwrite plugin secret settings with fake values (#29029) 2024-11-11 11:43:26 +01:00
Daniel Espino García
33005922c9 Add component library (#28826)
* Add component library

* Fix lint and add different enable logic

* Fix test

* Address feedback and add background context

* Fix lint

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-11 11:06:08 +01:00
Arya Khochare
ead2a7c018 Fixed errcheck issues in server/channels/app/imaging/decode.go (#28937) 2024-11-08 15:39:03 +01:00
Daniel Espino García
118d0346ee Add test notification tool (#28334)
* Add test notification tool

* Add frontend styles

* Remove option from admin view

* Refactor create post and add translations

* Fix several CI errors

* Fix API and frontend snapshots

* Refactor trailing and leading icon on buttons

* Add different button states

* i18n-extract

* Fix wrong text

* Add tests

* Fix wrong string

* Fix test

* feat: E2E send test notifications (#28371)

* Refactor send desktop notification

* Address rest of the feedback

* Fix tests

* Add correct link

* Fix test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com>
2024-11-08 13:57:06 +01:00
M-ZubairAhmed
30a6ddc995 [MM-61439] New Users: Change default setting for mobile push notifications to 'online, away, or offline'(#29142) 2024-11-08 12:21:27 +00:00
Jelmer Overeem
0031e77b09 MM-44470 Fix SVG without width not displaying (#28963)
* Fix SVG rendering issue by setting default dimensions in image preview components

* destructuring attribute to prevent empty style object

* only create style object when fileType is svg

* fix style attribute for svg
2024-11-08 12:49:30 +01:00
Pablo Vélez
2593860063 MM-61068 - send ws event on scheduled message job send (#29153)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-08 10:48:23 +01:00
Niharika Goulikar
f377399c4c Fixed errcheck isssues in Auto_responder_test.go (#28987)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-08 08:54:03 +01:00
Harshil Sharma
faa6853a28 MM-61266 | MM-60948 - verified available actions on scheduled posts (#29106)
* verified available actions on scheduled posts

* Review fixes

* Added check for archived channel and deactivated DM
2024-11-08 10:34:38 +05:30
Agniva De Sarker
bd8774bdce MM-61130: Use a channelMember map at web_hub level (#28810)
Tests at very high scale indicates that the iteration
of all connections during websocket broadcast starts
to become a bottleneck.

To optimize this, we move the channelMember cache from
inside web_conn.go to the hubConnectionIndex.

This involves adding a new map keyed by the channelID
and containing all webConns where the user is a member
of that channel. Subsequently, a new method needed to
be added to invalidate the cache which previously
used to happen in web_conn.

And as a last step, we remove the cache from web_conn
to reduce SQL queries to the DB.

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

```release-note
NONE
```
2024-11-08 09:57:54 +05:30
Pablo Vélez
37d97e8024 MM-60874 - show usertz in scheduled message options (#29116)
* MM-60874 - show usertz in schedule message time options

* get the teammate time working with moment

* replace moment with luxon

* add unit tests to core_menu_options

* fix linter

* address pr feedback

* MM-60123 - store most recently custom time (#29120)

* MM-60123 - store most recently used custom time

* add the most recent used custom date option

* improve the code and add some validations

* add unit tests to cover the recently used time scenario

* clean up code in unit tests

* fix linter report

* fix translation files

* address PR feedback

* do not show recent custom time if matches any of the existing options

* prevent show date if is in the past and update unit tests

* format custom date based on week and add unit tests for new scenarios

* remove unused mock, clean up code, extract code to function

* extract recent used custom date logic to be an independent component

* address PR comments for improvements

* turn function into selector
2024-11-07 16:02:22 +01:00
Nicolas Le Cam
c90e562528 Migrate mockery to packages feature (#29013) 2024-11-07 12:48:11 +01:00
Nicolas Le Cam
5ebdea506f MM-39918: mmctl: list archived private channels in channel list command with system admin user (#28676) 2024-11-07 12:07:30 +01:00
Ivy Gesare
7846ac86b4 [MM-61506] Fix errcheck issues in server/channels/app/teams/helper_test.go (#29144) 2024-11-07 10:11:55 +01:00
Nils
d8f70551bd [GH-28399] Errcheck jobtest (#28689)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-07 09:37:07 +01:00
molejnik88
e40d7b442a [MM-61458] Fix errcheck issues in server/channels/app/plugin_requests.go (#29121) 2024-11-07 09:09:11 +01:00
soham
6b304b9c4a MM-57096 replaced hardcoded value with a color variable (#26667)
* replaced hardcoded value with a color variable

* changed color values for scroll_to_bottom_toast

* added btn and btn-primary to toast

* Changed dynamically created css variables with static ones

---------

Co-authored-by: Soham <soham@obmondo.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-07 08:35:29 +05:30
Harrison Healey
4136343476 Fixathon: Web app dependency updates part 1 (#29036)
* Ensure all packages remove a node_modules in their folder when cleaning

* Upgrade typescript to 5.6.3 and move to root package.json

Note that this currently fails to build the types package due to
@types/node which I'm going to try to remove

* Update @types/node to 20.11 to match .nvmrc

* Upgrade zen-observable to 0.10.0

It looks like localforage-observable uses its own version
of zen-observable because it hasn't been updated in years.
This seems like something we probably should remove.

* Update yargs to 17.7.2

* Update webpack-dev-server to 5.1.0

* Remove webpack-bundle-analyzer since we haven't used it in years

* Update webpack to 5.95.0

* Update web-vitals to 4.2.4

* Update turndown to 7.2.0

* Update tinycolor2 to 1.6.0

* Update timezones.json to 1.7.0

* Update stylelint to 16.10.0, stylelint-config-recommended-scss to 14.1.0, and stylelint-scss to 6.8.1

* Update webpack-cli to 5.1.4

* Update style-loader to 4.0.0

* Change all Webpack scripts to be ES modules

* Update strip-ansi to 7.1.0

This is a build script dependency

* Update chalk to 5.3.0

This is a build script dependency

* Update concurrently to 9.0.1

This is a build script dependency

* Update smooth-scroll-into-view-if-needed to 2.0.2

* MM-48205 Update serialize-error to 11.0.3

We didn't update this before because it's an ES module which caused Jest to complain. We can fix that by making Jest transform the it

* Update semver to 7.6.3

* Update types for semver, tinycolor2, turndown, and webpack

* Fix type issues: change Props to a type

* Fix type issues: invalid HTML attributes

* Remove unneeded option from Webpack config
2024-11-06 13:40:19 -05:00
Seth Foss
2117a4ed30 MM-56632 Display warning if requested mage size exceeds max (#26022) (#27216) 2024-11-06 15:45:56 +01:00
Arya Khochare
efa93a3dd3 Fixed errcheck issues in server/channels/app/onboarding_test.go (#29066) 2024-11-06 11:50:21 +01:00
Harshil Sharma
f812104a92 MM-60331 - Scheduled post telemetry (#29132)
* Added scheduled posts telemetry

* Tracking scheudled post creation via webapp to filter by platform

* Fixed keys

* Lint fix
2024-11-06 10:39:52 +00:00
Agniva De Sarker
65ed87bda0 Move Elasticsearch to source available 🎉 🎉 (#29015)
* Move Elasticsearch to source available
2024-11-06 09:26:54 +05:30
Scott Bishel
311381940d update manage token model to work on load (#29022)
Co-authored-by: Mattermost Build <build@mattermost.com>
2024-11-05 17:00:26 -07:00
Arya Khochare
4d4af7dc39 errcheck issues fixed (#29061)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-06 00:55:33 +01:00
Alenoda
74b33c73fb Fix errcheck issues in server/channels/app/plugin_deadlock_test.go (#29113)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-05 19:17:56 +01:00
Rohan Sharma
6b5732a6af [MM-61100] Fix errcheck issues in server/channels/app/busy_test.go (#28786) 2024-11-05 19:17:22 +01:00
Bernhard Fröhlich
d3c18ee369 Fix mmctl build for FreeBSD (#29112) 2024-11-05 17:57:15 +01:00
Guillermo Vayá
751d84bf13 [MM-59363] Shared channel event telemetry (#29024)
* shared channel event tracking

* Update notification.go

Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>

---------

Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
2024-11-05 16:26:18 +01:00
Arya Khochare
373e21c5a1 Fixed errcheck issues in server/channels/app/plugin_hooks_test.go (#29059) 2024-11-05 15:36:19 +01:00
M-ZubairAhmed
1b3403e641 [MM-60964] Update permissions banner button text and dismiss behaviour (#29134) 2024-11-05 14:34:06 +00:00
Pablo Vélez
fbee99e870 MM-60124-emit and read create scheduled post WS event (#28844)
* MM-60124-emit and read create scheduled post WS event

* fix unit test; reorder get team id logic; use userid for ws events

* MM-60145 - ws events on update scheduled posts (#28871)

* MM-60145 - ws events on update scheduled posts

* MM-60147 - ws events on delete scheduled posts (#28872)

* MM-60147 - ws events on delete scheduled posts

* remove unnecessary channelID

* remove unnecesary memoization
2024-11-05 14:24:50 +01:00
Pablo Vélez
87cc13c590 Fixathon ICU - remove npm vulnerabilities from production version (#28999)
* fix high vulnerability present in braces

* remove vulnerabilities from pdfjs-dis and update types for node and react

* adapt the pdf preview file to the lib new version

* lock the estree version to a compatible version

* use minified version of worker and adjust webpack to support extension for ESM module process

* get working the pdf preview

* adjust jest to use babel correctly

* override asn1.js lib to keep working version

* upgrade semver version to a secure version

* remove no longer needed changes

* fix linter issues

* fix merge conflicts

* sync package-lock

* fix conflicts

* adjust lock to npm ci
2024-11-05 13:41:29 +01:00
Ivy Gesare
cb8f152089 [MM-61094] Fix errcheck issues in server/channels/app/app_test.go (#29124) 2024-11-05 12:13:41 +01:00
Mario Vitale
2975e529d5 Enable Cypress and Playwright retries (#29056)
* Enable Cypress and Playwright retries
* Improve E2E commit status messages
* Demote unstable testcases, increase task timeout
2024-11-05 11:46:06 +01:00
Alenoda
4b9eb73bd2 Fix errcheck issues in server/channels/app/plugin_reattach (#29115)
Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com>
2024-11-05 09:59:24 +01:00
Ivy Gesare
795b2ad068 [MM-61488] Fix errcheck issues in server/channels/app/role_test.go (#29125) 2024-11-05 09:58:54 +01:00
Arya Khochare
9ecf9f8ade Fixed errcheck issues in server/channels/app/notification_test.go (#29068) 2024-11-05 08:59:48 +01:00
Harshil Sharma
800407f956 Fixed a bug where non-admin user wasn't able to edit their scheduled post (#29084) 2024-11-05 05:32:00 +05:30
Arya Khochare
6fd464a398 errcheck issues fixed (#29045) 2024-11-04 17:38:09 +01:00
Claudio Costa
3752518e36 Fix minio Web UI access (#29021) 2024-11-04 09:04:06 -06:00