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

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

merged 199 commits into from
Mar 25, 2022

Conversation

harshilsharma63
Copy link
Member

Summary

Migrate DM and private group message boards to a team

Ticket Link

Fixes #2398

jespino and others added 11 commits March 18, 2022 08:21
* Optimizing table view

* Reducing the amount of rendering for tables

* Some other performance improvements

* Improve the activeView updates

* Some extra simplifications

* Another small improvement

* Fixing tests

* Fixing linter errors

* Reducing a bit the amount of dependency with big objects in the store

* Small simplification
* Initial work on permissions gates

* Applying permissions gates in more places

* Adding more checks to the interface

* Adding more permissions gates and keeping the store up to date

* fixing some tests

* Fixing some more tests

* Fixing another test

* Fixing all tests and adding some more

* Adding no-permission snapshot tests

* Addressing PR review comments

* cleanup some shareboard settings

* remove unused property, fix for user items being displayed for non admin

* revert change, allow users to show

Co-authored-by: Jesús Espino <jespinog@gmail.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* fix sqlite table lock

* remove test db on teardown

* revert .gitignore

* fix goimport on migration code

* fix typo

* more linter fixes

* clean up tmp db for sqlstore tests

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
server/services/store/sqlstore/migrate.go Outdated Show resolved Hide resolved
server/services/store/sqlstore/migrate.go Show resolved Hide resolved
server/utils/utils.go Outdated Show resolved Hide resolved
server/services/store/sqlstore/migrate.go Outdated Show resolved Hide resolved
server/services/store/sqlstore/migrate.go Outdated Show resolved Hide resolved
jespino and others added 4 commits March 21, 2022 22:33
* Migrating center panel to functional component

* Fixing some tests

* Fixing another test

* Fixing linter errors

* Fixing types errors

* Fixing linter error

* Fixing cypress tests

* Fixing the last cypress test

* Simpliying a bit the code

* Making property insertion more robust

* Updating checkbox test
@harshilsharma63 harshilsharma63 requested a review from sbishel March 22, 2022 12:59
Base automatically changed from permissions-feature-branch to main March 22, 2022 14:24
@sbishel
Copy link
Collaborator

sbishel commented Mar 22, 2022

@harshilsharma63 - Can we get this updated before reviewing?

@harshilsharma63
Copy link
Member Author

@harshilsharma63 - Can we get this updated before reviewing?

@sbishel done. The flaky cypress tests are causing the CI to fail, but everything else is working fine.

@@ -67,7 +67,6 @@ linters:
- unconvert
- unused
- whitespace
- gocyclo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we removing this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jespino it was complaining about cyclomatic complexity exceeding the default threshold of 30 for the data migration function (which currently handles about 4-5 kinds of data migrations). IN the future, I see only more data migrations being added there, so increasing the linter's threshold value won't work in the long term.

I can optimize the code to reduce the conditions and returns paths but it won't work for long when we add the next data migration.

Hence, I removed the linter altogether. I'm open to any alternate solution.

@sbishel
Copy link
Collaborator

sbishel commented Mar 24, 2022

/update-branch

@sbishel sbishel merged commit abc438e into main Mar 25, 2022
@sbishel sbishel deleted the support-dm branch March 25, 2022 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Permissions branch: Existsing Boards Are Not Migrated Correctly
9 participants