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

Loader: "Enable grouping" toggle fails due to invalid access to statuses #782

Closed
2 tasks done
BigRoy opened this issue Jul 17, 2024 · 0 comments · Fixed by #783
Closed
2 tasks done

Loader: "Enable grouping" toggle fails due to invalid access to statuses #782

BigRoy opened this issue Jul 17, 2024 · 0 comments · Fixed by #783
Assignees
Labels
type: bug Something isn't working

Comments

@BigRoy
Copy link
Collaborator

BigRoy commented Jul 17, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior:

When clicking the "Enable Grouping" checkbox to disable product groups, nothing happens. An error occurs:

Traceback (most recent call last):
  File "E:\dev\ayon-core\client\ayon_core\tools\loader\ui\window.py", line 417, in _on_product_group_change
    self._products_widget.set_enable_grouping(
  File "E:\dev\ayon-core\client\ayon_core\tools\loader\ui\products_widget.py", line 271, in set_enable_grouping
    self._products_model.set_enable_grouping(enable_grouping)
  File "E:\dev\ayon-core\client\ayon_core\tools\loader\ui\products_model.py", line 168, in set_enable_grouping
    self.refresh(self._last_project_name, self._last_folder_ids)
TypeError: refresh() missing 1 required positional argument: 'status_names'

image

Expected Behavior:

The toggle should work.

Version

1.0.0

What platform you are running on?

Windows

Steps To Reproduce:

  1. Open Loader UI
  2. Go to folder with products in product groups
  3. Click Enable Grouping toggle

Are there any labels you wish to add?

  • I have added the relevant labels to the bug report.

Relevant log output:

Traceback (most recent call last):
  File "E:\dev\ayon-core\client\ayon_core\tools\loader\ui\window.py", line 417, in _on_product_group_change
    self._products_widget.set_enable_grouping(
  File "E:\dev\ayon-core\client\ayon_core\tools\loader\ui\products_widget.py", line 271, in set_enable_grouping
    self._products_model.set_enable_grouping(enable_grouping)
  File "E:\dev\ayon-core\client\ayon_core\tools\loader\ui\products_model.py", line 168, in set_enable_grouping
    self.refresh(self._last_project_name, self._last_folder_ids)
TypeError: refresh() missing 1 required positional argument: 'status_names'

Additional context:

No response

@BigRoy BigRoy added the type: bug Something isn't working label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants