[Feature]: make catalog add command as "UPSERT"
- Ngôn ngữ chính
- Python
- Star
- 137k
- Fork
- 12.3k
- Merge trung bình
- 2 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 159
Mô tả
### Problem Statement
When we run a catalog add command, be it extension catalog or present catalog or others, it gives an error if the catalog already exists. If this can be made as UPSERT, it would help to simply use the command without failing.
This is especially useful in scenarios where these commands are part of a workflow and thus can potentially be executed multiple times. Without the UPSERT behavior, the consumers have to add that logic in the workflow.
### Proposed Solution
Make catalog add command idempotent / work like add + update OR add + ignore.
### Alternatives Considered
_No response_
### Component
Specify CLI (initialization, commands)
### AI Agent (if applicable)
None
### Use Cases
_No response_
### Acceptance Criteria
_No response_
### Additional Context
_No response_
Hướng dẫn đóng góp
Hướng nghiên cứu
Start at the CLI initialization and commands entry point for the catalog add command, then trace how existing catalogs are handled. Review the catalog command tests and clarify whether an existing catalog should be updated or ignored. Done means repeated catalog-add workflow runs no longer fail and the chosen existing-catalog behavior is covered by tests.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- cli
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 48/100