Use a path string instead of a string list to encode Node paths
Maintainer thường phản hồi trong vòng 1 ngày
@r-c-n đang làm issue này rồi.
Từ ngày 18/3/2024.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Currently, all Nodes have a path field that encodes the path to that node from a root node (in practice, a checkout node) as a list of strings. I don't know the reason to pick a list to encode a path, but there are certain shortcomings that come with it, the most important of which is that it severely handicaps the way it can be used in queries. That is, we can't search for nodes with a certain string in their paths because we can't express that kind of condition (match an element inside a list) in our queries.
I propose we use a more universal approach to paths and use a common slash-separated path string instead?
Pros:
- They can be properly used as query conditions
- They can carry additional information that the lists can't provide: for instance, we can encode whether a node is a leaf node or an intermediate node by having the intermediate nodes end their path string with a trailing slash ('/'). This would give us additional expressiveness in the queries for free, we'd be able to quickly identify if a node contains children nodes or if it's a leaf node.
- No loss of expressiveness or features compared to the current implementation.
Cons:
- The character used as the separator can't appear in the name of a test suite, test case, etc.
This could be done with very few code changes, a simple set of helper functions can do the work of managing this field (appending parts to the path, setting a trailing slash when adding children nodes, unpacking path parts, etc).
- Ngôn ngữ chính
- Python
- Star
- 120
- Fork
- 108
- Merge trung bình
- 1 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 21
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của kernelci/kernelci-core
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
kernelci/kernelci-core#2591 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
kernelci/kernelci-core#3234 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Make Kubernetes job network readiness checks bounded and deployment-independentCó thể làm lại được @Aniket1260 đã nhận 38 ngày trước và không có pull request nào đang mở. Đang mởgood first issue techdebt
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
kernelci/kernelci-core#3197 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
chromeos techdebt
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
kernelci/kernelci-core#3196 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
kubernetes runners missing logs and test naming wrongCó thể làm lại được @nuclearcat đã nhận 70 ngày trước và không có pull request nào đang mở. Đang mở
kernelci/kernelci-core#3170 · 2 bình luận · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của kernelci/kernelci-core
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
UKGovernmentBEIS/inspect_ai#5781 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Bump .cicd to wamp-cicd 4c2f9ac: `just land` refuses open A18 decisions, `just where` lists themĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
crossbario/cfxdb#139 ·
-
Bump .cicd to wamp-cicd 4c2f9ac: `just land` refuses open A18 decisions, `just where` lists themĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
crossbario/txaio#241 ·
-
UX
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
mediajunkie/piper-morgan-product#1963 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100