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

continue custom node element binding issues pt1 #9609

Merged
merged 5 commits into from
Apr 5, 2019

Conversation

mjkkirschner
Copy link
Member

@mjkkirschner mjkkirschner commented Mar 29, 2019

Purpose

continues this PR from @aparajit-pratap : #9527
please see his PR for a very good writeup of the issue and explanation of his fix.

I'm doing some testing and adding automated tests. Also considering edge cases that might arise.

Declarations

Check these if you believe they are true

  • The code base is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning, and are documented in the API Changes document.

Reviewers

@aparajit-pratap
@scottmitchell

FYIs

@smangarole
@ZiyunShang
@AndyDu1985

@mjkkirschner mjkkirschner changed the title [WIP] continue custom node element binding issues pt1 continue custom node element binding issues pt1 Apr 2, 2019
@mjkkirschner mjkkirschner added PTAL Please Take A Look 👀 and removed WIP labels Apr 2, 2019
@mjkkirschner
Copy link
Member Author

test files are something like this:
Screen Shot 2019-04-02 at 1 23 14 PM

where the callsite data has been generated manually, encoded into base64 and added to the file - then the functionScope has been altered to something like 1000 definitely not what the compiler would generate at runtime.

@scottmitchell
Copy link
Collaborator

LGTM!

Copy link
Contributor

@aparajit-pratap aparajit-pratap left a comment

Choose a reason for hiding this comment

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

@mjkkirschner do any of the tests you added test the case where (1) there are more than one creation nodes inside the same custom node definition?

CurrentDynamoModel.TraceReconciliationProcessor = new TestTraceReconciliationProcessor(0);
Assert.AreEqual(6, ws.Nodes.Count());
var dummyNodes = ws.Nodes.OfType<DummyNode>();
Assert.AreEqual(0, dummyNodes.Count());
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't we just use AssertNoDummyNodes function here?

Copy link
Member Author

Choose a reason for hiding this comment

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

currently I think that method is only implemented for system tests: this is a model test - do you want me to implement something like that in modelTestBase?

  • we also still need to check if the custom node was loaded as when it fails it's not marked as a dummy node.

@mjkkirschner
Copy link
Member Author

@aparajit-pratap - yes, the custom node definition here has two creation nodes with the same name / function signature inside it.

@aparajit-pratap
Copy link
Contributor

LGTM!

@aparajit-pratap aparajit-pratap added LGTM Looks good to me and removed PTAL Please Take A Look 👀 labels Apr 5, 2019
@mjkkirschner mjkkirschner merged commit 3530c29 into DynamoDS:master Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LGTM Looks good to me
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants