* Revert "Fixed bug where boards would move to category of a different team (#4284)"
This reverts commit e075f408d3.
* Revert "Merge branch 'main' into only-explicit-boards-on-default-category"
This reverts commit 7db7e56296, reversing
changes made to 3feda10b6d.
* Revert "DND support for category and boards in LHS (#3964)"
This reverts commit 9918a0b3f8.
* WIP
* WIP
* Removed unused webapp util
* Added server tests
* Lint fix
* Updating existing tests
* Updating existing tests
* Updating existing tests
* Fixing existing tests
* Fixing existing tests
* Fixing existing tests
* WIP
* Added category sort order migration
* Added logic to set new category on top
* Implemented api, WS listein logic remining
* finished webapp implementation
* Added category type and tests
* updated tests
* Fixed integration test
* type fix
* WIP
* implemented boards DND to other category and in same category
* removed seconds from boards name
* wip
* debugging cy test
* Enabled hiding views list while DNDing
* Removed some debug logs
* Fixed a bug preventing users from collapsing boards category
* WIP
* Debugging cypress test
* CI
* debugging cy test
* Testing a fix
* reverting test fix
* Handled personal server
* WIP
* WIP
* Adding support for building with esbuild
* Using different index.html templates for esbuild
* WIP
* WIP
* Fixed delete category and rename category
* WIP
* WIP
* Finally, its done.
* Adde suppor tot update board-category mapping in bulk
* Fixed a bug where create category option didn't show up on default category
* Fixed bug where new board was added as last board in Boards category instead of first board
* Minor cleanup
* WIP
* Added support to drab boards onto collapsed categories
* Fixed route order from specific to generic
* Fix linter
* Updated existin server tests
* fixed integration tests
* Fixed webapp test err
* Removed accidental dependencies
* Adding new server tests
* Finished server tests
* added api to client.go
* Added API integration test
* Fixed existing webapp tests
* WIP
* WIP
* WIP
* WIP
* WIP
* Fixed missing paranthesis
* Some cleanup
* fixed server lint
* noopped down migration
* Fixed issue with DND not working great with newly added category
* Fixed a test
* Fixed a test
* Fixed a test
* Fixed console error while DNDing
* pakg lock restore
* Fixed missing react beautiful dnd in package.lock.json
* updated snapshots
* Fixed webapp test
* Review fixes
* Added API permission check
Co-authored-by: Jesús Espino <jespinog@gmail.com>
* Working in the new content block editor
* Moving blocksEditor content block into its own component
* Initial integration with quick development flow
* More WIP
* Adding drag and drop support with server side help
* Some extra work around the styles
* Adding image support
* Adding video and attachments, and fixing edit
* Putting everything behind a feature flag
* Adding support for download attachments
* Fixing compilation error
* Fixing linter errors
* Fixing javascript tests
* Fixing a typescript error
* Moving the move block to an action with undo support
* Fixing ci
* Fixing post merge errors
* Moving to more specific content-blocks api
* Apply suggestions from code review
Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
* Fixing the behavior of certain blocks
* Fixing linter error
* Fixing javascript linter errors
* Adding permission testing for the new move content block api
* Adding some unit tests
* Improving a bit the tests
* Adding more unit tests to the backend
* Fixed PR suggestion
* Adding h1, h2 and h3 tests
* Adding image tests
* Adding video tests
* Adding attachment tests
* Adding quote block tests
* Adding divider tests
* Adding checkbox tests
* Adding list item block tests
* Adding text block tests
* Reorganizing a bit the code to support deveditor eagain
* Fixing dark theme on editor view
* Fixing linter errors
* Fixing tests and removing unneeded data-testid
* Adding root input tests
* Fixing some merge problems
* Fixing text/text.test.tsx test
* Adding more unit tests to the blocks editor
* Fix linter error
* Adding blocksEditor tests
* Fixing linter errors
* Adding tests for blockContent
* Update webapp/src/components/blocksEditor/blockContent.test.tsx
Fix linter warning
* Update webapp/src/components/blocksEditor/blockContent.test.tsx
Fix linter warning
* Update webapp/src/components/blocksEditor/blockContent.test.tsx
Fix linter error
* Fixing test
* Removing unneeded TODO
Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
* remove valid check and set category type to retrieved category type
* lint fix
* fix test
* update code for testing to continue to work.
* update comments
* added new Company Goals template
* new Competitve Analysis template
* Additional new standard templates
* Updated version on json file to 3
* Reverted version on json file back to 2
* Update templates.go
Updated defaultTemplateVersion from 4 to 5, so Boards knows to load the additional new templates.
* Update permissions_test.go
Updated `builtInTemplateCount` from 7 to 13 to account for the additional standard templates.
Co-authored-by: Doug Lauder <wiggin77@warpmail.net>
* fix for plugin viewing names and emails
* fix some tests
* fix some tests
* fix more tests
* fix more tests
* clean-up
* cleanup, fix issue on initial load
* revert manifest changes
* implement on personal server side
* revert user.go changes
* lint fix
* fix test
* check config for null before setting boolean value
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* WIP
* WIP
* Removed unused webapp util
* Added server tests
* Lint fix
* Updating existing tests
* Updating existing tests
* Updating existing tests
* Fixing existing tests
* Fixing existing tests
* Fixing existing tests
* Added category type and tests
* updated tests
* Fixed integration test
* type fix
* removed seconds from boards name
* wip
* debugging cy test
* Fixed a bug preventing users from collapsing boards category
* Debugging cypress test
* CI
* debugging cy test
* Testing a fix
* reverting test fix
* Handled personal server
* Fixed a case for personal server
* fixed a test
* make sure users.props contains a hash!
Partial fix for #4018. This does NOT address the 'dirty' column mentioned in this issue!
* Update server/services/store/sqlstore/migrations/000027_migrate_user_props_to_preferences.up.sql
* Just make sure that props is an object
* add newline back in
* Update 000027_migrate_user_props_to_preferences.up.sql
* Also added the check for sytandalone version query for POstgres
* added explicit cast to JSONB
Co-authored-by: Harshil Sharma <harshilsharma63@gmail.com>
* Added handling of duplicate key conflicts
* Added a test
* Add value checks and fix username for the test
Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
* fix: no implicit (synthetic) memberships for guest
* fix: only check if guest if no explicit member
* refactor: join() to select() non-guest users
* style: golant lint
* fix: search as guest only returns explicit boards
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* retrieve all team members for specific lists
* retrieve all team members for specific lists
* final fixes
* update to use enum
* unit test fixes
* lint fixes
* fix integration test
* fixup integration test
* fix issues with making board private
* update to make webapp and server enums match
* fix to add member in correct role
* remove unnecessary property, check Open/Private board
* cleanup confirm for non admin
* some final cleanup
* move default to webapp
* only allow greater roles in drop down, change property name to minimumRole
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Check on GetBoardsForUserAndTeam if the board result list is incomplete and continue if that's the case
* Remove template filter and correctly check for not founds
* Update board store to return inserted / patched values without querying the DB after modifying them
* Remove redundant condition check after error refactoring
* Refactor error usage from the store level up and add API helpers
* Complete API tests
* Fix merge errorResponse calls
* Remove ensure helpers to allow for custom messages on permission errors
* Fix bad import and call
* Remove bad user check on auth that was added as part of the main merge
* Fix empty list test
* Replace deprecated proxy calls to ioutil.ReadAll with io.ReadAll
* Add information to the NotFound errors
* Add context to all remaining errors and address review comments
* Fix linter
* Adapt the new card API endpoints to the error refactor
* Remove almost all customErrorResponse calls
* Add request entity too large to errorResponse and remove customErrorResponse
* Fix linter
* fix: filter out bots for sharing and @mention-ing
* feat: add `?exclude_bots` to `getTeamUsers` API
* chore: `make swagger`
* chore: `make generate`
* fix: plugin store test function implementation
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* 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>
* 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>
* 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
* Adds a check that errors on store start if MariaDB is detected
* Fix linter
* Update error message
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Adds data migration to clean badly assigned boards
This data migration fetches all boards whose owner has a deleted
membership on the board's team and fixes them by processing them
again, this time with the fix applied to the `getBestTeamForBoard`
function that skips deleted teams and team memberships
* Do not create a transaction if there are no offending boards found
* Fix linter
* Converted synthetic membership to natuaral if needed
* Creating duplicated board to same category as parent board
* fixed tests
* fixed an incorrect API path in client
* Added logic to prevent jumping of new board between categories
* fixed lint error
* Update teamless boards migration to check for deleted entities
After this changes, the `TeamLessBoardsMigration` will check the team
and the team membership of the users to discard deleted entities when
cosidering what team to assign a board to
* Fix linter
* Uncomment team insights test
* Add checks to make sure insights endpoints work only in plugin mode
* adding constant for my insights
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.local>
* Add boilerplate functions and handlers for boards insights
* Fix function signatures to add 'duration' parameter, fix where clauses in db queries
* Fix where clause to include boards of which userId in parameter is a member
* Modify queries to work with sqlite, postgres, mysql
* Integration tests, and results of make generate
* Lint Fixes
* Add icons to board insights
* Lint fixes
* Format insights queries without squirrel to fix parameterization issues
* Add tests for sqlstore utility functions
* Improve team insights tests by creating 2 boards
* Refactor endpoints/app to adhere to developments in 7.0 release
* Refactor queries to use squirrel
* Lint fixes
* Fix client, integration tests
* Remove old integration tests
* Add storetests, refactor functions to handle authorized board_ids
* Make queries compatible with mysql, sqlite
* Add app tests
* Fix lint errors
* Revert makefile changes, fix docstring in api
* Lint fixes and doc correction suggested by @wiggin77
* Fix mock store call count error
* adding client code
* Make the following changes
- use serviceAPI to get user.Timezone
- rename licenseAndGuestUserCheck to insightPermissionGate, and handle returned error better
- validate page, perPage parameters aren't < 0
* Lint fix
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Benjamin Cooke <benjamincooke@Benjamins-MacBook-Pro.local>
* fix panic caused by returning nil,nil in GetMemberForBoard
* lint fix
* lint fix- need updated variable name
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
* Translated using Weblate (Malayalam)
Currently translated at 100.0% (303 of 303 strings)
Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/ml/
* Update translation files
Updated by "Cleanup translation files" hook in Weblate.
Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/
Update translation files
Updated by "Cleanup translation files" hook in Weblate.
Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/
Update translation files
Updated by "Cleanup translation files" hook in Weblate.
Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/
* Translated using Weblate (German)
Currently translated at 100.0% (312 of 312 strings)
Translation: Focalboard/webapp
Translate-URL: https://translate.mattermost.com/projects/focalboard/webapp/de/
* Added code for fetching all the users at one time.
* Added the code for personal server users
* Update-code
* Linter fixes
* Test cases updated, some minor changes
* Update the code according to review comments
* Cypress test fix
* Update server/services/store/mattermostauthlayer/mattermostauthlayer.go
Co-authored-by: Varghese Jose <varghese.jose@tutanota.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: jprusch <rs@schaeferbarthold.de>
Co-authored-by: Scott Bishel <scott.bishel@mattermost.com>
* Converted synthetic membership to natuaral if needed
* Added unit tests for AddMemberToBoard
* Update server/app/boards_test.go
Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
* Fix test
Co-authored-by: Miguel de la Cruz <miguel@mcrx.me>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* Handled err in acse of lack of user-channel membership
* Used errors.As instead of type check
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
- provides support for compiling Boards directly into the Mattermost suite server
- a ServicesAPI interface replaces the PluginAPI to allow for implementations coming from pluginAPI and suite server.
- a new product package provides a place to register Boards as a suite product and handles life-cycle events
- a new boards package replaces much of the mattermost-plugin logic, allowing this to be shared between plugin and product
- Boards now uses module workspaces; run make setup-go-work
* skeleton lifecycle
* bare minimum to satisfy mm-server import
* added boards_imports.go
* move boards_imports.go to correct package
* bump mmserver version; remove replace in go.mod; use module workspaces; remove logger service
* rename product.go --> boards.go
* add FileInfoStore and Cloud services for product; create minimal pluginAPI interfaces for all packages
* rename Boards -> BoardsProduct
* compile success
* remove hooks service; guard for nil BoardsApp
* update to latest mmserver ver
* upgrade mmserver to master tip
* upgrade mmserver to master tip
* bump plugin-api to master tip
* fix users service
* fix OnActivate crash; normalize AppError returns
* fileBackend interface for server/app
* feature flag
* bump mmserver version
* fix linter errors
* make go.work when linting
* fix go.work creation for CI
* add execute flag for script
* fix more linter errors
* always create a go.work
* fix ci go.work
* OS agnostic go.work generator
* fix path
* fix path again
* partially disable cypress test
* fix case Id --> ID
* bump mmserver version
* include in go.work for dev
* addressed review comments.
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>