-
Notifications
You must be signed in to change notification settings - Fork 40
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
Chore: Use project name from context to get settings #354
Conversation
The setting of Same goes for the logic here. Should that if statement be removed as well? Testing of this PR should likely need 'special testing' in hosts that still use the legacy publisher since it would go through slightly different logic. |
Not sure what to do with this, maybe just use
Which if statement? |
The
ayon-core/client/ayon_core/plugins/publish/collect_current_context.py Lines 28 to 29 in 2072f2f
Both seem to 'hint' that |
Yes, I'm asking how to handle that in this plugin. I won't touch the other plugins. |
Ah good question - it seems like we always expected a project name to be 'retrievable' and thus be valid - so I'd actually say we should just make those always being set in the other plug-ins accordingly. Rather prefer that, then now still adding a |
You can have completelly different logic in custom addon which collects
I don't think that is correct behavior. Using current project settings would be against what is inside publish context... All other plugins are expecting the project is set, it would crash much sooner than in this plugin, and I don't think we should try to handle that case to be honest. |
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.
Tried a couple of DCCs, didnt explode.
Changelog Description
Use
"projectName"
value to get settings instead ofget_current_project_settings
.Additional info
This is technical change, we should make sure the project which is set in context is used as source of truth for publishing.
Testing notes: