Skip to content

Chore: Reduce and remove dead code#122

Merged
jakubjezek001 merged 15 commits into
enhancement/YN-0620_batchgroup_output_publisherfrom
enhancements/cleanup_repo
Jun 16, 2026
Merged

Chore: Reduce and remove dead code#122
jakubjezek001 merged 15 commits into
enhancement/YN-0620_batchgroup_output_publisherfrom
enhancements/cleanup_repo

Conversation

@rdelillo

@rdelillo rdelillo commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Changelog Description

Code polish related to : #84 #124

  • Minor bugfixes (dead code, condition bugs, race condition)
  • Simplify/Factorize code and remove duplication where possible
  • Re-update comments
  • No feature changes

Testing notes:

  1. Tested through Flame 2026.2 on macOs

@rdelillo rdelillo added the type: maintenance Changes to the code that don't affect product functionality (Technical debt, refactors etc.)) label Apr 21, 2026
@rdelillo rdelillo changed the title Clean up ayon-flame Chore: Reduce code and other low hanging-fruits Apr 21, 2026
@rdelillo rdelillo changed the title Chore: Reduce code and other low hanging-fruits Chore: Reduce code and remove dead code Apr 21, 2026
@rdelillo rdelillo requested a review from Copilot April 22, 2026 18:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR focuses on simplifying the Flame client integration by removing dead/duplicated code paths, tightening logging, and refactoring preference/menu handling while keeping behavior intended to remain unchanged.

Changes:

  • Refactors Flame preferences handling into a single read/write helper and cleans up related menu preference access.
  • Removes dead code and replaces print-based diagnostics with structured logging across API modules.
  • Fixes/cleans up several small logic issues (e.g., XML preset search loop variable, marker data scoping, feed colorspace element creation).

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
client/ayon_flame/api/workio.py Removes unused bits, clarifies unsupported workfile operations via explicit exceptions.
client/ayon_flame/api/utils.py Updates copy/sync logic and improves comments/clarity around Flame utility scripts.
client/ayon_flame/api/render_utils.py Replaces prints with logging and simplifies preset-path search/validation helpers.
client/ayon_flame/api/plugin.py Cleans up shared state issues (marker data), improves logging, and simplifies filesystem ops.
client/ayon_flame/api/pipeline.py Removes dead callback code and simplifies host/context management scaffolding.
client/ayon_flame/api/menu.py Refactors preference access and reduces duplicated rescan/refresh logic.
client/ayon_flame/api/lib.py Major refactor of preferences I/O and some small cleanup/logging improvements.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread client/ayon_flame/api/plugin.py
Comment thread client/ayon_flame/api/workio.py Outdated
Comment thread client/ayon_flame/api/workio.py Outdated
Comment thread client/ayon_flame/api/lib.py
@rdelillo rdelillo self-assigned this May 5, 2026
@rdelillo rdelillo changed the base branch from develop to enhancement/YN-0620_batchgroup_output_publisher May 6, 2026 17:36
@rdelillo rdelillo changed the title Chore: Reduce code and remove dead code Chore: Reduce and remove dead code May 6, 2026
@rdelillo rdelillo added the sponsored This is directly sponsored by a client or community member label May 6, 2026
@rdelillo rdelillo requested a review from jakubjezek001 May 6, 2026 17:38
@rdelillo rdelillo marked this pull request as ready for review May 6, 2026 17:38

@jakubjezek001 jakubjezek001 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tested via Launching, Publishing and Loading back to my project and all was working as usual.

@jakubjezek001 jakubjezek001 merged commit 9e723d0 into enhancement/YN-0620_batchgroup_output_publisher Jun 16, 2026
@jakubjezek001 jakubjezek001 deleted the enhancements/cleanup_repo branch June 16, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sponsored This is directly sponsored by a client or community member type: maintenance Changes to the code that don't affect product functionality (Technical debt, refactors etc.))

Projects

None yet

4 participants