-
Notifications
You must be signed in to change notification settings - Fork 518
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
Cosmos DB initialization logic to a new assembly #3743
Merged
mahajan-xor
merged 38 commits into
main
from
personal/anilm/fhir-cosmosdbinitialization-newassembly
Jul 4, 2024
Merged
Cosmos DB initialization logic to a new assembly #3743
mahajan-xor
merged 38 commits into
main
from
personal/anilm/fhir-cosmosdbinitialization-newassembly
Jul 4, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.Icollectionupdater copied to Istoreprocedure in cosmos db old project 2.older Istoreprocedure logic moved to new project with filename IStoredProcedureInstaller 3.StoredProcedureInstaller.cs removed from old db(Microsoft.Health.Fhir.CosmosDb) and moved this logic to new project with filename DataPlaneStoredProcedureInstaller.cs 4.Configs folder contains classes like CosmosDataStoreConfiguration,CosmosCollectionConfiguration moved to Microsoft.Health.Fhir.CosmosDb.Core project 5.Following classes moved to Microsoft.Health.Fhir.CosmosDb.Core project -SystemData -KnownDocumentProperties -ICollectionUpdater -CollectionVersion -CollectionUpgradeManager -IUpgradeManager -CollectionInitializer : we have removed depenedancy for RetryExceptionPolicyFactory in constructor -ICollectionInitializer -CosmosClientExtensions -ICosmosDbDistributedLock -ICosmosDbDistributedLockFactory -ICosmosClientTestProvider 6. Following existing Classes/interfaces modified -ICosmosClientInitializer -FhirCosmosClientInitializer -CosmosDbFhirStorageTestsFixture // TODO: TODO: need modify this class to call new CosmosDB .Initialization functions // now some existing call are commented -CosmosContainerProvider // TODO: TODO: need modify this class to call new CosmosDB .Initialization functions // now some existing call are commented b) New Microsoft.Health.Fhir.CosmosDb.Initialization project added -Initialization of cosmos DB functionality moved here - Moved Storeprocedure installation logic here Added classes like DataPlaneStoredProcedureInstaller,StoredProcedureMetadataBase - Also we have DataPlaneCollectionSetup class which will implement following methods -CreateDatabaseAsync - CreateCollection -UpdateFhirCollectionSettings c)Unit Test Project Added Microsoft.Health.Fhir.CosmosDb.Initialization.UnitTests project d)Also Added Microsoft.Health.Fhir.CosmosDb.Core project - We have moved common functionalities from Microsoft.Health.Fhir.CosmosDb project #User Story 112343: [Cosmos][OSS] Move Cosmos DB initialization logic to a new assembly
…osmosdbinitialization-newassembly
mahajan-xor
added
Enhancement
Enhancement on existing functionality.
Azure API for FHIR
Label denotes that the issue or PR is relevant to the Azure API for FHIR
labels
Mar 11, 2024
...icrosoft.Health.Fhir.Shared.Tests.Integration/Persistence/CosmosDbFhirStorageTestsFixture.cs
Fixed
Show fixed
Hide fixed
-StoredProcedureBase -IStoredProcedure -IStoredProcedureMetadata -StoredProcedureMetadata Moved to CosmosDB.Initialization: -UpdateUnsupportedSearchParameters -FhirCollectionSettingsUpdater
2.Replaced ICollectionUpdater with ICollectionDataUpdater in CosmosDbSearchParameterStatusInitializer 3.moved else part logic from FhirCollectionSettingsUpdater to CosmosDbSearchParameterStatusInitializer 4.FhirCollectionSettingsUpdater is removed from solution
…osmosdbinitialization-newassembly
fhibf
reviewed
Mar 21, 2024
src/Microsoft.Health.Fhir.CosmosDb.Core/Features/Storage/StoreProcedures/StoredProcedureBase.cs
Show resolved
Hide resolved
fhibf
reviewed
Mar 21, 2024
...ft.Health.Fhir.CosmosDb.Core/Features/Storage/StoreProcedures/StoredProcedureMetadataBase.cs
Outdated
Show resolved
Hide resolved
fhibf
reviewed
Mar 21, 2024
src/Microsoft.Health.Fhir.CosmosDb.Initialization.UnitTests/CosmosDbInitializationTests.cs
Outdated
Show resolved
Hide resolved
fhibf
reviewed
Mar 21, 2024
src/Microsoft.Health.Fhir.CosmosDb.Initialization.UnitTests/CosmosDbInitializationTests.cs
Outdated
Show resolved
Hide resolved
fhibf
reviewed
Mar 21, 2024
src/Microsoft.Health.Fhir.CosmosDb.Initialization.UnitTests/CosmosDbInitializationTests.cs
Outdated
Show resolved
Hide resolved
fhibf
reviewed
Mar 21, 2024
src/Microsoft.Health.Fhir.CosmosDb.Initialization.UnitTests/CosmosDbInitializationTests.cs
Outdated
Show resolved
Hide resolved
fhibf
reviewed
Mar 21, 2024
src/Microsoft.Health.Fhir.CosmosDb.Initialization/Features/Storage/CollectionInitializer.cs
Outdated
Show resolved
Hide resolved
fhibf
reviewed
Mar 21, 2024
src/Microsoft.Health.Fhir.CosmosDb.Initialization/Features/Storage/DataPlaneCollectionSetup.cs
Outdated
Show resolved
Hide resolved
fhibf
reviewed
Mar 21, 2024
src/Microsoft.Health.Fhir.CosmosDb.Initialization/Features/Storage/DataPlaneCollectionSetup.cs
Show resolved
Hide resolved
fhibf
reviewed
Mar 21, 2024
src/Microsoft.Health.Fhir.CosmosDb.Initialization/Features/Storage/DataPlaneCollectionSetup.cs
Outdated
Show resolved
Hide resolved
fhibf
reviewed
Mar 21, 2024
src/Microsoft.Health.Fhir.CosmosDb.Initialization/Features/Storage/DataPlaneCollectionSetup.cs
Outdated
Show resolved
Hide resolved
fhibf
reviewed
Mar 21, 2024
src/Microsoft.Health.Fhir.CosmosDb.Initialization/Features/Storage/ICollectionSetup.cs
Outdated
Show resolved
Hide resolved
fhibf
reviewed
Mar 21, 2024
src/Microsoft.Health.Fhir.CosmosDb.Initialization/Features/Storage/ICollectionSetup.cs
Outdated
Show resolved
Hide resolved
fhibf
reviewed
Mar 21, 2024
src/Microsoft.Health.Fhir.CosmosDb.Initialization/Features/Storage/NullcollectionSetup.cs
Outdated
Show resolved
Hide resolved
fhibf
reviewed
Mar 21, 2024
...smosDb.Initialization/Features/Storage/StoredProcedures/DataPlaneStoredProcedureInstaller.cs
Outdated
Show resolved
Hide resolved
fhibf
reviewed
Mar 21, 2024
...smosDb.Initialization/Features/Storage/StoredProcedures/DataPlaneStoredProcedureInstaller.cs
Outdated
Show resolved
Hide resolved
fhibf
reviewed
Mar 21, 2024
....Health.Fhir.CosmosDb.UnitTests/Features/Storage/Versioning/CollectionUpgradeManagerTests.cs
Outdated
Show resolved
Hide resolved
fhibf
reviewed
Mar 21, 2024
src/Microsoft.Health.Fhir.CosmosDb/Features/Storage/CosmosContainerProvider.cs
Outdated
Show resolved
Hide resolved
fhibf
reviewed
May 27, 2024
src/Microsoft.Health.Fhir.CosmosDb.Initialization/Features/Storage/DataPlaneCollectionSetup.cs
Outdated
Show resolved
Hide resolved
fhibf
reviewed
May 27, 2024
src/Microsoft.Health.Fhir.CosmosDb.Initialization/Features/Storage/DataPlaneCollectionSetup.cs
Show resolved
Hide resolved
fhibf
reviewed
May 27, 2024
...smosDb.Initialization/Features/Storage/StoredProcedures/DataPlaneStoredProcedureInstaller.cs
Outdated
Show resolved
Hide resolved
fhibf
reviewed
May 27, 2024
....Health.Fhir.CosmosDb.Initialization/Registration/DataPlaneCosmosDbRegistrationExtensions.cs
Outdated
Show resolved
Hide resolved
....Health.Fhir.CosmosDb.UnitTests/Features/Storage/Versioning/CollectionUpgradeManagerTests.cs
Fixed
Show fixed
Hide fixed
fhibf
reviewed
Jun 5, 2024
src/Microsoft.Health.Fhir.CosmosDb.Core/Features/Storage/ICollectionSetup.cs
Outdated
Show resolved
Hide resolved
fhibf
reviewed
Jun 5, 2024
src/Microsoft.Health.Fhir.CosmosDb.Initialization.UnitTests/CosmosDbInitializationTests.cs
Show resolved
Hide resolved
fhibf
reviewed
Jun 5, 2024
...osoft.Health.Fhir.CosmosDb.Core/Features/Storage/StoreProcedures/IStoredProcedureMetadata.cs
Outdated
Show resolved
Hide resolved
fhibf
reviewed
Jun 5, 2024
...smosDb.Initialization/Features/Storage/StoredProcedures/DataPlaneStoredProcedureInstaller.cs
Outdated
Show resolved
Hide resolved
Can we add the new projects into the solution filters too: |
src/Microsoft.Health.Fhir.CosmosDb/Features/Storage/FhirCosmosClientInitializer.cs
Outdated
Show resolved
Hide resolved
…osmosdbinitialization-newassembly
-Adding simple threadsafe logic for creating CosmosClient instance
src/Microsoft.Health.Fhir.CosmosDb/Features/Storage/FhirCosmosClientInitializer.cs
Fixed
Show fixed
Hide fixed
src/Microsoft.Health.Fhir.CosmosDb/Features/Storage/FhirCosmosClientInitializer.cs
Fixed
Show fixed
Hide fixed
fhibf
reviewed
Jul 2, 2024
src/Microsoft.Health.Fhir.CosmosDb/Features/Storage/FhirCosmosClientInitializer.cs
Outdated
Show resolved
Hide resolved
fhibf
approved these changes
Jul 3, 2024
mahajan-xor
deleted the
personal/anilm/fhir-cosmosdbinitialization-newassembly
branch
July 4, 2024 05:25
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Azure API for FHIR
Label denotes that the issue or PR is relevant to the Azure API for FHIR
Enhancement
Enhancement on existing functionality.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
a) Changes done on existing Microsoft.Health.Fhir.CosmosDb Project]
1.Icollectionupdater copied to Istoreprocedure in cosmos db old project
2.older Istoreprocedure logic moved to new project with filename IStoredProcedureInstaller
3.StoredProcedureInstaller.cs removed from old db(Microsoft.Health.Fhir.CosmosDb) and moved this logic to new project with filename DataPlaneStoredProcedureInstaller.cs
4.Configs folder contains classes like CosmosDataStoreConfiguration,CosmosCollectionConfiguration moved to Microsoft.Health.Fhir.CosmosDb.Core project
5.Following classes moved to Microsoft.Health.Fhir.CosmosDb.Core project
-SystemData
-KnownDocumentProperties
-ICollectionUpdater
-CollectionVersion
-CollectionUpgradeManager
-IUpgradeManager
-CollectionInitializer : we have removed depenedancy for RetryExceptionPolicyFactory in constructor
-ICollectionInitializer
-CosmosClientExtensions
-ICosmosDbDistributedLock
-ICosmosDbDistributedLockFactory
-ICosmosClientTestProvider
-ICosmosClientInitializer
-FhirCosmosClientInitializer
-CosmosDbFhirStorageTestsFixture
// TODO: TODO: need modify this class to call new CosmosDB .Initialization functions
// now some existing call are commented
-CosmosContainerProvider
// TODO: TODO: need modify this class to call new CosmosDB .Initialization functions
// now some existing call are commented
b) New Microsoft.Health.Fhir.CosmosDb.Initialization project added
-Initialization of cosmos DB functionality moved here
DataPlaneStoredProcedureInstaller,StoredProcedureMetadataBase
-CreateDatabaseAsync
-UpdateFhirCollectionSettings
c)Unit Test Project Added Microsoft.Health.Fhir.CosmosDb.Initialization.UnitTests project
d)Also Added Microsoft.Health.Fhir.CosmosDb.Core project
Related issues
User Story 112343: [Cosmos][OSS] Move Cosmos DB initialization logic to a new assembly
Testing
NA
FHIR Team Checklist
Semver Change (docs)
Patch|Skip|Feature|Breaking (reason)