-
Notifications
You must be signed in to change notification settings - Fork 202
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
EMSUSD-1971 Make job context UI registeration be order-neutral #4054
Conversation
pierrebai-adsk
commented
Dec 18, 2024
- Change the job context registration macro to be order-independent.
- Change unit test to verify that the macro are order-neutral by registering UI first.
- Change the job context registration macro to be order-independent. - Change unit test to verify that the macro are order-neutral by registering UI first.
REGISTER_EXPORT_JOB_CONTEXT_FCT( | ||
Curly, | ||
"Curly's special", | ||
"Test coverage of error handling part deux") | ||
{ | ||
VtDictionary extraArgs; | ||
// Incorrect type: | ||
extraArgs[UsdMayaJobExportArgsTokens->apiSchema] = VtValue(std::string("testApi")); | ||
return extraArgs; | ||
} | ||
|
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.
I don't see any changes other than moving the macro. Is there a reason this macro moved below the other one?
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.
To test the fact that order no longer matters. Before my fix, this swap made the test fail for me locally as the UI callback was registered before the job context. Now it passes.
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.
Ah yes perfect. Thanks for thinking of that.