Universe generation drops stored entries for coins absent from current output
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 86/100
Hướng nghiên cứu
Bắt đầu với GenerateUniverseFiles trong CoinGeckoDataDownloader.cs và theo dõi cách hàm truyền _processedUniverseFolder đến SaveContentToFile. Thêm một kiểm thử hồi quy thông qua GenerateUniverseFiles bằng thiết lập được cung cấp, với một đồng coin đã lưu nhưng không có trong đầu ra hiện tại. Hoàn tất khi hàng đã lưu được giữ lại, hàng của đồng coin được tải về được cập nhật và kiểm thử chạy thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
GenerateUniverseFiles drops stored universe entries for coins that have no output coin file in the current run. It returns true after writing the incomplete universe.
This is reproducible on master (0b89b5a).
Reproduction
- Construct
CoinGeckoUniverseDataDownloaderwith distinct, empty destination and processed directories. - Write
processed/universe/20260808.csvcontaining:BTC,64879.756,21708815799.29,1301953613966.19 ETH,3000,10000000000,360000000000 - Write only
destination/eth.csv, containing:20260808,3001,10000000000,360100000000 - Call
GenerateUniverseFiles().
Observed: it returns true, and destination/universe/20260808.csv contains only:
ETH,3001,10000000000,360100000000
The stored BTC row is absent.
Cause and expected result
GenerateUniverseFiles passes _processedUniverseFolder to SaveContentToFile, but the helper appends another universe component. It looks for processed/universe/universe/20260808.csv, so it never reads the existing file.
Preserve the stored BTC row and replace the ETH row with its fetched value. Add a regression through GenerateUniverseFiles, with a coin absent from the current output, so the production caller's directory arguments are exercised. Suggestion: make the helper and caller agree on whether the processed directory already includes universe.
- Ngôn ngữ chính
- C#
- Star
- 5
- Fork
- 9
- Merge trung bình
- 3 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 1
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 QuantConnect/Lean.DataSource.CoinGecko
-
Check for Data ConsistencyĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Tất cả issue của QuantConnect/Lean.DataSource.CoinGecko
Issue tương tự
-
bug emitter:client:csharp
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
microsoft/typespec#12572 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-area-label
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày
-
AWS Lambda: KeyNotFoundException drops HTTP-triggered transactions when allowAllHeaders is disabledĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
newrelic/newrelic-dotnet-agent#3949 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area-networking
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
dotnet/aspnetcore#70545 · 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 87/100
Maintainer thường phản hồi trong vòng 1 ngày