Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate DM and private group message boards to a team #2557

Merged
merged 199 commits into from
Mar 25, 2022
Merged
Show file tree
Hide file tree
Changes from 192 commits
Commits
Show all changes
199 commits
Select commit Hold shift + click to select a range
57c689a
wip
harshilsharma63 Nov 3, 2021
acff519
Merge branch 'main' into sidebar-categories
harshilsharma63 Nov 17, 2021
3e0a10a
Added data migration for populating categories
harshilsharma63 Nov 17, 2021
e0db477
wip
harshilsharma63 Nov 3, 2021
ecd4bb1
Added data migration for populating categories
harshilsharma63 Nov 17, 2021
5feef2e
Merge branch 'sidebar-categories' of github.com:mattermost/focalboard…
harshilsharma63 Nov 30, 2021
944548f
Store WIP
harshilsharma63 Nov 30, 2021
49ff760
migration WIP
harshilsharma63 Dec 1, 2021
ebd8b25
category CRUD APIs complete
harshilsharma63 Dec 3, 2021
d1bc18f
category block API WIP
harshilsharma63 Dec 3, 2021
efbafe6
block category update API done
harshilsharma63 Dec 6, 2021
81903cd
Fetcehed data into store
harshilsharma63 Dec 7, 2021
7d45d21
Started displayting sidebar data
harshilsharma63 Dec 8, 2021
42d0d21
sidebar WIP
harshilsharma63 Dec 9, 2021
a5e2aae
Dashboard - basic changes
harshilsharma63 Dec 10, 2021
b68d942
Sidebar dashboard btn and board switcher UI only
harshilsharma63 Dec 10, 2021
53fccd9
Sidebar dashboard btn and board switcher UI only
harshilsharma63 Dec 10, 2021
219649f
create category dialog WIP
harshilsharma63 Dec 10, 2021
81dffbc
Create category webapp side done
harshilsharma63 Dec 13, 2021
02ea056
Integrated move card to other category
harshilsharma63 Dec 14, 2021
c7f005d
board to block
harshilsharma63 Dec 15, 2021
ff2312a
Disabled dashboard route for now as we'll implement it in phase 2
harshilsharma63 Dec 15, 2021
3ee0e31
WIP
harshilsharma63 Dec 16, 2021
4aaf3c4
Added logic to open last board/view on per team level
harshilsharma63 Dec 16, 2021
bc2707d
Add workspace to teams and boards migrations (#1986)
mgdelacroix Dec 16, 2021
a956a46
boards search dialog WIP
harshilsharma63 Dec 16, 2021
c5f0e91
Seach dialog WIP
harshilsharma63 Dec 17, 2021
e9f5eaf
Implemented opening boiard from search results
harshilsharma63 Dec 20, 2021
dd9c497
Boards switcher styliung
harshilsharma63 Dec 20, 2021
13a4ba1
Handled update category WS event
harshilsharma63 Dec 21, 2021
2be1db0
Template support
harshilsharma63 Dec 22, 2021
2d24f29
personal server support and styling fixes
harshilsharma63 Dec 22, 2021
875cea5
test fix WIP
harshilsharma63 Dec 22, 2021
8876bb7
Fixed a bug causing boards to not be moved correctly beteen categories
harshilsharma63 Dec 23, 2021
53e3657
Fixed webapp tests
harshilsharma63 Dec 23, 2021
bb64f83
Merge branch 'permissions-feature-branch' into sidebar-categories
harshilsharma63 Dec 23, 2021
55ceeaf
fix
harshilsharma63 Dec 24, 2021
533d9a7
Store changes (#2011)
mgdelacroix Dec 24, 2021
afb3f01
Permissions phase 1 - Websocket updates (#2014)
mgdelacroix Dec 24, 2021
a903305
Permissions phase 1 - Permissions service (#2015)
mgdelacroix Dec 24, 2021
62be498
Api and app updates (#2016)
mgdelacroix Dec 24, 2021
5ee2f5c
Delete and Patch boards and blocks endpoints
mgdelacroix Dec 26, 2021
f6c2f18
Used correct variable
harshilsharma63 Dec 27, 2021
cd2a866
Webapp changes WIP
mgdelacroix Dec 22, 2021
ff040ad
Open correct team URL
harshilsharma63 Dec 27, 2021
42299cf
Merge branch 'sidebar-categories' into permissions-webapp-fix
harshilsharma63 Dec 27, 2021
21089b7
Fixed get block API
harshilsharma63 Dec 28, 2021
fb34d7e
Used React context for workspace users
harshilsharma63 Dec 29, 2021
7b4fc08
WIP
harshilsharma63 Dec 29, 2021
27e6daf
On load navigation sorted out
harshilsharma63 Dec 30, 2021
238f424
WIP
harshilsharma63 Dec 30, 2021
81da110
Nav fix
harshilsharma63 Dec 31, 2021
4b9f65d
categories WS broadcast
harshilsharma63 Dec 31, 2021
527fbd6
Used real search API
harshilsharma63 Dec 31, 2021
4f3e701
Fixed unfurl ppreview
harshilsharma63 Jan 3, 2022
b2856b4
set active team in sidebar
harshilsharma63 Jan 3, 2022
549190b
IMplemented navigation on changing team in sidebar
harshilsharma63 Jan 4, 2022
b9c54ed
Misc fixes
harshilsharma63 Jan 4, 2022
2089be9
close rows inside transaction (#2045)
sbishel Jan 5, 2022
a5669e8
update syntax for mysql (#2044)
sbishel Jan 5, 2022
2dd8e6e
Upadted mutator for new patchBlock API
harshilsharma63 Jan 5, 2022
540cabf
Updated patchBlock API to use new URL
harshilsharma63 Jan 6, 2022
13a374c
Listeining to correct event in plugin mode
harshilsharma63 Jan 6, 2022
4320b23
Merge branch 'permissions-webapp-fix' into permissions-feature-branch
harshilsharma63 Jan 7, 2022
5fee68e
Implemented WS messages for category operations:
harshilsharma63 Jan 10, 2022
15bfc06
Fix duplicated build tags on Makefile
mgdelacroix Jan 10, 2022
efeca68
Sidebar enhancements
harshilsharma63 Jan 10, 2022
2140ea5
Merge branch 'permissions-feature-branch' of github.com:mattermost/fo…
harshilsharma63 Jan 10, 2022
58a84c6
Add missing prefix to SQLite migration and fix flaky tests
mgdelacroix Jan 10, 2022
ac580af
Sidebar boards menu enhancement
harshilsharma63 Jan 11, 2022
d4e250f
Fix board page interactions (#2144)
mgdelacroix Jan 19, 2022
ca513b5
Fix app tests (#2104)
mgdelacroix Jan 20, 2022
0cf2303
Add json1 tag to vscode launch (#2157)
chenilim Jan 21, 2022
9a7abc3
Fix add, delete and update boards and add board patch generation (#2146)
mgdelacroix Jan 23, 2022
cb58193
update property type mutators to use boards API (#2168)
sbishel Jan 31, 2022
d145e61
Add permissions modal (#2196)
mgdelacroix Feb 1, 2022
fa1ec84
Merge
jespino Feb 2, 2022
1179a36
I'm able to compile now
jespino Feb 3, 2022
1fe9668
Some fixes around tests execution
jespino Feb 3, 2022
de6668d
Fixing migrations
jespino Feb 3, 2022
000845d
Fixing migrations order
jespino Feb 3, 2022
4f55a0f
WIP
jespino Feb 3, 2022
c63778b
Fixing some other compilation problems on tests
jespino Feb 3, 2022
e0a1cc5
Some typescript tests fixed
jespino Feb 3, 2022
ab559bf
Fixing javascript tests
jespino Feb 3, 2022
d8a46bf
Merge commit 'dcf7600ca48911baf37d7918365fa29a172b4821' into permissi…
jespino Feb 3, 2022
ebb0996
Merge remote-tracking branch 'origin/main' into permissions-feature-b…
jespino Feb 3, 2022
9714632
Fixing compilation
jespino Feb 3, 2022
0709ea3
Fixing some problems to create boards
jespino Feb 3, 2022
51d5a1f
Load the templates on initial load
jespino Feb 4, 2022
2dbbf6c
Improvements over initial team templates import
jespino Feb 4, 2022
45185d8
Adding new fields in the database
jespino Feb 4, 2022
edf4c66
Working on adding duplicate board api
jespino Feb 4, 2022
456b3de
Removing RootID concept entirely
jespino Feb 4, 2022
46d6d3d
Improving a bit the subscriptions
jespino Feb 4, 2022
36702b8
Fixing store tests for notificationHints
jespino Feb 4, 2022
bf96993
Fixing more tests
jespino Feb 4, 2022
4ff7dde
fixing tests
jespino Feb 7, 2022
ca99003
Merge remote-tracking branch 'origin/main' into permissions-feature-b…
jespino Feb 7, 2022
d0b159b
Fixing tests
jespino Feb 7, 2022
b926ad1
Fixing tests
jespino Feb 7, 2022
18faaf9
Fixing some small bugs related to templates
jespino Feb 7, 2022
77ea9d0
Fixing registration link generation/regeneration
jespino Feb 7, 2022
d8775fc
Fixing cypress tests
jespino Feb 7, 2022
e3f9eb4
Adding store tests for duplicateBoard and duplicateBlock
jespino Feb 8, 2022
36115e4
Merge remote-tracking branch 'origin/main' into permissions-feature-b…
jespino Feb 8, 2022
5fbb078
Addressing some TODO comments
jespino Feb 8, 2022
e09cceb
Making the export api simpler
jespino Feb 8, 2022
4d9432d
Add redirect component for old workspace urls
jespino Feb 8, 2022
963b7cf
Merge remote-tracking branch 'origin/main' into permissions-feature-b…
jespino Feb 9, 2022
a85bc68
Removing Dashboard code
jespino Feb 9, 2022
b5e26d6
Delete only the built-in templates on update
jespino Feb 9, 2022
bc94de3
Merge remote-tracking branch 'origin/main' into permissions-feature-b…
jespino Feb 9, 2022
53c524c
fixing tests
jespino Feb 9, 2022
b33a0be
Merge remote-tracking branch 'origin/main' into permissions-feature-b…
jespino Feb 10, 2022
31749f1
Adding users autocompletion
jespino Feb 10, 2022
2cec799
Merge remote-tracking branch 'origin/main' into permissions-feature-b…
jespino Feb 15, 2022
afeef78
Updating snapshots
jespino Feb 15, 2022
d2bde24
Merge remote-tracking branch 'origin/main' into permissions-feature-b…
jespino Feb 16, 2022
2eba7c9
Fixing bad merge
jespino Feb 16, 2022
ba71ecd
fix panic when creating new card in notifysubscriptions (#2352)
wiggin77 Feb 17, 2022
5b2c234
fix lint errors (#2353)
sbishel Feb 18, 2022
48c2282
fix sql syntax error for SearchUsersByTeam (#2357)
wiggin77 Feb 18, 2022
a588a4d
Fix mentions delivery (#2358)
wiggin77 Feb 18, 2022
38439c6
update api for octoClient calls, pass correct variables to mutator (#…
sbishel Feb 19, 2022
5eb262e
Merge remote-tracking branch 'origin/main' into permissions-feature-b…
jespino Feb 21, 2022
1e45625
Fixing tests after merge
jespino Feb 21, 2022
17931a5
Merge remote-tracking branch 'origin/main' into permissions-feature-b…
jespino Feb 24, 2022
8d41607
Merge remote-tracking branch 'origin/main' into permissions-feature-b…
jespino Feb 25, 2022
f191bbc
Fix sidebar context menu UI issue (#2399)
harshilsharma63 Feb 25, 2022
c44a853
Fix notification diff for text blocks (#2386)
wiggin77 Feb 25, 2022
becf9ad
Permissions branch: Fix card links (#2391)
wiggin77 Feb 25, 2022
4b284c6
Fixing sqlite tests
jespino Feb 28, 2022
abf49ef
Fixing server tests
jespino Feb 28, 2022
eb6da3c
Update migrations to create global templates. (#2397)
sbishel Feb 28, 2022
139daed
fix migration sql error (#2414)
wiggin77 Feb 28, 2022
c94649b
Merge branch 'main' into permissions-feature-branch
harshilsharma63 Mar 1, 2022
a5fc3cd
Fixing frontend tests
jespino Mar 1, 2022
e0a463f
Set target team ID when using a global template (#2419)
harshilsharma63 Mar 1, 2022
8992587
Fix some server tests
jespino Mar 1, 2022
2d8aeef
Fixing onboarding creation
jespino Mar 1, 2022
6354423
Permissions branch: Fix unit tests and CI errors (part 1) (#2425)
wiggin77 Mar 1, 2022
ee9778e
Fixing some small memory leaks (#2400)
jespino Mar 1, 2022
0d6511b
Permissions branch: Fixes all the linter errors (#2429)
wiggin77 Mar 1, 2022
2079eff
Reestructuring the router and splitting in more subcomponents (#2403)
jespino Mar 2, 2022
1d7c04b
don't allow last admin change/deleted (#2416)
sbishel Mar 2, 2022
86e4502
Splitting BoardPage component into simpler/smaller components (#2435)
jespino Mar 3, 2022
96c6cae
Replace go migrate with morph permissions (#2424)
isacikgoz Mar 3, 2022
b0aad97
fixing the linter
jespino Mar 4, 2022
620ab0b
Allow always team 0 (global) templates fetch (#2472)
jespino Mar 4, 2022
a969253
Fix problem with viewId 0 in the URL (#2473)
jespino Mar 7, 2022
b34c1e0
Migrate from binddata to goembed (#2471)
jespino Mar 7, 2022
b292ebc
Adding join logic to the board switcher (#2434)
jespino Mar 7, 2022
b82e8a7
Merge commit '152c60400d67484f7634fd26dbf03f7b185228e7' into permissi…
jespino Mar 8, 2022
eb0de87
Merge commit 'ec91f1c71ba4e652c480947d2e83d4a74f0c9e6d' into permissi…
jespino Mar 8, 2022
e664bec
Merge commit '50020ce8b10192388b41f483e97d354bd91972ac' into permissi…
jespino Mar 8, 2022
a2473b6
Merge remote-tracking branch 'origin/main' into permissions-feature-b…
jespino Mar 8, 2022
4bc2dbd
Fixing frontend tests
jespino Mar 8, 2022
aed0741
fix webapp compile error, missing enableSharedBoards (#2501)
wiggin77 Mar 9, 2022
529f055
Fixing duplication on postgres
jespino Mar 9, 2022
d201a96
Adding back views to the sidebar (#2494)
jespino Mar 9, 2022
0bae796
Fix #2507. Update Swagger comments (#2508)
chenilim Mar 10, 2022
c518536
Fix the flash of the template selector on board/team switch (#2490)
jespino Mar 10, 2022
07ffa8a
Fixing the bot badge (#2487)
jespino Mar 10, 2022
b4665f6
simplifying a bit the team store sync between channels and focalboard…
jespino Mar 10, 2022
ac079e5
Merge remote-tracking branch 'origin/main' into permissions-feature-b…
jespino Mar 10, 2022
87f9f67
Merge remote-tracking branch 'origin/main' into permissions-feature-b…
jespino Mar 11, 2022
ee672f0
Fix menu tests (#2528)
sbishel Mar 11, 2022
da22d1b
Merge remote-tracking branch 'origin/main' into permissions-feature-b…
jespino Mar 14, 2022
d173c6b
Added keyboard shortcut for boards switcher (#2407)
harshilsharma63 Mar 15, 2022
e374378
Fixed bug with scroll jumping when the card is opened: (#2477)
kamre Mar 15, 2022
2ffcf5d
Adding the frontend support for permissions and applying it to a big …
jespino Mar 15, 2022
12f83c8
Permissions branch: No sqlstore calls after app shutdown (#2530)
wiggin77 Mar 15, 2022
8a7dc32
Fixed migrations to allow upgrading from previous version (#2535)
harshilsharma63 Mar 15, 2022
c42ceef
Show properly the user avatar in the ShareBoard component (#2542)
jespino Mar 16, 2022
0565bb8
Fixing the last CI problems from the permissions-branch (#2541)
jespino Mar 16, 2022
91a9f4f
Reverting accidental change in the config.json
jespino Mar 17, 2022
6ff1668
Merge branch 'permissions-feature-branch' into support-dm
harshilsharma63 Mar 17, 2022
053686c
Fixed psql migrations for old focalbaord archives
harshilsharma63 Mar 17, 2022
b46be2d
Cleanup
harshilsharma63 Mar 17, 2022
7a76c45
Added missing board type update command
harshilsharma63 Mar 17, 2022
d440e3d
Optimizing table view (#2540)
jespino Mar 18, 2022
0721b5e
Merge remote-tracking branch 'origin/main' into permissions-feature-b…
jespino Mar 18, 2022
c880ef8
Removing Commenter role from the user role selector (#2561)
jespino Mar 18, 2022
87773c6
Shareboard cleanup (#2550)
sbishel Mar 18, 2022
06a6505
Fixing comments and cards with the new optimizations in the store (#2…
jespino Mar 18, 2022
b3a0bf5
Fixing property creation (#2563)
jespino Mar 18, 2022
d747a4f
Fix user selection in table view (#2565)
jespino Mar 18, 2022
b8dcbc4
Fixing focus new row in table view (#2567)
jespino Mar 18, 2022
41abdb4
Permissions branch: Fix sqlite table lock (CI) (#2568)
wiggin77 Mar 19, 2022
d3deb36
Fixing snapshots
jespino Mar 20, 2022
2638664
Merge branch 'permissions-feature-branch' into support-dm
harshilsharma63 Mar 21, 2022
5a78fda
Migrating center panel to functional component (#2562)
jespino Mar 21, 2022
452dcba
Merge remote-tracking branch 'origin/main' into permissions-feature-b…
jespino Mar 22, 2022
2c17094
Merge branch 'permissions-feature-branch' into support-dm
harshilsharma63 Mar 22, 2022
57a60ec
Fixed review comments
harshilsharma63 Mar 22, 2022
d27f952
Merge branch 'main' into support-dm
harshilsharma63 Mar 23, 2022
63d2fe4
Fixed server lint errors
harshilsharma63 Mar 23, 2022
46d61ae
Merge branch 'main' into support-dm
mattermod Mar 24, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"type": "go",
"request": "launch",
"mode": "debug",
"buildFlags": "-tags 'json1'",
"program": "${workspaceFolder}/server/main",
"cwd": "${workspaceFolder}"
},
Expand Down
29 changes: 16 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ ifeq ($(BUILD_NUMBER),)
BUILD_DATE := n/a
endif

BUILD_TAGS += json1

LDFLAGS += -X "github.com/mattermost/focalboard/server/model.BuildNumber=$(BUILD_NUMBER)"
LDFLAGS += -X "github.com/mattermost/focalboard/server/model.BuildDate=$(BUILD_DATE)"
LDFLAGS += -X "github.com/mattermost/focalboard/server/model.BuildHash=$(BUILD_HASH)"
Expand All @@ -35,25 +37,25 @@ ci: server-test

server: ## Build server for local environment.
$(eval LDFLAGS += -X "github.com/mattermost/focalboard/server/model.Edition=dev")
cd server; go build -ldflags '$(LDFLAGS)' -o ../bin/focalboard-server ./main
cd server; go build -ldflags '$(LDFLAGS)' -tags '$(BUILD_TAGS)' -o ../bin/focalboard-server ./main

server-mac: ## Build server for Mac.
mkdir -p bin/mac
$(eval LDFLAGS += -X "github.com/mattermost/focalboard/server/model.Edition=mac")
cd server; env GOOS=darwin GOARCH=$(MAC_GO_ARCH) go build -ldflags '$(LDFLAGS)' -o ../bin/mac/focalboard-server ./main
cd server; env GOOS=darwin GOARCH=$(MAC_GO_ARCH) go build -ldflags '$(LDFLAGS)' -tags '$(BUILD_TAGS)' -o ../bin/mac/focalboard-server ./main

server-linux: ## Build server for Linux.
mkdir -p bin/linux
$(eval LDFLAGS += -X "github.com/mattermost/focalboard/server/model.Edition=linux")
cd server; env GOOS=linux GOARCH=amd64 go build -ldflags '$(LDFLAGS)' -o ../bin/linux/focalboard-server ./main
cd server; env GOOS=linux GOARCH=amd64 go build -ldflags '$(LDFLAGS)' -tags '$(BUILD_TAGS)' -o ../bin/linux/focalboard-server ./main

server-win: ## Build server for Windows.
$(eval LDFLAGS += -X "github.com/mattermost/focalboard/server/model.Edition=win")
cd server; env GOOS=windows GOARCH=amd64 go build -ldflags '$(LDFLAGS)' -o ../bin/win/focalboard-server.exe ./main
cd server; env GOOS=windows GOARCH=amd64 go build -ldflags '$(LDFLAGS)' -tags '$(BUILD_TAGS)' -o ../bin/win/focalboard-server.exe ./main

server-dll: ## Build server as Windows DLL.
$(eval LDFLAGS += -X "github.com/mattermost/focalboard/server/model.Edition=win")
cd server; env GOOS=windows GOARCH=amd64 go build -ldflags '$(LDFLAGS)' -buildmode=c-shared -o ../bin/win-dll/focalboard-server.dll ./main
cd server; env GOOS=windows GOARCH=amd64 go build -ldflags '$(LDFLAGS)' -tags '$(BUILD_TAGS)' -buildmode=c-shared -o ../bin/win-dll/focalboard-server.dll ./main

server-linux-package: server-linux webapp
rm -rf package
Expand Down Expand Up @@ -83,7 +85,6 @@ server-linux-package-docker:

generate: ## Install and run code generators.
cd server; go get -modfile=go.tools.mod github.com/golang/mock/mockgen
cd server; go get -modfile=go.tools.mod github.com/jteeuwen/go-bindata
cd server; go generate ./...

server-lint: ## Run linters on server code.
Expand All @@ -101,27 +102,28 @@ modd-precheck:
fi; \

watch: modd-precheck ## Run both server and webapp watching for changes
modd
env FOCALBOARD_BUILD_TAGS='$(BUILD_TAGS)' modd

watch-single-user: modd-precheck ## Run both server and webapp in single user mode watching for changes
env FOCALBOARDSERVER_ARGS=--single-user modd
env FOCALBOARDSERVER_ARGS=--single-user FOCALBOARD_BUILD_TAGS='$(BUILD_TAGS)' modd

watch-server-test: modd-precheck ## Run server tests watching for changes
modd -f modd-servertest.conf
env FOCALBOARD_BUILD_TAGS='$(BUILD_TAGS)' modd -f modd-servertest.conf

server-test: server-test-sqlite server-test-mysql server-test-postgres ## Run server tests

server-test-sqlite: ## Run server tests using sqlite
cd server; go test -race -v -count=1 ./...
cd server; go test -tags '$(BUILD_TAGS)' -race -v -count=1 -timeout=30m ./...

server-test-mysql: export FB_UNIT_TESTING=1
server-test-mysql: export FB_STORE_TEST_DB_TYPE=mysql
server-test-mysql: export FB_STORE_TEST_DOCKER_PORT=44445

server-test-mysql: ## Run server tests using mysql
@echo Starting docker container for mysql
docker-compose -f ./docker-testing/docker-compose-mysql.yml down -v --remove-orphans
docker-compose -f ./docker-testing/docker-compose-mysql.yml run start_dependencies
cd server; go test -race -v -count=1 ./...
cd server; go test -tags '$(BUILD_TAGS)' -race -v -count=1 -timeout=30m ./...
docker-compose -f ./docker-testing/docker-compose-mysql.yml down -v --remove-orphans

server-test-postgres: export FB_UNIT_TESTING=1
Expand All @@ -130,8 +132,9 @@ server-test-postgres: export FB_STORE_TEST_DOCKER_PORT=44446

server-test-postgres: ## Run server tests using postgres
@echo Starting docker container for postgres
docker-compose -f ./docker-testing/docker-compose-postgres.yml down -v --remove-orphans
docker-compose -f ./docker-testing/docker-compose-postgres.yml run start_dependencies
cd server; go test -race -v -count=1 ./...
cd server; go test -tags '$(BUILD_TAGS)' -race -v -count=1 -timeout=30m ./...
docker-compose -f ./docker-testing/docker-compose-postgres.yml down -v --remove-orphans

webapp: ## Build webapp.
Expand All @@ -141,7 +144,7 @@ webapp-test: ## jest tests for webapp
cd webapp; npm run test

watch-plugin: modd-precheck ## Run and upload the plugin to a development server
modd -f modd-watchplugin.conf
env FOCALBOARD_BUILD_TAGS='$(BUILD_TAGS)' modd -f modd-watchplugin.conf

live-watch-plugin: modd-precheck ## Run and update locally the plugin in the development server
cd mattermost-plugin; make live-watch
Expand Down
8 changes: 4 additions & 4 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"serverRoot": "http://localhost:8000",
"port": 8000,
"dbtype": "sqlite3",
"dbconfig": "./focalboard.db",
"port": 8000,
"dbtype": "sqlite3",
"dbconfig": "./focalboard.db",
"dbtableprefix": "",
"postgres_dbconfig": "dbname=focalboard sslmode=disable",
"test_dbconfig": "file::memory:?cache=shared",
Expand All @@ -21,5 +21,5 @@
"authMode": "native",
"logging_cfg_file": "",
"audit_cfg_file": "",
"enablepublicsharedboards": false
"enablePublicSharedBoards": false
}
2 changes: 1 addition & 1 deletion experiments/webext/src/utils/networking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export async function logIn(host: string, username: string, password: string) {

export async function getBoards(host: string, token: string) {
const json = await request('GET', host, 'workspaces/0/blocks?type=board', null, token) as Board[]
return json.filter(board => !board.fields.isTemplate)
return json.filter(board => !board.isTemplate)
}

export async function findUrlPropertyId(host: string, token: string, boardId: string) {
Expand Down
2 changes: 1 addition & 1 deletion import/asana/importAsana.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function convert(input: Asana): Block[] {
type: 'select',
options
}
board.fields.cardProperties = [cardProperty]
board.cardProperties = [cardProperty]
blocks.push(board)

// Board view
Expand Down
20 changes: 10 additions & 10 deletions import/jira/jiraImporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,41 +90,41 @@ function convert(items: any[]) {
board.title = 'Jira import'

// Compile standard properties
board.fields.cardProperties = []
board.cardProperties = []

const priorityProperty = buildCardPropertyFromValues('Priority', items.map(o => o.priority?._))
board.fields.cardProperties.push(priorityProperty)
board.cardProperties.push(priorityProperty)

const statusProperty = buildCardPropertyFromValues('Status', items.map(o => o.status?._))
board.fields.cardProperties.push(statusProperty)
board.cardProperties.push(statusProperty)

const resolutionProperty = buildCardPropertyFromValues('Resolution', items.map(o => o.resolution?._))
board.fields.cardProperties.push(resolutionProperty)
board.cardProperties.push(resolutionProperty)

const typeProperty = buildCardPropertyFromValues('Type', items.map(o => o.type?._))
board.fields.cardProperties.push(typeProperty)
board.cardProperties.push(typeProperty)

const assigneeProperty = buildCardPropertyFromValues('Assignee', items.map(o => o.assignee?._))
board.fields.cardProperties.push(assigneeProperty)
board.cardProperties.push(assigneeProperty)

const reporterProperty = buildCardPropertyFromValues('Reporter', items.map(o => o.reporter?._))
board.fields.cardProperties.push(reporterProperty)
board.cardProperties.push(reporterProperty)

const originalUrlProperty: IPropertyTemplate = {
id: Utils.createGuid(),
name: 'Original URL',
type: 'url',
options: []
}
board.fields.cardProperties.push(originalUrlProperty)
board.cardProperties.push(originalUrlProperty)

const createdDateProperty: IPropertyTemplate = {
id: Utils.createGuid(),
name: 'Created Date',
type: 'date',
options: []
}
board.fields.cardProperties.push(createdDateProperty)
board.cardProperties.push(createdDateProperty)

blocks.push(board)

Expand Down Expand Up @@ -240,4 +240,4 @@ function showHelp() {
exit(1)
}

export { run }
export { run }
4 changes: 2 additions & 2 deletions import/notion/importNotion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function convert(input: any[], title: string): Block[] {
type: 'select',
options: []
}
board.fields.cardProperties.push(cardProperty)
board.cardProperties.push(cardProperty)
})

// Set all column types to select
Expand Down Expand Up @@ -177,7 +177,7 @@ function convert(input: any[], title: string): Block[] {
continue
}

const cardProperty = board.fields.cardProperties.find((o) => o.name === key)!
const cardProperty = board.cardProperties.find((o) => o.name === key)!
let option = cardProperty.options.find((o) => o.value === value)
if (!option) {
const color = optionColors[optionColorIndex % optionColors.length]
Expand Down
4 changes: 2 additions & 2 deletions import/todoist/importTodoist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function convert(input: Todoist, project: Project): Block[] {
console.log(`Board: ${project.name}`)
board.rootId = board.id
board.title = project.name
board.fields.description = project.name
board.description = project.name

// Convert lists (columns) to a Select property
const optionIdMap = new Map<string, string>()
Expand Down Expand Up @@ -114,7 +114,7 @@ function convert(input: Todoist, project: Project): Block[] {
type: 'select',
options
}
board.fields.cardProperties = [cardProperty]
board.cardProperties = [cardProperty]
blocks.push(board)

// Board view
Expand Down
4 changes: 2 additions & 2 deletions import/trello/importTrello.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function convert(input: Trello): Block[] {
console.log(`Board: ${input.name}`)
board.rootId = board.id
board.title = input.name
board.fields.description = input.desc
board.description = input.desc

// Convert lists (columns) to a Select property
const optionIdMap = new Map<string, string>()
Expand All @@ -92,7 +92,7 @@ function convert(input: Trello): Block[] {
type: 'select',
options
}
board.fields.cardProperties = [cardProperty]
board.cardProperties = [cardProperty]
blocks.push(board)

// Board view
Expand Down
4 changes: 4 additions & 0 deletions linux/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"github.com/google/uuid"
"github.com/mattermost/focalboard/server/server"
"github.com/mattermost/focalboard/server/services/config"
"github.com/mattermost/focalboard/server/services/permissions/localpermissions"
"github.com/webview/webview"

"github.com/mattermost/mattermost-server/v6/shared/mlog"
Expand Down Expand Up @@ -66,6 +67,8 @@ func runServer(port int) (*server.Server, error) {
return nil, err
}

permissionsService := localpermissions.New(db, logger)

params := server.Params{
Cfg: config,
SingleUserToken: sessionToken,
Expand All @@ -74,6 +77,7 @@ func runServer(port int) (*server.Server, error) {
ServerID: "",
WSAdapter: nil,
NotifyBackends: nil,
PermissionsService: permissionsService,
}

server, err := server.New(params)
Expand Down
Loading