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

add protected and private modifiers to DAO hierarchy #6698

Merged
merged 3 commits into from
Dec 15, 2022
Merged

Conversation

fm3
Copy link
Member

@fm3 fm3 commented Dec 14, 2022

Re-generating Tables.scala from a changed SQL schema led to a ton of unneeded recompilation.

This PR adds protected/private access modifiers in the DAO hierarchy to make everything that has stuff from Tables.scala in the signature protected/private in the DAO scope. This was implicitly already the case for most methods. The exception was parse, where two non-private usages existed in associated DAOs (SharedAnnotationsDAO, UserTeamRolesDAO). I merged these into the main DAOs AnnotationsDAO and UserDAO respectively to avoid having to make parse public.

URL of deployed dev instance (used for testing):

Steps to test:

  • CI should be enough to ensure we didn’t break anything
  • To see the speedup, add a new column to a table in schema.sql, execute yarn refresh-schema and recompile → Should not recompile over a hundred source files

  • Ready for review

@fm3 fm3 self-assigned this Dec 14, 2022
@fm3 fm3 marked this pull request as ready for review December 14, 2022 11:28
@fm3 fm3 requested a review from jstriebel December 14, 2022 11:30
Copy link
Contributor

@jstriebel jstriebel left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@fm3 fm3 enabled auto-merge (squash) December 15, 2022 14:25
@fm3
Copy link
Member Author

fm3 commented Dec 15, 2022

cc @frcroth (please do the same thing in the new DAO in #6646 when pulling in the master)

@fm3 fm3 merged commit 5064a60 into master Dec 15, 2022
@fm3 fm3 deleted the dao-private branch December 15, 2022 14:43
hotzenklotz added a commit that referenced this pull request Dec 20, 2022
…cing

* 'master' of github.com:scalableminds/webknossos:
  Automatically open (and close) quick select settings when labeling in… (#6706)
  Add Terms of Service Acceptance Concept (#6632)
  Fix crash in publication page and add error boundaries (#6700)
  temporarily disable vx related polling (#6702)
  add protected and private modifiers to DAO hierarchy (#6698)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants