feat: migrate metadata to nested structure for tac-quicksilver compatibility#32
Merged
ChristopherJHart merged 1 commit intomasterfrom Feb 6, 2026
Merged
Conversation
…ibility
Update github-ops-manager to write and read metadata using nested structure
that aligns with tac-quicksilver's Pydantic models. This prevents metadata
loss when Quicksilver loads YAML files.
New nested structure:
- metadata.project_tracking.{issue_number, issue_url, pr_number, pr_url, pr_branch, git_url}
- metadata.catalog_tracking.{pr_number, pr_url, pr_branch, git_url}
- metadata.catalog.destined (replaces flat catalog_destined field)
Uses standard dict .setdefault() for writes and .get() chains for reads.
Co-Authored-By: Claude <noreply@anthropic.com>
ef93a7c to
de26ec0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
get_nested_metadata()andset_nested_metadata()for safe nested accessNew Nested Structure
Changes
Core Functions Updated:
update_test_case_with_issue_metadata()→ writes tometadata.project_trackingupdate_test_case_with_project_pr_metadata()→ writes tometadata.project_trackingupdate_test_case_with_pr_metadata()→ writes tometadata.catalog_trackingCheck Functions Updated:
requires_issue_creation()→ reads frommetadata.project_trackingrequires_project_pr_creation()→ reads frommetadata.project_trackingandmetadata.catalog.destinedrequires_catalog_pr_creation()→ reads frommetadata.catalog_trackingandmetadata.catalog.destinedFiles Modified:
github_ops_manager/processing/test_cases_processor.py- Main implementationgithub_ops_manager/synchronize/test_requirements.py- Consumer updatesgithub_ops_manager/synchronize/pull_requests.py- Consumer updatesgithub_ops_manager/configuration/cli.py- Docstring updatestests/unit/test_processing_test_cases_processor.pytests/unit/test_synchronize_test_requirements.pytests/unit/test_synchronize_issues_yaml_migration.pyTest plan
🤖 AI Generation Metadata
🤖 Generated with Claude Code