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

[AC-1682] Flexible collections: EF data migrations integration tests #3937

Closed
wants to merge 119 commits into from

Commits on Nov 10, 2023

  1. Configuration menu
    Copy the full SHA
    e14ba4d View commit details
    Browse the repository at this point in the history
  2. [AC-1682] Added script to update [dbo].[CollectionUser] with [Manage]…

    … = 1 for all users with Manager role or 'EditAssignedCollections' permission
    r-tome committed Nov 10, 2023
    Configuration menu
    Copy the full SHA
    1527af7 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2023

  1. Configuration menu
    Copy the full SHA
    577e591 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    23a3e5c View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2023

  1. Apply suggestions from code review: Remove Manage permission from Col…

    …lection assignments
    
    Co-authored-by: Thomas Rittson <[email protected]>
    r-tome and eliykat committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    d693511 View commit details
    Browse the repository at this point in the history
  2. [AC-1682] Removed unnecessary Collection table join on ManagersEditAs…

    …signedCollectionUsers sql script
    r-tome committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    0475b93 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3e7e3a0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    be35a2b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b7773b6 View commit details
    Browse the repository at this point in the history

Commits on Dec 17, 2023

  1. [AC-1682] Added EF migrations

    r-tome committed Dec 17, 2023
    Configuration menu
    Copy the full SHA
    003b6dc View commit details
    Browse the repository at this point in the history
  2. [AC-1682] dotnet format

    r-tome committed Dec 17, 2023
    Configuration menu
    Copy the full SHA
    2e9be13 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2023

  1. [AC-1682] Add new rows to CollectionUser for Managers and users with …

    …EditAssignedCollections permission assigned to groups with collection access
    r-tome committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    7d718b6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    69c0997 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2023

  1. Merge branch 'ac/ac-1682/data-migrations-for-deprecated-permissions' …

    …into ac/ac-1682/ef-migrations
    r-tome committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    87d420a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5f1f7d6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fc8606a View commit details
    Browse the repository at this point in the history
  4. [AC-1682] MySql migrations

    r-tome committed Dec 19, 2023
    Configuration menu
    Copy the full SHA
    c5f1be4 View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2023

  1. [AC-1682] Postgres migrations

    r-tome committed Dec 20, 2023
    Configuration menu
    Copy the full SHA
    86ba89f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    73a1315 View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2024

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

Commits on Jan 10, 2024

  1. [AC-1682] Update FC data migration scripts to clear AccessAll flags a…

    …nd set all Managers to Users
    r-tome committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    fcd2dd3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8bf17eb View commit details
    Browse the repository at this point in the history
  3. [AC-1682] Created Organization_EnableCollectionEnhancements to migrat…

    …e organization data for flexible collections
    r-tome committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    dfc4032 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0d8609a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    54cc6fa View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2024

  1. Revert "[AC-1682] Deleted old data migration scripts"

    This reverts commit 54cc6fa.
    r-tome committed Jan 11, 2024
    Configuration menu
    Copy the full SHA
    a214c60 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ee43767 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    71978fe View commit details
    Browse the repository at this point in the history
  4. [AC-1682] Update data migration script to only enable collection enha…

    …ncements for organizations that have not yet migrated
    r-tome committed Jan 11, 2024
    Configuration menu
    Copy the full SHA
    f4450c0 View commit details
    Browse the repository at this point in the history
  5. [AC-1682] Updated AccessAllCollectionGroups migration script to use U…

    …ser_BumpAccountRevisionDateByCollectionId
    r-tome committed Jan 11, 2024
    Configuration menu
    Copy the full SHA
    8cc8895 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8a5ea76 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    68c586f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ba06076 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f78e28f View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    3bf1b53 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    c4ad7d7 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    96b5278 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2024

  1. Configuration menu
    Copy the full SHA
    5c08d18 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    19fb7e5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    752e2c0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d5b41c1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    667f3cd View commit details
    Browse the repository at this point in the history
  6. Merge branch 'ac/ac-1682/data-migrations-for-deprecated-permissions' …

    …into ac/ac-1682/ef-migrations
    r-tome committed Jan 12, 2024
    Configuration menu
    Copy the full SHA
    57cb97d View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2024

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

Commits on Feb 16, 2024

  1. Merge branch 'main' into ac/ac-1682/ef-migrations

    # Conflicts:
    #	src/Sql/dbo/Stored Procedures/Organization_EnableCollectionEnhancements.sql
    #	util/SqliteMigrations/SqliteMigrations.csproj
    r-tome committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    39e336e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f7f692c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6d1ead5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a24465b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2f434b3 View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2024

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

Commits on Feb 27, 2024

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

Commits on Mar 22, 2024

  1. Configuration menu
    Copy the full SHA
    6c21d4e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5383cd1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bb00cb4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d6f7d94 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d367f6d View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2024

  1. Configuration menu
    Copy the full SHA
    9bde160 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    262887f View commit details
    Browse the repository at this point in the history
  3. [AC-1682] dotnet format

    r-tome committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    00eea06 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1de0f32 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6651bb1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    71f574f View commit details
    Browse the repository at this point in the history
  7. [AC-2323] Fix script comment

    r-tome committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    73d455b View commit details
    Browse the repository at this point in the history
  8. [AC-2323] Fixed typo

    r-tome committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    f131004 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2024

  1. [AC-1682] Fixed Sqlite query

    r-tome committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    26f5bf8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3d6ef1d View commit details
    Browse the repository at this point in the history
  3. [AC-1682] Moved EF data migration scripts to Infrastructure.EntityFra…

    …mework project and added an interface (IExecution) to run them against the database
    r-tome committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    d3f5184 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2a6b53e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0c8faa0 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2024

  1. Configuration menu
    Copy the full SHA
    c20912f View commit details
    Browse the repository at this point in the history
  2. [AC-1682] Removed MySql transaction from script because EF migration …

    …already wraps it under its own transaction
    r-tome committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    7b54d78 View commit details
    Browse the repository at this point in the history
  3. [AC-1682] Setting FlexibleCollections = 1 only for Orgs that had data…

    … migrated in previous steps
    r-tome committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    28bba94 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a957530 View commit details
    Browse the repository at this point in the history
  5. [AC-1682] Fixed MySql script

    r-tome committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    deee483 View commit details
    Browse the repository at this point in the history
  6. [AC-1682] Fixed Postgres query

    r-tome committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    c3ca9ec View commit details
    Browse the repository at this point in the history
  7. [AC-1682] Fix Sqlite query

    r-tome committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    fada0a8 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2024

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

Commits on Apr 3, 2024

  1. Configuration menu
    Copy the full SHA
    6c290e2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f98646a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bd3b21b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8ad901f View commit details
    Browse the repository at this point in the history
  5. [AC-1682] Added unit test to verify migration across multiple organiz…

    …ations and checked for incorrect associations between organization users and collections
    r-tome committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    bf34e96 View commit details
    Browse the repository at this point in the history
  6. Revert "Merge branch 'main' into ac/ac-1682/ef-migrations"

    This reverts commit f98646a, reversing
    changes made to 7dfd282.
    r-tome committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    e027bb4 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2024

  1. Configuration menu
    Copy the full SHA
    58721cd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    eb7794d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2fbba0e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ab95045 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    26768b7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9260ed9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    617cc6a View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2024

  1. [AC-1682] Added MySql migration and script

    (cherry picked from commit d367f6d)
    r-tome committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    0fbf5c1 View commit details
    Browse the repository at this point in the history
  2. [AC-1682] Added Postgres migration and script

    (cherry picked from commit 9bde160)
    r-tome committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    61f611e View commit details
    Browse the repository at this point in the history
  3. [AC-1682] Added Sqlite migration and script

    (cherry picked from commit 262887f)
    r-tome committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    36ba0de View commit details
    Browse the repository at this point in the history
  4. [AC-1682] dotnet format

    (cherry picked from commit 00eea06)
    r-tome committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    95e76f8 View commit details
    Browse the repository at this point in the history
  5. [AC-1682] Fixed Sqlite query

    (cherry picked from commit 26f5bf8)
    r-tome committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    d9c08d8 View commit details
    Browse the repository at this point in the history
  6. [AC-1682] Drop temp tables if they exist when starting the scripts

    (cherry picked from commit c20912f)
    r-tome committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    7f7ffe1 View commit details
    Browse the repository at this point in the history
  7. [AC-1682] Removed MySql transaction from script because EF migration …

    …already wraps it under its own transaction
    
    (cherry picked from commit 7b54d78)
    r-tome committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    bbff087 View commit details
    Browse the repository at this point in the history
  8. [AC-1682] Setting FlexibleCollections = 1 only for Orgs that had data…

    … migrated in previous steps
    
    (cherry picked from commit 28bba94)
    r-tome committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    139318e View commit details
    Browse the repository at this point in the history
  9. [AC-1682] Updated queries to check for OrganizationId

    (cherry picked from commit a957530)
    r-tome committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    4ed911a View commit details
    Browse the repository at this point in the history
  10. [AC-1682] Fixed MySql script

    (cherry picked from commit deee483)
    r-tome committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    e2857ad View commit details
    Browse the repository at this point in the history
  11. [AC-1682] Fixed Postgres query

    (cherry picked from commit c3ca9ec)
    r-tome committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    467e3dc View commit details
    Browse the repository at this point in the history
  12. [AC-1682] Fix Sqlite query

    (cherry picked from commit fada0a8)
    r-tome committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    28bfb52 View commit details
    Browse the repository at this point in the history
  13. [AC-1682] Reverted scripts back to enabling Flexible Collections to a…

    …ll existing Orgs
    
    (cherry picked from commit bd3b21b)
    r-tome committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    0a1f297 View commit details
    Browse the repository at this point in the history
  14. [AC-1682] Removed dropping temporary table from scripts

    (cherry picked from commit eb7794d)
    r-tome committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    51c914e View commit details
    Browse the repository at this point in the history
  15. [AC-1682] Removed other temp table drops

    (cherry picked from commit 26768b7)
    r-tome committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    c37b0c1 View commit details
    Browse the repository at this point in the history
  16. [AC-1978] Fix issue that allows the web app to have the user type Man…

    …ager available
    
    (cherry picked from commit 2890f78)
    r-tome committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    7dc789f View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2024

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

Commits on Apr 25, 2024

  1. Configuration menu
    Copy the full SHA
    c0f16f4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    36cdca7 View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2024

  1. Configuration menu
    Copy the full SHA
    ba274f2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ee50ea5 View commit details
    Browse the repository at this point in the history
  3. [AC-1682] Moved EF data migration scripts to Infrastructure.EntityFra…

    …mework project and added an interface (IExecution) to run them against the database
    r-tome committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    6edf1e0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    040e640 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ad659bd View commit details
    Browse the repository at this point in the history
  6. [AC-1682] Added unit test to verify migration across multiple organiz…

    …ations and checked for incorrect associations between organization users and collections
    r-tome committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    51ac31e View commit details
    Browse the repository at this point in the history
  7. [AC-1682] Added group to test

    r-tome committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    22204a9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8af2e95 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f79bba5 View commit details
    Browse the repository at this point in the history
  10. Merge branch 'ac/ac-1682/ef-migrations-tests' of https://github.com/b…

    …itwarden/server into ac/ac-1682/ef-migrations-tests
    
    # Conflicts:
    #	src/Api/Billing/Controllers/ProviderBillingController.cs
    #	src/Api/Billing/Models/Responses/ProviderSubscriptionResponse.cs
    #	src/Billing/Controllers/StripeController.cs
    #	src/Core/Billing/Commands/IAssignSeatsToClientOrganizationCommand.cs
    #	src/Core/Billing/Extensions/BillingExtensions.cs
    #	src/Core/Billing/Extensions/ServiceCollectionExtensions.cs
    #	src/Core/Billing/Models/ConfiguredProviderPlanDTO.cs
    #	src/Core/Billing/Queries/IProviderBillingQueries.cs
    #	src/Core/Billing/Queries/ISubscriberQueries.cs
    #	src/Core/Billing/Queries/Implementations/ProviderBillingQueries.cs
    #	src/Core/Billing/Queries/Implementations/SubscriberQueries.cs
    #	src/Core/Constants.cs
    #	src/Core/Core.csproj
    #	src/Core/Models/Business/SubscriptionUpdate.cs
    #	src/Core/Services/Implementations/StripePaymentService.cs
    #	src/Infrastructure.EntityFramework/AdminConsole/Repositories/Executions/Sqlite/OrganizationEnableCollectionEnhancements.sql
    #	test/Api.IntegrationTest/SecretsManager/Controllers/SecretsControllerTests.cs
    #	test/Api.Test/Billing/Controllers/ProviderBillingControllerTests.cs
    #	test/Core.Test/Billing/Queries/ProviderBillingQueriesTests.cs
    #	test/Core.Test/Billing/Queries/SubscriberQueriesTests.cs
    r-tome committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    a0b0757 View commit details
    Browse the repository at this point in the history