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] auto generated rowviewmodels and dialogviewmodel #670

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

samatstariongroup
Copy link
Member

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following the CDP4-IME code style guidelines
  • I have provided test coverage for my change (where applicable)

Description

Update RowViewModel:

  • regenerate row-view-models based on dotliquid generator
  • refactor partial hand-coded classes to be inline with updated generated row-view-models

@samatstariongroup samatstariongroup linked an issue Jan 10, 2021 that may be closed by this pull request
3 tasks
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@lxatstariongroup lxatstariongroup left a comment

Choose a reason for hiding this comment

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

Some comments added. Just wondering if everything is as expected.

@@ -73,6 +108,33 @@ public string Name
set { this.RaiseAndSetIfChanged(ref this.name, value); }
}

/// <summary>
Copy link
Contributor

Choose a reason for hiding this comment

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

3 added properties. Is that correct?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes

}
else
{
this.OwnerName = string.Empty;
Copy link
Contributor

Choose a reason for hiding this comment

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

not 100% backwards compatible

@@ -36,9 +57,28 @@ public partial class AndExpressionRowViewModel : BooleanExpressionRowViewModel<A
/// <param name="containerViewModel">The <see cref="IViewModelBase{Thing}"/> that is the container of this <see cref="IRowViewModelBase{Thing}"/></param>
public AndExpressionRowViewModel(AndExpression andExpression, ISession session, IViewModelBase<Thing> containerViewModel) : base(andExpression, session, containerViewModel)
{
this.UpdateProperties();
Copy link
Contributor

Choose a reason for hiding this comment

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

New code. Correct?

@@ -101,9 +121,8 @@ protected override void ObjectChangeEventHandler(ObjectChangedEvent objectChange
/// </summary>
private void UpdateProperties()
{
this.ModifiedOn = this.Thing.ModifiedOn;
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure that ModifiedOn should be removed from the code?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, this has been moved to RowViewModelBase as it is a property of Thing

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.

Implement a dotliquid based RowViewModel codegenerator
2 participants