← Back to issue list

Rework PackageService API

View original Github issue

Metadata

Project
craft-application
Number
#420
Type
issue
State
open
Author
lengau
Labels
Created
Updated
Closed

Current evaluation

PackageService API rework: remove prime_dir from pack, remove metadata, make write_metadata abstract. prime_dir is now deprecated in pack but metadata and write_metadata(path) remain unchanged. No labels, comments, or assignee in ~2 years.

Suggested action: needs triage

Reason: Filed by maintainer lengau 747 days ago with zero comments, no labels, and no assignee. Code inspection shows partial progress: pack's prime_dir param is now marked DEPRECATED in favour of LifecycleService.project_info, but the metadata property (line 209) and write_metadata(path) with its concrete implementation (line 249) are unchanged, so the core rework is still outstanding. Needs triage to decide whether to proceed with the remaining breaking API changes or close as superseded by the deprecation path.

Impact: 45 Quick Win: 13.5 Staleness: 55 Complexity: 70 Confidence: 72 Support Request: 5

Issue body

### What needs to get done - Remove `prime_dir` from `pack` - Remove `metadata` altogether - Make `write_metadata` abstract with no `path` parameter - Explain that `write_metadata` should write all metadata files into the prime directory. ### Why it needs to get done The current API no longer makes sense for all craft apps.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 45
Quick Win: 13.5
Staleness: 55
Complexity: 70
Confidence: 72
Support Request: 5
needs triage PackageService API rework: remove prime_dir from pack, remove metadata, make write_metadata abstract. prime_dir is now deprecated in pack but metadata and write_metadata(path) remain unchanged. No labels, comments, or assignee in ~2 years.
qwen/qwen3.6-35b-a3b
Staleness: 92
Complexity: 75
Confidence: 85
Support Request: 5
needs triage Proposal to refactor PackageService API by removing prime_dir from pack, eliminating metadata handling, and making write_metadata abstract to better support craft apps. Currently untriaged with no maintainer comments after over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 60
Confidence: 75
Support Request: 5
close stale Internal API refactoring task for PackageService proposed nearly two years ago. No comments, labels, or assignee, indicating it has likely been superseded by newer architectural decisions or implementations.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 50
Confidence: 75
Support Request: 5
needs triage Reworks PackageService API by removing prime_dir from pack, dropping metadata, and making write_metadata abstract for prime directory output. Current design no longer fits all craft apps. Open, zero comments, last active 389 days ago, needs triage.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.