Commit graph

3023 commits

Author SHA1 Message Date
Harshil Sharma
5f4ad80ef0
Read Mattermost s3 timeout value and used a default if not exist (#3817)
* read Mattermost s3 timeout value and used a default if not exist

* Protection from setting 0 or negative timeout
2022-09-09 11:42:55 +02:00
Doug Lauder
4652a15bab
Card APIs (#3760)
* cards apis wip

* create card API

* validate cards when creating

* create card fixes

* patch card wip

* wip

* unit test for createCard; CardPatch2BlockPatch

* unit test for PatchCard

* more APIs

* unit tests for GetCardByID

* register GetCard API

* Set FOCALBOARD_UNIT_TESTING for integration tests

* integration tests for CreateCard

* more integration tests for CreateCard

* integtration tests for PatchCard

* fix integration tests for PatchCard

* integration tests for GetCard

* GetCards API wip

* fix merge conflict

* GetCards API and unit tests

* fix linter issues

* fix flaky unit test for mySQL

* Update server/api/api.go

Co-authored-by: Miguel de la Cruz <mgdelacroix@gmail.com>

* Update server/api/api.go

Co-authored-by: Miguel de la Cruz <mgdelacroix@gmail.com>

* address review comments

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Miguel de la Cruz <mgdelacroix@gmail.com>
2022-09-08 13:01:33 +02:00
Miguel de la Cruz
7ebcdf59c2
Add remove templates channel link migration (#3794) 2022-09-07 14:22:06 -06:00
Paul Esch-Laurent
d1346be051
Fix make swagger errors & update version (#3772)
* chore: fix `make swagger` errors

* chore: update Swagger version and re-generate
2022-09-07 08:32:53 -06:00
Jesús Espino
95c69cc46b
Allow to confirm add users on mention or assign to person field (#3724)
* Allow to confirm add users on mention or assign to person field

* Improving the confirm add user for notification modal style

* Add confirmation add user modal tests

* Fixing tests

* Fixing styles

* Adding missed snapshots file

* Fixing tests

* Fixing other tiny errors

* Fixing tests

* Fixing tests
2022-09-07 08:20:10 +02:00
Rajat Dabade
ad3b8fd454
Added property to select multiperson (#3741)
* Added property to select multiperson

* Implemented the sorting for multiperson property

* Updated snapshots

* Added Test case

* CSS fix

* Linter fixes

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-09-06 15:09:08 -06:00
Tom De Moor
a1a67390fc Translated using Weblate (Dutch)
Currently translated at 100.0% (402 of 402 strings)

Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/nl/

Translated using Weblate (Dutch)

Currently translated at 96.5% (388 of 402 strings)

Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/nl/
2022-09-06 23:23:59 +03:00
Tóth Csaba // Online ERP Hungary Kft
e8029aab4c Translated using Weblate (Hungarian)
Currently translated at 100.0% (402 of 402 strings)

Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/hu/
2022-09-06 23:23:59 +03:00
이진호
7a539c6e5c Translated using Weblate (Korean)
Currently translated at 100.0% (402 of 402 strings)

Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/ko/

Translated using Weblate (Korean)

Currently translated at 100.0% (402 of 402 strings)

Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/ko/
2022-09-06 23:23:59 +03:00
MArtin Johnson
51679e5016 Translated using Weblate (Swedish)
Currently translated at 92.7% (373 of 402 strings)

Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/sv/

Translated using Weblate (Swedish)

Currently translated at 88.5% (356 of 402 strings)

Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/sv/
2022-09-06 23:23:59 +03:00
Scott Bishel
10f7e46038
check createdBy instead of team id to determine global templates (#3766)
* check createdBy instead of team id to determine global templates

* fix tests

* remove import

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-09-05 17:02:39 -06:00
Asaad Mahmood
f9e6eb2791
GH-3768 - Search icon fix (#3778) 2022-09-05 12:53:01 +05:30
Scott Bishel
af2727085d
Fix template websocket (#3747)
* fix websockets with templates

* add more unit tests

* add synthetic, update tests

* Update mattermost-plugin/server/manifest.go

* clean up lint, reduce cyclomatic complexity

* update tests that call patchBoard with patch.Type set

* cleanup messages

* cleanup code more readable

* fixes from code review

* fix null check

* remove log lines
2022-09-04 16:51:31 -06:00
Miguel de la Cruz
956675aa07
Fix migration 27 and update boards_migrator_test to support sqlite (#3775)
* Fix migration 27 and update boards_migrator_test to support sqlite

* Adds comments for clarity
2022-09-02 13:39:00 -06:00
Rajat Dabade
970fda3b1d
Undefined check for propertyValue (#3769) 2022-09-02 12:19:02 -05:00
Scott Bishel
a6ca2c2011
Merge pull request #3774 from mattermost/mysql-extra-safe
Extra safe MySQL migration
2022-09-02 10:00:22 -06:00
Harshil Sharma
80d2984cf8 Fixed an incorrect case in table name 2022-09-02 11:28:37 +05:30
Miguel de la Cruz
3acd505618
Refactor schema table migration mechanism (#3709)
* Refactor schema table migration mechanism

The old schema table migration code was initializing the migration
engine before changing the migrations table and was mixing queries on
two different database connections (the `s.db` connection and the
migrations `db` connection).

The changes on this commit take care of changing the migrations table
before the morph migration engine is initialized and they use the same
connection for all operations, better isolating the schema table
migration process.

* Update migrate function to take the cluster mutex first thing

* Split migration code and orchestration on different functions

* Wrap custom errors on data migrations

* Rename private migration method

* Update server/services/store/sqlstore/migrate.go

Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
2022-09-01 15:05:11 +02:00
Harshil Sharma
66e8af85a8 Extra safe MySQL migration 2022-09-01 16:15:31 +05:30
Harshil Sharma
12ba9a6382 Extra safe MySQL migration 2022-09-01 16:07:11 +05:30
Scott Bishel
270a110dc1
Merge pull request #3761 from mattermost/mentions-and-guests
Fix @-mentions in boards & for guests
2022-08-31 13:40:32 -06:00
Scott Bishel
37e089dbee
Merge pull request #3757 from sbishel/gh-3704
GH-3704 - Fix for not copying all content items.
2022-08-31 13:31:44 -06:00
Scott Bishel
568f08d610 update to break and not push to parent if already exists 2022-08-31 10:51:54 -06:00
Scott Bishel
54ff7b4e6e
Merge pull request #2852 from kyeongsoosoo/GH2520
GH-2520 make cut/undo/redo work in comments
2022-08-31 08:16:20 -06:00
Paul Esch-Laurent
31569c655a
fix: reference Uppercase MM tables (#3756) 2022-08-30 14:32:31 -05:00
Rajat Dabade
ce74950566
Added functionality to close boardSelector after linking board (#3758) 2022-08-30 14:32:10 -05:00
Mattermod
ba479b9a52
Merge branch 'main' into GH2520 2022-08-30 22:23:27 +03:00
Paul Esch-Laurent
9101ef81e2 style: golang linting (shadow declaration) 2022-08-30 12:45:20 -05:00
Paul Esch-Laurent
448df85ed8 fix: don't search users for @-mentions as a guest 2022-08-30 11:56:24 -05:00
Paul Esch-Laurent
b7ead8a7e0 fix: handle includePublicBoards 2022-08-30 11:56:24 -05:00
Paul Esch-Laurent
33987d5c5b fix: invalid db query for guests 2022-08-30 11:56:24 -05:00
Paul Esch-Laurent
2e9e6ef771 fix: filter at-mention users in private boards 2022-08-30 11:56:24 -05:00
Asaad Mahmood
7bf8f9ba41
Minor menu and dialog UI fixes (#3742)
* Varios UI fixes

* Fixing lint error

* Updating dialog

* Updating colors for icons
2022-08-30 19:47:12 +05:00
Doug Lauder
2035337049
getBlocks store API with query options (#3755) 2022-08-30 15:56:41 +02:00
Scott Bishel
be9825e4ae don't return until all blocks handled 2022-08-29 19:44:04 -06:00
Tom De Moor
e0439e1c42 Translated using Weblate (Dutch)
Currently translated at 96.0% (386 of 402 strings)

Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/nl/
2022-08-30 00:13:49 +03:00
Matthew Williams
488437b161 Translated using Weblate (English (Australia))
Currently translated at 100.0% (402 of 402 strings)

Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/en_AU/
2022-08-30 00:13:49 +03:00
Milo Ivir
e63591ee47 Translated using Weblate (Croatian)
Currently translated at 100.0% (402 of 402 strings)

Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/hr/
2022-08-30 00:13:49 +03:00
Varghese Jose
b8498d3993 Translated using Weblate (Malayalam)
Currently translated at 68.6% (276 of 402 strings)

Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/ml/
2022-08-30 00:13:49 +03:00
master7
ab4a11c13f Translated using Weblate (Polish)
Currently translated at 100.0% (402 of 402 strings)

Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/pl/
2022-08-30 00:13:49 +03:00
MArtin Johnson
cb5b329c92 Translated using Weblate (Swedish)
Currently translated at 88.5% (356 of 402 strings)

Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/sv/
2022-08-30 00:13:49 +03:00
Mário Victor Ribeiro Silva
b69ae71303 Translated using Weblate (Portuguese (Brazil))
Currently translated at 38.8% (156 of 402 strings)

Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/pt_BR/
2022-08-30 00:13:49 +03:00
Kaya Zeren
25de577fae Translated using Weblate (Turkish)
Currently translated at 100.0% (402 of 402 strings)

Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/tr/
2022-08-30 00:13:49 +03:00
kaakaa
bccfe455e6 Translated using Weblate (Japanese)
Currently translated at 100.0% (402 of 402 strings)

Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/ja/
2022-08-30 00:13:49 +03:00
jprusch
862a271679 Translated using Weblate (German)
Currently translated at 100.0% (402 of 402 strings)

Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/de/
2022-08-30 00:13:49 +03:00
Hosted Weblate
a4438e7cd5 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/
2022-08-30 00:13:49 +03:00
Scott Bishel
282e24890e
Merge pull request #3729 from sbishel/close-template-selector
Close template selector if same board/view clicked
2022-08-29 14:56:36 -06:00
Scott Bishel
d85824492e fix bad merge 2022-08-29 08:02:28 -06:00
Harshil Sharma
63edf2c987
Props to preferences (#3722)
* Added tab;le creation migration

* WIP

* Finished base impl

* Added MySQL migration

* WIP

* Added personal server store methods

* WIP

* Fixed webapp tests

* Updated server tests

* generated code

* generated code

* generated code

* used raw queries instead of plugin methods to avoid updating productapi package

* Added API doc

* Added sqlite migratins

* used plugin APIs again s=instead of raw queries

* WIP

* Added missed case of SQL migration where personal server can run on Postgres and MySQL

* CI

* Removed unsupported POSL operator

* Low on caffine. Making silly mistakes

* json handling

* int test

* hope tests pass

* Fix incorrect column size

* Webapp lint fixes

* remived debug code

* Updated moigration version

* Review fixes
2022-08-29 12:55:12 +05:30
Scott Bishel
cb21d48838
Merge pull request #3750 from sbishel/fix-weblate
Fix weblate
2022-08-26 08:33:52 -06:00