-
Task
-
Resolution: Done
-
Undefined
-
None
-
ACM 2.15.0
-
None
-
Quality / Stability / Reliability
-
False
-
-
False
-
Not Selected
-
-
-
None
The {{./build/add-bundle.sh }}script was creating incorrect replacement chains in FBC (File-Based Catalog) entries, where older versions were replacing newer versions instead of the proper direction (newer
should replace older).
What needs to be implemented:
1. Replace the existing append-only logic with an extract-process-write approach
2. Implement proper version ordering by sorting entries by name after adding new bundles
3. Create correct replacement chains where newer versions replace older versions
4. Handle "skips" field semantics correctly - entries that are skipped by other entries should not have a 'replaces' field
5. Ensure the first entry in each channel has no 'replaces' field
6. Maintain proper FBC catalog structure for operator lifecycle management
Acceptance criteria:
- Replacement chains flow from older to newer versions (newer replaces older)
- Skipped entries have no 'replaces' field
- First entry in each channel has no 'replaces' field
- Script maintains backward compatibility with existing catalog structure