Skip to content

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.

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

/// <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?

/// </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