resolves: an as-of mode - the newest register row on or before the record's date (exchange rates, price changes), not only a covering validity period
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Start by reading the existing resolves: implementation from issue #6712 and trace how it evaluates between matches, orders candidates, and reports ambiguous or notFound. Add an as-of mode that selects the newest row with start on or before the record date; done means equal start dates remain ambiguous and dates with no earlier row return notFound. The payload names no source files or tests, so locate the implementation and its tests before making changes.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
resolves: (#6712) fills a to-one, and with copy: scalars, from the register row whose validity period covers a date of the record (between: { start, end, value }). Two register rows covering the same date are reported as ambiguous, never picked from.
A very common register has no end date: a dated quote series. Exchange rates (one CurrencyRate row per currency per publication day), price changes and tax-rate changes all work this way. Each row is valid from its date until the next row replaces it. Declared with between: { start: date, value: date } and no end, every older row is open-ended too, so all of them cover the record's date and every lookup is ambiguous. Declared with start: date, end: date, a record dated on a day with no quote (a weekend, a holiday, a day the bank published nothing) is notFound. The rule the business applies is simple: take the newest row whose date is on or before the record's date. The construct cannot say it.
Ask
An as-of mode on between:
resolves:
- name: invoiceRate
event: { onCreate: SalesInvoice }
from: CurrencyRate
match: { Currency: Currency }
between: { start: date, value: date, asOf: true } # newest row with start <= value
copy: { rate: rate } # snapshot onto SalesInvoice.rate
outcome: rateResolution
With asOf: true the lookup orders the candidates by start descending and takes the first row whose start <= value. ambiguous then means only two rows with the same start. notFound means no row on or before the date.
Where it is needed
BusinessIntents/base-journal#80, realised FX differences on settlement. The invoice and the payment each need the rate effective on their own date. The difference between the two, times the settled amount, is the 624 / 724 posting.
- Ngôn ngữ chính
- Java
- Star
- 278
- Fork
- 97
- Merge trung bình
- 15 giờ 33 phút
- Pull request đã merge (30 ngày)
- 310
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 eclipse-dirigible/dirigible
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
eclipse-dirigible/dirigible#8354 ·
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 72/100
eclipse-dirigible/dirigible#8291 ·
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 75/100
eclipse-dirigible/dirigible#8240 ·
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 78/100
eclipse-dirigible/dirigible#8238 ·
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 82/100
eclipse-dirigible/dirigible#8232 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của eclipse-dirigible/dirigible
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
EpssMirrorTask leaks temp file on failed download and has no request timeoutCó thể đã có người làm @someshhh-45 đã nhận hôm nay. Đang mởdefect in triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
DependencyTrack/dependency-track#7845 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: WriteFileTool shows "Error reading file" snippet for relative paths when baseDir is setCó thể đã có người làm @ShryukGrandhi đã nhận hôm nay. Đang mở
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 86/100
agentscope-ai/agentscope-java#3917 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/maven-checkstyle-plugin#735 ·
Maintainer thường phản hồi trong vòng 1 ngày