-
Notifications
You must be signed in to change notification settings - Fork 635
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
Prevent custom node package containing duplicate node definition from loading #9815
Prevent custom node package containing duplicate node definition from loading #9815
Conversation
src/DynamoCoreWpf/ViewModels/PackageManager/PackageManagerClientViewModel.cs
Show resolved
Hide resolved
src/DynamoCoreWpf/ViewModels/PackageManager/PackageManagerSearchViewModel.cs
Show resolved
Hide resolved
@aparajit-pratap what is a |
I used the term (probably misleading) to refer to a CN package that contained an already existing (duplicate) node definition. I will try to remove all usages of it to avoid confusion. |
heres my try:
|
@@ -207,13 +207,26 @@ internal void TryLoadPackageIntoLibrary(Package package) | |||
package.Loaded = true; | |||
this.PackgeLoaded?.Invoke(package); | |||
} | |||
catch (CustomNodePackageLoadException e) | |||
{ | |||
Package originalPackage = |
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.
@QilongTang what do you think - should we log this to analytics?
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.
Worth! But are you thinking about public APIs for extention author to use or internal call only managed by our team?
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.
am thinking about the regular log Analytics calls for events - I'm not sure if this would already be logged a custom exception type or we only log uncaught exceptions?
@aparajit-pratap is it very difficult to add a test to assert the second package is not allowed to load? |
LGTM |
Seems UI behavior is not covered in the unit test here, should we create a Jira task to cover this in the UI automation pipeline? |
* fix for adding duplicate ZT search entries for packages already loaded * added test * add comments to test * prevent duplicate custom node package from loading * rename * rename * code fixes * code cleanup * update wording of custom node package fail dialog * address review comments * add test custom node packages with test * fix failing tests * fix test
@aparajit-pratap - what happened with the TODOs - were followups filed? |
@mjkkirschner thanks for reminding. I intended to file them as separate tasks. Will do. |
… loading (#9815) * prevent duplicate custom node package from loading * rename * rename * code fixes * code cleanup * update wording of custom node package fail dialog * address review comments * add test custom node packages with test * fix failing tests * fix test
Purpose
JIRA: DYN-1993
TODO:
Declarations
Check these if you believe they are true
*.resx
filesFYIs
@mjkkirschner @scottmitchell @QilongTang