Audit use/structure of data classes

Đang mở
#60 1 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
25/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
cli

Hướng nghiên cứu

Start by reviewing issues #11 and #32, then audit the data-class usages and the AerieClient methods that expose them. Compare the API and client classes, including to_api_create and from_api_read mappings, against the proposed serialization rules. Done means the class boundaries and usage conventions are codified and the affected usages follow them.

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

Mô tả

breaking change enhancement question

Inspired by the goal of cleaning up the data classes as much as possible (see #11 and #32), we should audit everywhere they're used, everywhere they aren't but should, and how they're structured.

I'm particularly interested in codifying the difference between the "API" and "client" data classes. My current ideas are:

  • "API" data classes should contain exclusively serializable data types so that we don't need any custom (de)serialization defined for those classes. They could use default JSON serialization and go straight into the GQL queries.
  • Any custom mapping would happen in the "client" to_api_create and from_api_read methods.
  • Only "client" data classes would be exposed as input/return types on AerieClient methods. "API" data classes are only used behind the scenes.
  • "API" data classes are then only created/used in cases where we need custom (de)serialization. Otherwise, we can directly use the "client" data class.
Ngôn ngữ chính
Python
Star
5
Fork
7
Merge trung bình
3 ngày 14 giờ
Pull request đã merge (30 ngày)
2

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 NASA-AMMOS/plandev-cli

Tất cả issue của NASA-AMMOS/plandev-cli

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.