-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adr for conceptual view #1190
adr for conceptual view #1190
Conversation
c0bb407
to
7bc6b02
Compare
7bc6b02
to
313aeaa
Compare
I like it. We should consider if there are better terms to use than
If the
|
313aeaa
to
192dc36
Compare
In the graph world this conversation comes up regularly ... I always settle on anc/desc (for DAG) as most people agree what it means.
I am all for simplifying and/or having less 'moving parts' ... even better when parameterised ... in this case I suggested separation because it was easier to puzzle out ... lets discuss this in meeting. |
Maybe, we can have both? A generalized endpoint, with the options described. And opinionated versions, which simply set defaults. |
72312d4
to
cc6aa77
Compare
One idea, when it comes to relationships. Why not use the following serialization: {
"sbom_id": "",
"node_id": "",
"ancestors": [
{
"relationship": "AncestorOf",
"node": {
"sbom_id": "",
"node_id": "",
…
}
}
]
} Taking out the relationship of the actual node data. IMO, this would separate the node from the relationship and might it a bit clearer when to expect which fields. One alternative to this could be to have all relationships group in a map: {
"node_id": "",
"ancestors": {
"AncestorOf": [
{ "node_id": "anc1", … }
{ "node_id": "anc2", … }
]
}
} |
I can see why this might be useful, though it also complexifies things - for what significant benefit ? if we can have a response payload that is amenable directly to visualisation I think that is the best goal to drive towards. The biggest/last issue we need to define is conceptual view relationships - will try to get something proposed there before our meeting today. |
327efec
to
c5eb868
Compare
c5eb868
to
b42694c
Compare
@chirino, @ctron and @jcrossley3 please re review |
Rendered version: https://github.com/trustification/trustify/blob/adr-analysis-conceptual/docs/adrs/00002-analysis-graph.md