mirror of
https://github.com/morluto/rea.git
synced 2026-12-05 06:21:12 +00:00
refactor(views): share parent Evidence identity fields (#15465)
This commit is contained in:
1 parent
0e7bb9e18e
commit
eac728f39d
68 files changed
+145
-201
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { viewParentIdentity } from "./viewParentIdentity.js";
|
||||
import { z } from "zod";
|
||||
import {
|
||||
pythonPycSchema,
|
||||
@@ -72,9 +73,7 @@ export const projectPythonPycView = (
|
||||
const { code_objects, limitations, ...identity } = parsed.value;
|
||||
const summary = { ...identity, limitation_count: limitations.length };
|
||||
const shared = {
|
||||
parent_evidence_id: parent.evidenceId,
|
||||
parent_operation: "inspect_python_pyc" as const,
|
||||
parent_digest: parent.evidenceId.slice(3),
|
||||
...viewParentIdentity(parent, "inspect_python_pyc"),
|
||||
artifact: {
|
||||
path: identity.artifact.path,
|
||||
sha256: identity.artifact.sha256,
|
||||
|
||||
Reference in new issue
Block a user