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

Enforce Pricing for Task/Project Management Features #6767

Merged
merged 16 commits into from
Jan 23, 2023
Merged

Conversation

hotzenklotz
Copy link
Member

@hotzenklotz hotzenklotz commented Jan 19, 2023

This PR adds restrictions to the availability of certain features depending on your organization's plan. In particular, it prevents unauthorized access to Task & Projects etc.

Changes:

  • Added current orga to wk store, including Redux actions/reducers/...
  • Enforce pricing in navbar links
  • Enforce pricing in router
  • Added a small new page when you are not authorized to access a feature
  • Enforce "Add Folder" in dashboard

URL of deployed dev instance (used for testing):

  • https://___.webknossos.xyz

Steps to test:

  • Check that the correct features were restricted and with the right plan
  • Change your orgas plan to Basic/Team/Power... in the DB and check if the restrictions apply

Issues:


(Please delete unneeded items, merge only when none are left open)

…orce_plan

* 'master' of github.com:scalableminds/webknossos:
  Update VoxelyticsDAO.scala
  Show voxel size in details sidebar in new datasets tab (#6755)
  Fix font import (#6754)
  Fix breadcrumbs (II) (#6753)
…orce_plan

* 'master' of github.com:scalableminds/webknossos:
  Make voxelytics sql queries compatible with postgres 10 (#6763)
  Adapt viewport and crosshair colors to new color scheme (#6760)
  minor logo fix (#6762)
  Fix superuser organization switching (#6756)
…orce_plan

* 'master' of github.com:scalableminds/webknossos:
  Fix antd deprecation warning for <Modal open/visible> (#6765)
  Fix exploring remote datasets with no credentials (#6764)
@hotzenklotz hotzenklotz self-assigned this Jan 19, 2023
@hotzenklotz hotzenklotz mentioned this pull request Jan 19, 2023
17 tasks
@hotzenklotz hotzenklotz changed the title Enforce Pricing for Advanced Features Enforce Pricing for Task/Project Management Features Jan 19, 2023
@hotzenklotz hotzenklotz requested review from philippotto and fm3 and removed request for fm3 January 20, 2023 08:59
Copy link
Member

@philippotto philippotto left a comment

Choose a reason for hiding this comment

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

looks very solid already 👍 I've left some minor comments. after these, I'll test the pr.

frontend/javascripts/messages.tsx Outdated Show resolved Hide resolved
frontend/javascripts/main.tsx Outdated Show resolved Hide resolved
frontend/javascripts/main.tsx Outdated Show resolved Hide resolved
frontend/javascripts/components/secured_route.tsx Outdated Show resolved Hide resolved
frontend/javascripts/components/secured_route.tsx Outdated Show resolved Hide resolved
frontend/javascripts/components/pricing_enforcers.tsx Outdated Show resolved Hide resolved
frontend/javascripts/components/pricing_enforcers.tsx Outdated Show resolved Hide resolved
frontend/javascripts/components/pricing_enforcers.tsx Outdated Show resolved Hide resolved
@hotzenklotz
Copy link
Member Author

@philippotto I considered you suggesting and implemented the feedback. Please re-review. Thanks.

Copy link
Member

@philippotto philippotto left a comment

Choose a reason for hiding this comment

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

Nice, works very well 👍

@bulldozer-boy bulldozer-boy bot merged commit d195800 into master Jan 23, 2023
@bulldozer-boy bulldozer-boy bot deleted the enforce_plan branch January 23, 2023 12:51
@philippotto philippotto mentioned this pull request Jan 26, 2023
7 tasks
@philippotto philippotto mentioned this pull request Feb 3, 2023
2 tasks
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