-
Notifications
You must be signed in to change notification settings - Fork 3
feat: Backlog/framework loader henrik #530
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
feat: Backlog/framework loader henrik #530
Conversation
…q/integrations into backlog/framework-loader
…q/integrations into backlog/framework-loader
…q/integrations into backlog/framework-loader
…q/integrations into backlog/framework-loader
…q/integrations into backlog/framework-loader
…q/integrations into backlog/framework-loader
…q/integrations into backlog/framework-loader-henrik
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
||||||||||||||||||||||||
| self._event_hub_thread = _EventHubThread(self._remote_session) | ||
|
|
||
| if not self._event_hub_thread.is_alive(): | ||
| self.logger.debug( | ||
| 'Starting new hub thread for {}'.format(self) | ||
| ) | ||
| self._event_hub_thread.start() | ||
|
|
||
| # Make sure it is shutdown | ||
| atexit.register(self.close) |
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.
Maybe we can try to create a remote event manager so the _EventHugThread is handled there.
projects/framework-common-extensions/dialogs/standard_loader_dialog.py
Outdated
Show resolved
Hide resolved
projects/framework-common-extensions/dialogs/standard_loader_dialog.py
Outdated
Show resolved
Hide resolved
projects/framework-common-extensions/dialogs/standard_loader_dialog.py
Outdated
Show resolved
Hide resolved
projects/framework-common-extensions/dialogs/standard_loader_dialog.py
Outdated
Show resolved
Hide resolved
| if not entities and False: | ||
| # Mock for now | ||
| entities = [ | ||
| { | ||
| 'entity_id': 'a66902b4-987c-4ca0-ba39-87be4798f227', | ||
| 'entity_type': 'Component', | ||
| } | ||
| ] |
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.
We can remove this now.
| def build_ui(self): | ||
| # Check entities | ||
| # Select the desired tool_config | ||
| tool_config_message = None |
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.
Approach decided on the meeting:
The dialog contains the function to filter out the tool_configs based on the compatible:file_types keys from the tool_config.
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.
Moving logic to a is_compatible class function
| options: | ||
| file_types: | ||
| - ".png" | ||
| - ".jpg" | ||
| - ".jpeg" | ||
| - ".exr" | ||
| - ".tif" | ||
| - ".tiff" | ||
| - ".tga" | ||
| - ".bmp" | ||
| - ".hdr" | ||
| - ".dpx" | ||
| - ".cin" | ||
| - ".psd" | ||
| - ".tx" |
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.
Replace it by compatible....
| startup_tools.append( | ||
| [ | ||
| name, | ||
| label, | ||
| run_on == "startup", | ||
| action, | ||
| dialog_name, | ||
| options, | ||
| ] | ||
| ) |
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.
Will improve this with the separated actions, and run_tool. But that will happen on the base branch.
…ialog.py Co-authored-by: Lluis Casals Marsol <112543804+lluisFtrack@users.noreply.github.com>
…ialog.py Co-authored-by: Lluis Casals Marsol <112543804+lluisFtrack@users.noreply.github.com>
…ialog.py Co-authored-by: Lluis Casals Marsol <112543804+lluisFtrack@users.noreply.github.com>
…ialog.py Co-authored-by: Lluis Casals Marsol <112543804+lluisFtrack@users.noreply.github.com>
…ialog.py Co-authored-by: Lluis Casals Marsol <112543804+lluisFtrack@users.noreply.github.com>
Co-authored-by: Lluis Casals Marsol <112543804+lluisFtrack@users.noreply.github.com>
…ftrackhq/integrations into backlog/framework-loader-henrik
…q/integrations into backlog/framework-loader-henrik
| # Inject the entity data into the context plugin | ||
| if 'options' not in context_plugin: | ||
| context_plugin['options'] = {} | ||
| context_plugin['options'].update(self.dialog_options) |
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.
What if we try then to be more specific? so instead of passing the self.dialog_optins pass the self.dialog_options.get('event_data')
| options: | ||
| name: "Nuke image loader" |
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.
Why are we passing name inside options? Is this really needed?
Can't you put logic inside the plugin or the widget to get the name instead?
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.
Decided to extract label from tool config name
lluisCM
left a comment
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.
Will need to be tested on the final QA
Resolves :
This PR has been tested on :
Changes
Test