Skip to content

Commit

Permalink
fix up for migrations
Browse files Browse the repository at this point in the history
Signed-off-by: Neil South <[email protected]>
  • Loading branch information
neildsouth committed Jul 3, 2024
1 parent 657ca97 commit 87254b8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public override void Up(BsonDocument document)
{
try
{
document.Add("SeriesInstanceUid", BsonNull.Create(null).ToJson(), true);
document.Add("SeriesInstanceUid", new BsonString(""), true);
}
catch

Check warning on line 32 in src/WorkflowManager/Contracts/Migrations/M005_Payload_seriesUid.cs

View workflow job for this annotation

GitHub Actions / sonarscanner

Handle the exception or explain in a comment why it can be ignored. (https://rules.sonarsource.com/csharp/RSPEC-2486)
{

Check warning on line 33 in src/WorkflowManager/Contracts/Migrations/M005_Payload_seriesUid.cs

View workflow job for this annotation

GitHub Actions / sonarscanner

Either remove or fill this block of code. (https://rules.sonarsource.com/csharp/RSPEC-108)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public override void Up(BsonDocument document)
{
try
{
document.Add("TriggeredWorkflowNames", BsonNull.Create(null).ToJson(), true);
document.Add("TriggeredWorkflowNames", new BsonArray());
}
catch

Check warning on line 32 in src/WorkflowManager/Contracts/Migrations/M006_Payload_triggeredWorkflows.cs

View workflow job for this annotation

GitHub Actions / sonarscanner

Handle the exception or explain in a comment why it can be ignored. (https://rules.sonarsource.com/csharp/RSPEC-2486)
{

Check warning on line 33 in src/WorkflowManager/Contracts/Migrations/M006_Payload_triggeredWorkflows.cs

View workflow job for this annotation

GitHub Actions / sonarscanner

Either remove or fill this block of code. (https://rules.sonarsource.com/csharp/RSPEC-108)
Expand Down
2 changes: 1 addition & 1 deletion src/WorkflowManager/Contracts/Models/Payload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

namespace Monai.Deploy.WorkflowManager.Common.Contracts.Models
{
[CollectionLocation("Payloads"), RuntimeVersion("1.0.7"), StartUpVersion("1.0.7")]
[CollectionLocation("Payloads"), RuntimeVersion("1.0.7")]
public class Payload : IDocument
{
[JsonConverter(typeof(DocumentVersionConvert)), BsonSerializer(typeof(DocumentVersionConverBson))]
Expand Down
2 changes: 1 addition & 1 deletion src/WorkflowManager/Contracts/Models/WorkflowRevision.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace Monai.Deploy.WorkflowManager.Common.Contracts.Models
{
[CollectionLocation("Workflows"), RuntimeVersion("1.0.4"), StartUpVersion("1.0.4")]
[CollectionLocation("Workflows"), RuntimeVersion("1.0.4")]
public class WorkflowRevision : ISoftDeleteable, IDocument
{
[BsonId]
Expand Down

0 comments on commit 87254b8

Please sign in to comment.