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

Update schema code generation code to reflect manually made changes #128

Merged
merged 17 commits into from
Feb 14, 2025

Conversation

craigedmunds
Copy link
Contributor

@craigedmunds craigedmunds commented Feb 10, 2025

Has an issue with formatting of code, similar to what it was before. Will revisit this separately.

@craigedmunds craigedmunds changed the title Feature/regen model Update the ALVS code generation code to reflect manually made changes Feb 10, 2025
@craigedmunds craigedmunds changed the title Update the ALVS code generation code to reflect manually made changes Update schema code generation code to reflect manually made changes Feb 10, 2025
@craigedmunds craigedmunds force-pushed the feature/regen-model branch 3 times, most recently from e428dbf to ddf89b0 Compare February 10, 2025 16:38
@craigedmunds craigedmunds changed the base branch from main to feature/dotnet-format February 10, 2025 16:39
@craigedmunds craigedmunds force-pushed the feature/regen-model branch 6 times, most recently from fa6ffde to 92af399 Compare February 10, 2025 17:06
Base automatically changed from feature/dotnet-format to main February 11, 2025 07:12
@craigedmunds craigedmunds force-pushed the feature/regen-model branch 5 times, most recently from 8e94fff to a53b103 Compare February 11, 2025 13:35
@craigedmunds craigedmunds force-pushed the feature/regen-model branch 2 times, most recently from 2fafab2 to 521aac2 Compare February 13, 2025 16:16
@@ -5,6 +5,12 @@ namespace Btms.Backend.Cli.Features.GenerateModels.ClassMaps;

internal static class Bootstrap
{
//Not ideal that the casing doesn't match, but the coding styles mandate:
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the significance of this code block and what is not ideal? If it's a worthy thing to comment on then might be worth enhancing the detail or it's just for string replacement/reuse within the bootstrapping process

Copy link

Code Coverage

Package Line Rate Branch Rate Health
Btms.Business 86% 77%
Btms.SyncJob 63% 45%
Btms.Metrics 82% 0%
Btms.Analytics 74% 73%
Btms.Backend.Data 65% 60%
Btms.Types.Ipaffs 95% 62%
TestDataGenerator 83% 79%
Btms.Backend 62% 42%
Btms.BlobService 38% 27%
Btms.Emf 11% 0%
Btms.Common 67% 41%
Btms.Azure 43% 100%
Btms.Consumers 82% 74%
Btms.Types.Alvs 85% 50%
Btms.Types.Gvms.Mapping 49% 34%
Btms.Types.Alvs.Mapping 81% 0%
Btms.Types.Ipaffs.Mapping 76% 52%
Btms.Types.Gvms 61% 100%
Btms.SensitiveData 82% 89%
Btms.Types.Alvs.Mapping.V1.Tests 0% 0%
Btms.Model 93% 93%
TestGenerator.IntegrationTesting.Backend 83% 71%
Summary 79% (10049 / 12726) 65% (1114 / 1710)

"commandName": "Project",
"commandLineArgs": "generate-ipaffs-model"
},
"Other": {
"commandName": "Project",
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove this "Other" block now? And if not, can we take what we need and formalise specific run profiles as you have been doing as that is a better approach.

public DateTime? DecisionsValidUntil { get; set; }


/// <summary>
Copy link
Contributor

Choose a reason for hiding this comment

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

We need this blank summary removing at some point too and potentially not adding the [System.ComponentModel.Description("")] when there is no value. Unless that attribute needs to be there all the time regardless for some reason?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah - think that may have been manually added - should be removed

/// <summary>
///
/// </summary>
[JsonPropertyName("decisionNumber")]
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did this field move from a .g.cs file to a non generated one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not - it's not in the schema so is manually added

@craigedmunds craigedmunds merged commit 28f8adf into main Feb 14, 2025
3 checks passed
@craigedmunds craigedmunds deleted the feature/regen-model branch February 14, 2025 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants