-
Notifications
You must be signed in to change notification settings - Fork 10
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
Fixes #164. Fixes #1325 #1336
Fixes #164. Fixes #1325 #1336
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ready for review
@@ -23,6 +23,7 @@ public EventAssignmentBuilderDTO MapFrom(EventAssignmentBuilder eventAssignmentB | |||
dto.ChangedEntityPath = eventAssignmentBuilder.ObjectPath == null ? string.Empty : eventAssignmentBuilder.ObjectPath.PathAsString; | |||
dto.NewFormula = _formulaDTOMapper.MapFrom(eventAssignmentBuilder.Formula); | |||
dto.UseAsValue = eventAssignmentBuilder.UseAsValue; | |||
dto.Dimension = eventAssignmentBuilder.Dimension; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typically not required because one points to the other but it's implementation details so why not
bindToFormula(); | ||
} | ||
|
||
private void setObjectPath(string path, IDimension dimension) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The one and only function that is being used.
AddCommand(new SetEventAssignmentObjectPathCommand(_eventAssignmentBuilder, objectPath, BuildingBlock).Run(_context)); | ||
_view.TargetPath = objectPath.PathAsString; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Databinding gone wrong here
_screenBinder.Bind(dto => dto.Name) | ||
.To(btnName) | ||
.To(tbName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no idea why this was button and not a textbox. This was not used anywhere
} | ||
} | ||
|
||
public class When_setting_the_dimension_of_the_target : concern_for_EditAssignmentBuilderPresenter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rwmcintosh added some basic tests for what I was implementing.
Fixes #164. Fixes #1325
Description
@rwmcintosh @PavelBal @Yuri05
So I am adding a new field to enter the dimension when the path is entered by hand./ This is required because we need to create a "FormulaUsablePath" and not an "ObjectPath" Like in most instances
Type of change
Please mark relevant options with an
x
in the brackets.How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Reviewer checklist
Mark everything that needs to be checked before merging the PR.
This change requires a documentation update
above is selectedScreenshots (if appropriate):
Questions (if appropriate):