Skip to content

[project/playlists] Add metadata descriptor reorder + fix add_entity_to_playlist crash#404

Merged
frankrousseau merged 2 commits intocgwire:mainfrom
frankrousseau:main
Apr 28, 2026
Merged

[project/playlists] Add metadata descriptor reorder + fix add_entity_to_playlist crash#404
frankrousseau merged 2 commits intocgwire:mainfrom
frankrousseau:main

Conversation

@frankrousseau
Copy link
Copy Markdown
Contributor

Problems

  • No wrapper exposes the metadata-descriptor reorder endpoint, so clients cannot reorder descriptors via gazu.
  • add_entity_to_playlist crashes with AttributeError when called on a freshly created playlist whose shots field is None.

Solutions

  • Add reorder_metadata_descriptors wrapper in gazu/project.py with matching tests.
  • Initialize playlist["shots"] to [] when missing before appending the entry, with a regression test.

frankrousseau and others added 2 commits April 28, 2026 16:38
A freshly created playlist returns shots=None, which made
add_entity_to_playlist crash with AttributeError on the local
.append. Initialize shots to [] when missing before appending.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@frankrousseau frankrousseau merged commit 67276bb into cgwire:main Apr 28, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant