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

feat: Multi-tenancy / Add support for multiple tenants #561

Merged
merged 40 commits into from
May 20, 2024

Commits on Mar 7, 2024

  1. feat: multi tenancy basic configuration (#480)

    * Add multitenancy app with some basic model configuration
    
    * Add creation of signup tenant and add it in currentUser query schema.
    
    * Add tests
    
    * Add short documentation for multi tenancy manager
    
    * PR fixes & linter fix
    
    * Add migration
    
    * Documentation grammar
    wojcikmat committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    c9030a3 View commit details
    Browse the repository at this point in the history
  2. feat: multi tenancy basic tenants management (#483)

    * feat: Add crud for Tenants & middleware for current tenant and user role
    
    * Add missing migration
    
    * Add documentation
    
    * Reformat docs
    
    * Add batch creation of tenants to tests
    
    * Change the omitting rule for test coverage
    
    * PR fixes
    
    * Slug generation refactor
    
    * Refactor tenant model tests
    wojcikmat committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    94f91da View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2024

  1. feat: multi tenancy memberships management (#496)

    * Working invitation flow
    
    * Add migration
    
    * Fix existing tests
    
    * Add tests and connect existing invitations to newly created memberships
    
    * Add tenants queries with permission specific fields
    
    * Fix & add tests
    
    * Add invitation token & tests
    
    * Add some basic documentation
    
    * Handle invitation accepted at date
    
    * PR fixes
    wojcikmat authored Mar 8, 2024
    Configuration menu
    Copy the full SHA
    a032f68 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c4d4653 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2024

  1. Configuration menu
    Copy the full SHA
    bcb633f View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2024

  1. Configuration menu
    Copy the full SHA
    433bb89 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2024

  1. feat: multi tenancy refactor membership type (#506)

    * Add first name, last name, email and avatar to TenantMembershipType
    
    * Add mutations for update/delete tenant membership. Introduce validation for having at least one owner in tenant, and block inviting to default type tenant
    wojcikmat authored Mar 25, 2024
    Configuration menu
    Copy the full SHA
    0c2c41e View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2024

  1. feat: multi tenancy subscriptions (#509)

    * Change subscribtion customer model to Tenant
    
    * Fix tests
    
    * Add billing model
    wojcikmat authored Mar 27, 2024
    Configuration menu
    Copy the full SHA
    2a6d85b View commit details
    Browse the repository at this point in the history
  2. fix: multi tenancy enum type (#511)

    * Fix enum type converter
    
    * Remove type for role field, make it default
    
    * Add migration
    
    * Fix migrations conflict
    wojcikmat authored Mar 27, 2024
    Configuration menu
    Copy the full SHA
    9433ca2 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2024

  1. Configuration menu
    Copy the full SHA
    2aebe4a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    746360e View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2024

  1. feat: Make tenant dependent example CRUD demo item model (#512)

    * Make tenant dependent example CRUD demo item model
    
    * Remove redundant function
    
    * Possibly fix test
    
    * Send notifictions about CRUD item changes to tenant owners
    wojcikmat authored Apr 8, 2024
    Configuration menu
    Copy the full SHA
    1dcb2d2 View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2024

  1. Configuration menu
    Copy the full SHA
    bf26a59 View commit details
    Browse the repository at this point in the history
  2. feat: allow the user to change membership role (#515)

    * feat: allow the user to change membership role
    
    * chore: update tenant membership graphql adjustments
    
    * chore: update unit tests
    
    * chore: membership entry test refactor
    
    * chore: MembershipEntry tests refactor
    
    * feat: add onCompleted handler
    
    * chore: add toast test
    
    * chore: refactor membership entry tests
    
    * feat: add fil message, update tests
    
    * chore: snapshot update
    mskwierczynski authored Apr 9, 2024
    Configuration menu
    Copy the full SHA
    88ef08c View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2024

  1. Configuration menu
    Copy the full SHA
    6ed8325 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    96bc8a3 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2024

  1. feat: multi tenancy invitation notifications (#516)

    * Add notifications for created, accepted and declined invitation
    
    * Make tenantId required
    wojcikmat authored Apr 12, 2024
    Configuration menu
    Copy the full SHA
    cb687bb View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2024

  1. Configuration menu
    Copy the full SHA
    da0e893 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6f1f589 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cc77d19 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    76d4641 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f55519c View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2024

  1. Configuration menu
    Copy the full SHA
    091183a View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2024

  1. feat: multi tenancy subscription plan adjustments (#526)

    * feat: multi tenancy subscription plan adjustments
    
    * chore: refactor tests
    
    * chore: Modify `webapp-finances` rendering utils to include tenant providers
    
    * chore: adjust routing, tests fixes
    
    * chore: fix type error
    
    ---------
    
    Co-authored-by: Michal Kleszcz <[email protected]>
    mskwierczynski and mkleszcz authored Apr 18, 2024
    Configuration menu
    Copy the full SHA
    676b4c3 View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2024

  1. Configuration menu
    Copy the full SHA
    9943c91 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2024

  1. feat: Adjust subscriptions routing (#539)

    Add TenantRoleAccess component, fix subscriptions routing, add Subscription tab to tenant settings page
    mkleszcz authored May 9, 2024
    Configuration menu
    Copy the full SHA
    cb0040f View commit details
    Browse the repository at this point in the history
  2. feat: multi tenancy - add tenant removal form (#542)

    * feat: add a danger zone into General Settings of the organization with removal mutation
    
    ---------
    
    Co-authored-by: Michal Kleszcz <[email protected]>
    sdrejkarz and mkleszcz authored May 9, 2024
    Configuration menu
    Copy the full SHA
    8faf88e View commit details
    Browse the repository at this point in the history

Commits on May 10, 2024

  1. feat: multi tenancy delete tenant validation (#543)

    * Add delete tenant validation and subscription cancellation to mutation
    
    * Add test for tenant with free plan (nothing to cancel)
    wojcikmat authored May 10, 2024
    Configuration menu
    Copy the full SHA
    0018fe5 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2024

  1. Merge branch 'master' into feat/multi-tenancy

    # Conflicts:
    #	packages/webapp-libs/webapp-finances/src/utils/storybook.tsx
    #	packages/webapp/package.json
    #	pnpm-lock.yaml
    mkleszcz committed May 13, 2024
    Configuration menu
    Copy the full SHA
    0ab5c17 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    365d438 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c0888d5 View commit details
    Browse the repository at this point in the history
  4. fix: Fix type-check errors

    mkleszcz committed May 13, 2024
    Configuration menu
    Copy the full SHA
    bfa26b1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b43f3f0 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2024

  1. feat: add multi tenancy notifications (#550)

    Add multi tenancy notifications, Add reloadCommonQuery trigger to the notifications
    sdrejkarz authored May 16, 2024
    Configuration menu
    Copy the full SHA
    b4bc9a5 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2024

  1. fix: test coverage of webapp-tenants (#556)

    Fix test coverage for webapp-tenants
    sdrejkarz authored May 17, 2024
    Configuration menu
    Copy the full SHA
    361a728 View commit details
    Browse the repository at this point in the history
  2. feat: add additional info in the personal settings' members tab (#558)

    Add additional info in the personal settings' members tab
    sdrejkarz authored May 17, 2024
    Configuration menu
    Copy the full SHA
    48f019b View commit details
    Browse the repository at this point in the history
  3. Merge branch 'refs/heads/master' into feat/multi-tenancy

    # Conflicts:
    #	pnpm-lock.yaml
    mkleszcz committed May 17, 2024
    Configuration menu
    Copy the full SHA
    6127c1c View commit details
    Browse the repository at this point in the history

Commits on May 20, 2024

  1. Merge branch 'master' into feat/multi-tenancy

    # Conflicts:
    #	packages/webapp-libs/webapp-core/package.json
    #	pnpm-lock.yaml
    mkleszcz committed May 20, 2024
    Configuration menu
    Copy the full SHA
    9065ca3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c2ca5b3 View commit details
    Browse the repository at this point in the history
  3. fix: copies

    sdrejkarz committed May 20, 2024
    Configuration menu
    Copy the full SHA
    302e04a View commit details
    Browse the repository at this point in the history