-
Notifications
You must be signed in to change notification settings - Fork 668
DYN-1078 Prevent - Button Removing Required Ports
#11288
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
DYN-1078 Prevent - Button Removing Required Ports
#11288
Conversation
|
@StudioLE - thanks for the fix- can you also try adding a test that calls the |
|
@StudioLE - unfortunately there are 4 failing tests now: @SHKnudsen should have access to this dashboard if you do not - can you try these out locally? |
|
Thanks @mjkkirschner, we'll have a look. |
|
Thanks @mjkkirschner. This is now resolved with 70f0e24. |
| model.InPorts.Remove(port); | ||
| } | ||
|
|
||
| MarkNodeDirty(); |
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.
@StudioLE @mjkkirschner One thing I found from my local testing of this is that, even with the default state and user would not delete default ports, but node still marked dirty which I think is not necessary because that will trigger a graph run. Can we make another PR and put the statement in the if above?
* Only remove inputs when count is greater than defaultNumInputs * Only remove inputs when count is greater than defaultNumInputs * Added test to ensure default ports can't be removed * Don't remove default inputs for DSVarArgFunction nodes
* Only remove inputs when count is greater than defaultNumInputs * Only remove inputs when count is greater than defaultNumInputs * Added test to ensure default ports can't be removed * Don't remove default inputs for DSVarArgFunction nodes Co-authored-by: Laurence Elsdon <laurence.elsdon@matterlab.co>

Purpose
JIRA: DYN-1078
Issue: #8741
Prevent the user from being able to remove default ports using the
-button onDSVarArgFunctionnodesBehaviour before:
Behaviour after:
Declarations
Check these if you believe they are true
*.resxfilesReviewers
@mjkkirschner @ QilongTang @mmisol
FYIs
@Amoursol