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

Nds changeplugin config #479

Merged
merged 5 commits into from
Oct 5, 2023
Merged

Nds changeplugin config #479

merged 5 commits into from
Oct 5, 2023

Conversation

neildsouth
Copy link
Contributor

moving config around for databases to consolidate it
also adding extendable config for plugins

Status

Work in progress

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • All tests passed locally.
  • Documentation comments included/updated.
  • User guide updated.
  • I have updated the changelog

@neildsouth neildsouth added the enhancement Enhancement to existing feature label Sep 20, 2023
@neildsouth neildsouth added this to the 0.4.2 milestone Sep 20, 2023
@@ -63,16 +63,16 @@ public static IHealthChecksBuilder AddDatabaseHealthCheck(this IHealthChecksBuil
}
}

public static IServiceCollection ConfigureDatabase(this IServiceCollection services, IConfigurationSection? connectionStringConfigurationSection, ILogger logger)
=> services.ConfigureDatabase(connectionStringConfigurationSection, new FileSystem(), logger);
public static IServiceCollection ConfigureDatabase(this IServiceCollection services, IConfigurationSection? connectionStringConfigurationSection, IConfigurationSection? pluginsConfigurationSection, ILogger logger)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is pluginsConfigurationSection used?

Copy link
Contributor Author

@neildsouth neildsouth Sep 21, 2023

Choose a reason for hiding this comment

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

Not ATM but will be for a plugin were writing and would be the way to pass plugin config for future plugins, also i think that this is better than adding extra stuff into the connection strings section.

@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

Merging #479 (ebb0a51) into develop (cf7f112) will increase coverage by 0.05165%.
The diff coverage is 98.06763%.

Impacted file tree graph

@@                 Coverage Diff                 @@
##             develop        #479         +/-   ##
===================================================
+ Coverage   78.82262%   78.87427%   +0.05164%     
===================================================
  Files            390         390                 
  Lines          24512       24553         +41     
  Branches        1098        1098                 
===================================================
+ Hits           19321       19366         +45     
+ Misses          4801        4799          -2     
+ Partials         390         388          -2     
Flag Coverage Δ
unittests 78.87427% <98.06763%> (+0.05164%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...c/Configuration/InformaticsGatewayConfiguration.cs 100.00000% <ø> (ø)
...Api/Repositories/InferenceRequestRepositoryBase.cs 92.59259% <100.00000%> (ø)
src/Database/Api/StorageMetadataWrapper.cs 75.00000% <ø> (ø)
...Configuration/DicomAssociationInfoConfiguration.cs 100.00000% <100.00000%> (ø)
...sitories/DestinationApplicationEntityRepository.cs 83.33333% <100.00000%> (ø)
...ork/Repositories/DicomAssociationInfoRepository.cs 73.80952% <100.00000%> (ø)
...amework/Repositories/InferenceRequestRepository.cs 85.71429% <100.00000%> (ø)
...k/Repositories/MonaiApplicationEntityRepository.cs 83.33333% <100.00000%> (ø)
.../EntityFramework/Repositories/PayloadRepository.cs 84.84848% <100.00000%> (ø)
.../Repositories/SourceApplicationEntityRepository.cs 84.84848% <100.00000%> (ø)
... and 50 more

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cf7f112...ebb0a51. Read the comment docs.

Signed-off-by: Neil South <neil.south@answerdigital.com>
Signed-off-by: Neil South <neil.south@answerdigital.com>
@neildsouth neildsouth force-pushed the nds-changeplugin-config branch from 62e17c1 to df65034 Compare October 5, 2023 13:53
Signed-off-by: Neil South <neil.south@answerdigital.com>
src/Database/DatabaseManager.cs Outdated Show resolved Hide resolved
src/Plug-ins/RemoteAppExecution/DicomDeidentifier.cs Outdated Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

did we add an empty file here? do we need it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

its not empty, just no visible diff. change in mode

@@ -19,5 +19,9 @@ namespace Monai.Deploy.InformaticsGateway.PlugIns.RemoteAppExecution
internal static class SR
Copy link
Contributor

Choose a reason for hiding this comment

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

What does SR stand for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No idea! something Victor added there are 4 SR.cs files throughout the solution! all contain static strings

Signed-off-by: Neil South <neil.south@answerdigital.com>
Signed-off-by: Neil South <neil.south@answerdigital.com>
@neildsouth neildsouth merged commit 4985932 into develop Oct 5, 2023
30 of 32 checks passed
@neildsouth neildsouth deleted the nds-changeplugin-config branch October 5, 2023 16:05
@mocsharp mocsharp modified the milestones: 0.4.2, 0.5.0 Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants