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

Automapper issue #3137

Merged
merged 9 commits into from
Aug 9, 2023
Merged

Automapper issue #3137

merged 9 commits into from
Aug 9, 2023

Conversation

sudarshan0212
Copy link
Contributor

Thank you for your contribution.
Before submitting this PR, please make sure:

  • PR description and commit message should describe the changes done in this PR
  • Verify the PR is pointing to correct branch i.e. Release or Beta branch if the code fix is for specific release , else point it to master
  • Latest Code from master or specific release branch is merged to your branch
  • No unwanted\commented\junk code is included
  • No new warning upon build solution
  • Code Summary\Comments are added to my code which explains what my code is doing
  • Existing unit test cases are passed
  • New Unit tests are added for your development
  • Sanity Tests are successfully executed for New and Existing Functionality
  • Verify that changes are compatible with all relevant browsers and platforms.
  • After creating pull request there should not be any conflicts
  • Resolve codacy comments
  • Builds and checks are passed before PR is sent for review
  • Resolve code review comments
  • Help Libray document is updated accordingly for Feature changes.

@@ -356,6 +317,29 @@ private void CopyCustomizedVariableConfigurations(VariableBase customizedVar, Va
originalVar.Publish = originalCopy.Publish;
}

private void AutoMapVariableData(VariableBase customizedVar, ref VariableBase originalVar)
{
string varType = customizedVar.GetType().Name;
Copy link
Contributor

Choose a reason for hiding this comment

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

we said to have the Switch for all Variables types and place it on generic class to be used for any future need, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, i'll move this function to some generic class but for Selection List, List variable the values are getting deleted after automap. if we map these variable with VariableBase class then its working fine.


switch (varType)
{
case "VariableDateTime":
Copy link
Contributor

Choose a reason for hiding this comment

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

let's not do switch case by strings, use nameof(classType)

@Maheshkale447 Maheshkale447 merged commit b4a7f95 into Releases/Beta Aug 9, 2023
10 of 11 checks passed
@Maheshkale447 Maheshkale447 deleted the automapper_issue branch August 9, 2023 09:32
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