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

Fixes #164. Fixes #1325 #1336

Merged

Conversation

msevestre
Copy link
Member

@msevestre msevestre commented May 2, 2024

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.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires documentation changes (link at least one user or developer documentation issue):
  • Algorithm update - updates algorithm documentation/questions/answers etc.
  • Other (please describe):

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

  • Integration tests
  • Unit tests
  • Manual tests
  • No tests required

Reviewer checklist

Mark everything that needs to be checked before merging the PR.

  • Check if the code is well documented
  • Check if the behavior is what is expected
  • Check if the code is well tested
  • Check if the code is readable and well formatted
  • Additional checks (document below if any)
  • Check if documentation update issue(s) are created if the option This change requires a documentation update above is selected

Screenshots (if appropriate):

Questions (if appropriate):

@msevestre msevestre requested a review from rwmcintosh May 2, 2024 03:04
Copy link
Member Author

@msevestre msevestre left a 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;
Copy link
Member Author

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)
Copy link
Member Author

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;
Copy link
Member Author

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)
Copy link
Member Author

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
Copy link
Member Author

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.

@rwmcintosh rwmcintosh merged commit be91104 into develop May 2, 2024
1 check passed
@rwmcintosh rwmcintosh deleted the 164-event-assignment-allow-entering-changed-path branch May 2, 2024 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants