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

EMSUSD-1971 Make job context UI registeration be order-neutral #4054

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

pierrebai-adsk
Copy link
Collaborator

  • 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.
@pierrebai-adsk pierrebai-adsk added enhancement New feature or request build Related to building maya-usd repository labels Dec 18, 2024
@pierrebai-adsk pierrebai-adsk self-assigned this Dec 18, 2024
@pierrebai-adsk pierrebai-adsk marked this pull request as ready for review December 18, 2024 14:58
Comment on lines +121 to +131
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;
}

Copy link
Collaborator

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?

Copy link
Collaborator Author

@pierrebai-adsk pierrebai-adsk Dec 18, 2024

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.

Copy link
Collaborator

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.

@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Dec 18, 2024
@seando-adsk seando-adsk added the workflows Related to in-context workflows label Dec 19, 2024
@seando-adsk seando-adsk merged commit ecabe06 into dev Dec 19, 2024
11 checks passed
@seando-adsk seando-adsk deleted the bailp/EMSUSD-1971/job-context-marco-order branch December 19, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related to building maya-usd repository enhancement New feature or request ready-for-merge Development process is finished, PR is ready for merge workflows Related to in-context workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants