Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

TrayPublisher: Removed from experimental tools #3667

Merged

Conversation

iLLiCiTiT
Copy link
Member

@iLLiCiTiT iLLiCiTiT commented Aug 15, 2022

Brief description

Tray publisher is added to tray menu by default and artist don't have to enable the experimental option.

Description

Tray Publisher is now in ready to use state and should work at least the same way as standalone publisher did. We should collect as much input from artists as possible thus the tool is removed from experimental tools and is added as available feature in tray.

Additional information

Changed label to Tray Publish so it is possible to differentiate in standalone publisher and tray publisher.

Testing notes:

  1. Tray publisher is visible in tray menu without enabling it in local settings
  2. Tray publisher is not visible in local settings

@iLLiCiTiT iLLiCiTiT self-assigned this Aug 15, 2022
@iLLiCiTiT iLLiCiTiT added the type: enhancement Enhancements to existing functionality label Aug 15, 2022
Copy link
Member

@kalisp kalisp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2022-08-17 130031

Tool is opening up.

@mkolar
Copy link
Member

mkolar commented Aug 17, 2022

This is confusing. If we take it out of experimental, we need to at the same time hide the old one and make that optional. Two publishers at the same time is a road to hell I'm afraid. Do we now have 1-1 functionality match?

@iLLiCiTiT
Copy link
Member Author

iLLiCiTiT commented Aug 17, 2022

Do we now have 1-1 functionality match?

There is not 100% but at the same time we should add an easy access to use tray publisher so somebody in production can test what we have there now.

We can add standalone publisher and tray publisher into module settings so they can be enabled/disabled. Also we can change label of standalone publisher action.

@iLLiCiTiT iLLiCiTiT marked this pull request as draft September 9, 2022 15:29
@m-u-r-p-h-y
Copy link
Member

It is not clear what should happen next.

current Publish to be renamed and hidden? (Legacy Publish and create settings to put it back on, or?)

current Tray Publish renamed to Publish (or keep Tray Publish? or?)

@mkolar
Copy link
Member

mkolar commented Nov 7, 2022

I would remove the old publisher and keep the new one just called Publisher (to keep in liner with the loader and launcher rather than load and launch). I agree that we should keep the option to turn the old publisher back on somewhere in the settings. In which case the old should be called Publisher (legacy)

@github-actions github-actions bot added this to the next-patch milestone Nov 10, 2022
Copy link

@hound hound bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

Traceback (most recent call last):
Traceback (most recent call last):
  File "/usr/local/bin/flake8", line 8, in 
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/flake8/main/cli.py", line 18, in main
    app.run(argv)
  File "/usr/local/lib/python3.8/dist-packages/flake8/main/application.py", line 393, in run
    self._run(argv)
  File "/usr/local/lib/python3.8/dist-packages/flake8/main/application.py", line 381, in _run
    self.run_checks()
  File "/usr/local/lib/python3.8/dist-packages/flake8/main/application.py", line 300, in run_checks
    self.file_checker_manager.run()
  File "/usr/local/lib/python3.8/dist-packages/flake8/checker.py", line 331, in run
    self.run_serial()
  File "/usr/local/lib/python3.8/dist-packages/flake8/checker.py", line 315, in run_serial
    checker.run_checks()
  File "/usr/local/lib/python3.8/dist-packages/flake8/checker.py", line 598, in run_checks
    self.run_ast_checks()
  File "/usr/local/lib/python3.8/dist-packages/flake8/checker.py", line 502, in run_ast_checks
    for (line_number, offset, text, check) in runner:
  File "/usr/local/lib/python3.8/dist-packages/flake8_django/checker.py", line 56, in run
    parser.visit(self.tree)
  File "/usr/lib/python3.8/ast.py", line 371, in visit
    return visitor(node)
  File "/usr/lib/python3.8/ast.py", line 379, in generic_visit
    self.visit(item)
  File "/usr/local/lib/python3.8/dist-packages/flake8_django/checker.py", line 39, in visit_ClassDef
    self.capture_issues_visitor('ClassDef', node)
  File "/usr/local/lib/python3.8/dist-packages/flake8_django/checker.py", line 33, in capture_issues_visitor
    self.generic_visit(node)
  File "/usr/lib/python3.8/ast.py", line 381, in generic_visit
    self.visit(value)
  File "/usr/local/lib/python3.8/dist-packages/flake8_django/checker.py", line 36, in visit_Call
    self.capture_issues_visitor('Call', node)
  File "/usr/local/lib/python3.8/dist-packages/flake8_django/checker.py", line 30, in capture_issues_visitor
    issues = checker.run(node)
  File "/usr/local/lib/python3.8/dist-packages/flake8_django/checkers/render.py", line 22, in run
    if isinstance(arg, ast.Call) and arg.func.id == 'locals':
AttributeError: 'Attribute' object has no attribute 'id'

Copy link

@hound hound bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some files could not be reviewed due to errors:

Traceback (most recent call last):
Traceback (most recent call last):
  File "/usr/local/bin/flake8", line 8, in 
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/flake8/main/cli.py", line 18, in main
    app.run(argv)
  File "/usr/local/lib/python3.8/dist-packages/flake8/main/application.py", line 393, in run
    self._run(argv)
  File "/usr/local/lib/python3.8/dist-packages/flake8/main/application.py", line 381, in _run
    self.run_checks()
  File "/usr/local/lib/python3.8/dist-packages/flake8/main/application.py", line 300, in run_checks
    self.file_checker_manager.run()
  File "/usr/local/lib/python3.8/dist-packages/flake8/checker.py", line 331, in run
    self.run_serial()
  File "/usr/local/lib/python3.8/dist-packages/flake8/checker.py", line 315, in run_serial
    checker.run_checks()
  File "/usr/local/lib/python3.8/dist-packages/flake8/checker.py", line 598, in run_checks
    self.run_ast_checks()
  File "/usr/local/lib/python3.8/dist-packages/flake8/checker.py", line 502, in run_ast_checks
    for (line_number, offset, text, check) in runner:
  File "/usr/local/lib/python3.8/dist-packages/flake8_django/checker.py", line 56, in run
    parser.visit(self.tree)
  File "/usr/lib/python3.8/ast.py", line 371, in visit
    return visitor(node)
  File "/usr/lib/python3.8/ast.py", line 379, in generic_visit
    self.visit(item)
  File "/usr/local/lib/python3.8/dist-packages/flake8_django/checker.py", line 39, in visit_ClassDef
    self.capture_issues_visitor('ClassDef', node)
  File "/usr/local/lib/python3.8/dist-packages/flake8_django/checker.py", line 33, in capture_issues_visitor
    self.generic_visit(node)
  File "/usr/lib/python3.8/ast.py", line 381, in generic_visit
    self.visit(value)
  File "/usr/local/lib/python3.8/dist-packages/flake8_django/checker.py", line 36, in visit_Call
    self.capture_issues_visitor('Call', node)
  File "/usr/local/lib/python3.8/dist-packages/flake8_django/checker.py", line 30, in capture_issues_visitor
    issues = checker.run(node)
  File "/usr/local/lib/python3.8/dist-packages/flake8_django/checkers/render.py", line 22, in run
    if isinstance(arg, ast.Call) and arg.func.id == 'locals':
AttributeError: 'Attribute' object has no attribute 'id'

@iLLiCiTiT iLLiCiTiT force-pushed the enhancement/tray_publisher_is_not_experimental branch from a6e1fbb to 5d74883 Compare November 10, 2022 10:31
@iLLiCiTiT iLLiCiTiT marked this pull request as ready for review November 10, 2022 10:43
@iLLiCiTiT
Copy link
Member Author

Standalone publisher is disabled by default (can be enabled) and has label Publisher (legacy). Tray publisher has label Publisher.

@jakubjezek001 jakubjezek001 removed this from the next-patch milestone Nov 10, 2022
@iLLiCiTiT iLLiCiTiT changed the base branch from develop to release/3.15.x November 11, 2022 15:06
@iLLiCiTiT iLLiCiTiT merged commit a4999bc into release/3.15.x Nov 11, 2022
@iLLiCiTiT iLLiCiTiT deleted the enhancement/tray_publisher_is_not_experimental branch November 11, 2022 15:52
@github-actions github-actions bot added this to the next-minor milestone Nov 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: enhancement Enhancements to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants