All object collections should support .new() and .add() methods

Đang mở
#10 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
postgresql, python
Lĩnh vực
databases

Hướng nghiên cứu

Issue không nêu tên tệp hay kiểm thử nào. Hãy bắt đầu bằng cách xác định collection đối tượng và các class đối tượng con, sau đó theo dõi cách việc gán parent và .create() hiện đang hoạt động; được xem là hoàn tất khi mọi collection đều hỗ trợ hành vi .new() và .add() được chỉ định, bao gồm việc xác thực giữa các parent và cập nhật tài liệu.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

core enhancement

User story

As a DBA, I want to be able to control the creation of the objects on the Postgresql server using Dynamic Objects and Collections so that my productivity increases.

Acceptance Criteria

  • .new() method should be added to object collections
    • .new() should create an ephemeral object with default settings, only requiring a name as a parameter.
    • The object will remain ephemeral until either .create() is called, or it's added to the parent collection using the .add() method.
    • Documentation should only refer to the child object class instead of listing all possible arguments.
  • .add() method should be added to object collections. It should:
    • check if that object already belongs to a different collection (and fail if the object belongs to a different parent)
    • add the said object to the collection
    • assign parent
    • call .create() of that object
  • These methods should either have an abstract implementation on the parent classes and be enforced on all child classes, or they should be generic enough to work on every child class as is. It is also possible to still ask for implementation on the child classes, but use super() for the common bits.
Ngôn ngữ chính
Python
Star
1
Fork
2
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của dataplat/pgmob

Tất cả issue của dataplat/pgmob

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.