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: |
| } | ||
| catch (CustomNodePackageLoadException e) | ||
| { | ||
| Package originalPackage = |
There was a problem hiding this comment.
@QilongTang what do you think - should we log this to analytics?
There was a problem hiding this comment.
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.
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
*.resxfilesFYIs
@mjkkirschner @scottmitchell @QilongTang