mirror of
https://github.com/morluto/rea.git
synced 2026-12-05 06:21:12 +00:00
fix(browser): deliver the analyze_web_bundle summary when no view is named
The description said detail summary retains the complete Evidence, but
the request schema required a view with it, so {detail: "summary"} was
refused at view, and the binding only projected when a view was present.
analyze_javascript_application, which shares the route delivery, already
accepted a summary without a view.
The summary delivery now makes the view optional, and the binding projects
the retained analysis's summary view when none is named. A summary with a
view is unchanged.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
This commit is contained in:
1 parent
fe4e466ef9
commit
ebe01e7884
4 files changed
+59
-7
No files matched your search
@@ -41,7 +41,8 @@ describe.each(cases)("%s delivery contract", (name, base) => {
|
||||
[{}, true],
|
||||
[{ detail: "complete" }, true],
|
||||
[{ detail: "summary", view }, true],
|
||||
[{ detail: "summary" }, name === "analyze_javascript_application"],
|
||||
// Without a view, both deliver the summary of the retained analysis.
|
||||
[{ detail: "summary" }, true],
|
||||
[{ view }, false],
|
||||
[{ detail: "complete", view }, false],
|
||||
[{ detail: "summary", view: { ...view, kind: "other" } }, false],
|
||||
|
||||
Reference in new issue
Block a user