Fix the defects of the Phase 4 review (refs #34 #35 #36)
ci / test (postgres) (push) Successful in 2m41s
ci / test (sqlite) (push) Successful in 1m56s
ci / test (postgres) (pull_request) Successful in 3m45s
ci / test (sqlite) (pull_request) Successful in 2m22s
ci / image (push) Successful in 1m10s
ci / image (pull_request) Successful in 13s
ci / test (postgres) (push) Successful in 2m41s
ci / test (sqlite) (push) Successful in 1m56s
ci / test (postgres) (pull_request) Successful in 3m45s
ci / test (sqlite) (pull_request) Successful in 2m22s
ci / image (push) Successful in 1m10s
ci / image (pull_request) Successful in 13s
- An error of the database (PostgreSQL restarting) no longer stops the laboratory until the next start: the queue logs it, waits 30 seconds on the injectable clock and tries the same trial again. - Buy and hold, the comparison of every report, buys an instrument whose history starts later at its first close, with the share kept free for it; before, it was never bought and the others took its weight. Its version goes to 2. - The comparison page reads a and b as text: a malformed id shows "two finished tests needed" instead of an error page. - A trial re-checks the hash of its plan before running and refuses a plan that no longer matches it. - Parameters that count days take whole numbers only (10.5 would run as 10 and count twice in the DSR); the capital starts from 1, as the message says. ADR 0010 says so, and corrects the estimated minimum of the research history: 5 does refuse smaller orders, like the exchanges' minimums. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
af7528560f
commit
f278ff4f67
10 files changed
+158
-28
No files matched your search
@@ -71,11 +71,12 @@
|
||||
[CascadingParameter]
|
||||
public HttpContext? HttpContext { get; set; }
|
||||
|
||||
// Text, not Guid: a malformed value must give "servono due test", not an error page.
|
||||
[SupplyParameterFromQuery(Name = "a")]
|
||||
public Guid? A { get; set; }
|
||||
public string? A { get; set; }
|
||||
|
||||
[SupplyParameterFromQuery(Name = "b")]
|
||||
public Guid? B { get; set; }
|
||||
public string? B { get; set; }
|
||||
|
||||
protected override async Task LoadAsync()
|
||||
{
|
||||
@@ -85,9 +86,9 @@
|
||||
_b = await ReadAsync(store, B, ct);
|
||||
}
|
||||
|
||||
private static async Task<(Trial, BacktestReport)?> ReadAsync(TrialStore store, Guid? id, CancellationToken ct)
|
||||
private static async Task<(Trial, BacktestReport)?> ReadAsync(TrialStore store, string? id, CancellationToken ct)
|
||||
{
|
||||
if (id is not { } key || await store.GetAsync(key, ct) is not { } trial || await store.ReportJsonAsync(key, ct) is not { } json)
|
||||
if (!Guid.TryParse(id, out var key) || await store.GetAsync(key, ct) is not { } trial || await store.ReportJsonAsync(key, ct) is not { } json)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user