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

Disable projects when user downgrades #2128

Merged

Conversation

danvixent
Copy link
Collaborator

No description provided.

@danvixent danvixent merged commit ecd1e43 into daniel/feat/licensing Aug 30, 2024
4 checks passed
@danvixent danvixent deleted the daniel/feat/disable_projects_when_user_dowgrades branch August 30, 2024 09:19
jirevwe pushed a commit that referenced this pull request Aug 30, 2024
* dump

* feat: add keygen licenser implementation

* feat: gate more features

* feat: fix & add tests for licensing

* feat: fix what test

* fix: remove unused import

* fix: add skipHook

* fix: fix PostRun panic

* feat: fix task tests

* fix:
- pass licenser fields to services
- fix organisation_member_test.go & organisation_test.go

* fix: add license key env for testcon tests

* fix: fix license error check

* fix: add test license key env to docker-compose-test.yml

* fix: add CONVOY_LICENSE_KEY to integration_test_helper.go

* fix: print TEST_LICENSE_KEY

* fix: remove print

* fix: print

* fix: print license key

* fix: pass license key in docker-compose-test.yml

* fix:
- remove print
- use withEnv in integration_test.go

* fix: add keygen_test.go

* fix: remove plan_type validation

* fix: make TestKeygenLicenserBoolMethods more insulated

* fix: add TestNewDispatcher

* deprecate: deprecate RedirectToProjects for old convoy routes

* fix:
- pass licenser to UpdateEndpointService
- check for advanced endpoint mgmt before calling SendRequest

* fix: add CommunityPlan & communityLicenser

* fix: extract feature list from license entitlements

* fix: add GET /ui/license_features api

* fix: go generate

* fix: move TEST_LICENSE_KEY to Run integration tests (with test containers)

* fix: extract license limits from metadata

* fix: move /ui/license_features to BuildControlPlaneRoutes

* fix: fix GetLicenseFeatures response msg

* fix: use json.RawMessage as return type for FeatureListJSON method

* fix:
- change /ui/license_features to /ui/license/features
- add integration build tag to noop.go
- check compose error

* fix: fix lint issues

* fix: edit some feature names

* fix: change keygen creds

* fix: check compose error for container exited with code 0

* feat: gate project creation

* feat: add omitempty tag to Properties.Limit

* feat: change CreateOrgMember gating to Register user gating

* fix: fix TestCountProjects

* feat: gate portal links

* fix:
- pass projectRepo to licenser from hooks.go
- fix ProjectLimit mapstructure tag

* fix:
- switch to counting users from org members
- gate boostrap command

* fix: fix Test_communityLicenser

* fix:
- remove TestCountOrganisationMembers
- add TestCountUsers

* fix: fix TestCountUsers

* add license gating (#2123)

* add licensing

* update license tags

* fix: use userRepo.CountUsers in ensureDefaultUser

* fix: remove CreateUser from commnunity licenser

* fix: fix Test_communityLicenser

* add portal links gating

* fix: switch feature list json to `allowed: true/false` because of features with dynamic limits

* fix: go generate

* fix: fix lint issues

* fix: fix /license/features in guestRoutes

* check license limits

* remove console.log

* fetch licenses on org creation

* update user locense gating

* update license gating on projects, teams, transform and filters

* fix: check license expiry

* Disable projects when user downgrades (#2128)

* fix:
- add RemoveEnabledProject
- check enabledProjects under limit before adding new project

* fix: add test case for RemoveEnabledProject

* fix: gate portal link api in data plane routes

* fix: change ErrProjectDisabled err msg

---------

Co-authored-by: Pelumi Muyiwa-Oni <[email protected]>
Oluwadaminiola added a commit that referenced this pull request Oct 1, 2024
* dump

* feat: add keygen licenser implementation

* feat: gate more features

* feat: fix & add tests for licensing

* feat: fix what test

* fix: remove unused import

* fix: add skipHook

* fix: fix PostRun panic

* feat: fix task tests

* fix:
- pass licenser fields to services
- fix organisation_member_test.go & organisation_test.go

* fix: add license key env for testcon tests

* fix: fix license error check

* fix: add test license key env to docker-compose-test.yml

* fix: add CONVOY_LICENSE_KEY to integration_test_helper.go

* fix: print TEST_LICENSE_KEY

* fix: remove print

* fix: print

* fix: print license key

* fix: pass license key in docker-compose-test.yml

* fix:
- remove print
- use withEnv in integration_test.go

* fix: add keygen_test.go

* fix: remove plan_type validation

* fix: make TestKeygenLicenserBoolMethods more insulated

* fix: add TestNewDispatcher

* deprecate: deprecate RedirectToProjects for old convoy routes

* fix:
- pass licenser to UpdateEndpointService
- check for advanced endpoint mgmt before calling SendRequest

* fix: add CommunityPlan & communityLicenser

* fix: extract feature list from license entitlements

* fix: add GET /ui/license_features api

* fix: go generate

* fix: move TEST_LICENSE_KEY to Run integration tests (with test containers)

* fix: extract license limits from metadata

* fix: move /ui/license_features to BuildControlPlaneRoutes

* fix: fix GetLicenseFeatures response msg

* fix: use json.RawMessage as return type for FeatureListJSON method

* fix:
- change /ui/license_features to /ui/license/features
- add integration build tag to noop.go
- check compose error

* fix: fix lint issues

* fix: edit some feature names

* fix: change keygen creds

* fix: check compose error for container exited with code 0

* feat: gate project creation

* feat: add omitempty tag to Properties.Limit

* feat: change CreateOrgMember gating to Register user gating

* fix: fix TestCountProjects

* feat: gate portal links

* fix:
- pass projectRepo to licenser from hooks.go
- fix ProjectLimit mapstructure tag

* fix:
- switch to counting users from org members
- gate boostrap command

* fix: fix Test_communityLicenser

* fix:
- remove TestCountOrganisationMembers
- add TestCountUsers

* fix: fix TestCountUsers

* add license gating (#2123)

* add licensing

* update license tags

* fix: use userRepo.CountUsers in ensureDefaultUser

* fix: remove CreateUser from commnunity licenser

* fix: fix Test_communityLicenser

* add portal links gating

* fix: switch feature list json to `allowed: true/false` because of features with dynamic limits

* fix: go generate

* fix: fix lint issues

* fix: fix /license/features in guestRoutes

* check license limits

* remove console.log

* fetch licenses on org creation

* update user locense gating

* update license gating on projects, teams, transform and filters

* fix: check license expiry

* Disable projects when user downgrades (#2128)

* fix:
- add RemoveEnabledProject
- check enabledProjects under limit before adding new project

* fix: add test case for RemoveEnabledProject

* fix: gate portal link api in data plane routes

* fix: change ErrProjectDisabled err msg

---------

Co-authored-by: Pelumi Muyiwa-Oni <[email protected]>
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.

2 participants