forked from opensearch-project/documentation-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converting mermaid diagrams to png's
- Loading branch information
Showing
5 changed files
with
83 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
contains the source for the mermaid diagrams in schemas.md | ||
The mermaid source is converted into an png under | ||
.../images/ubi/ubi-schema-interactions.png | ||
|
||
|
||
```mermaid | ||
graph LR | ||
style L fill:none,stroke-dasharray: 5 5 | ||
subgraph L["`*Legend*`"] | ||
style ss height:150px | ||
subgraph ss["Standard Search"] | ||
direction LR | ||
|
||
style ln1a fill:blue | ||
ln1a[ ]--->ln1b[ ]; | ||
end | ||
subgraph ubi-leg["UBI data flow"] | ||
direction LR | ||
|
||
ln2a[ ].->|"`**UBI interaction**`"|ln2b[ ]; | ||
style ln1c fill:red | ||
ln1c[ ]-->|<span style="font-family:Courier New">query_id</span> flow|ln1d[ ]; | ||
end | ||
end | ||
linkStyle 0 stroke-width:2px,stroke:#0A1CCF | ||
linkStyle 2 stroke-width:2px,stroke:red | ||
``` | ||
```mermaid | ||
%%{init: { | ||
"flowchart": {"htmlLabels": false}, | ||
} | ||
}%% | ||
graph TB | ||
|
||
User--1) <i>raw search string</i>-->Search; | ||
Search--2) <i>search string</i>-->Docs | ||
style OS stroke-width:2px, stroke:#0A1CCF, fill:#62affb, opacity:.5 | ||
subgraph OS[OpenSearch Cluster fa:fa-database] | ||
style E stroke-width:1px,stroke:red | ||
E[( <b>UBI Events</b> )] | ||
style Docs stroke-width:1px,stroke:#0A1CCF | ||
style Q stroke-width:1px,stroke:red | ||
Docs[(Document Index)] -."3) {<i>DSL</i>...} & [<i>object_id's</i>,...]".-> Q[( <b>UBI Queries</b> )]; | ||
Q -.4) <span style="font-family:Courier New">query_id</span>.-> Docs ; | ||
end | ||
|
||
Docs -- "5) <i>return</i> both <span style="font-family:Courier New">query_id</span> & [<i>objects</i>,...]" --->Search ; | ||
Search-.6) <span style="font-family:Courier New">query_id</span>.->U; | ||
Search --7) [<i>results</i>, ...]--> User | ||
|
||
style *client-side* stroke-width:1px, stroke:#D35400 | ||
subgraph "`*client-side*`" | ||
style User stroke-width:4px, stroke:#EC636 | ||
User["`**User**`" fa:fa-user] | ||
App | ||
Search | ||
U | ||
style App fill:#D35400,opacity:.35, stroke:#0A1CCF, stroke-width:2px | ||
subgraph App[       UserApp fa:fa-store] | ||
style Search stroke-width:2px, stroke:#0A1CCF | ||
Search( Search Client ) | ||
style U stroke-width:1px,stroke:red | ||
U( <b>UBI Client</b> ) | ||
end | ||
end | ||
|
||
User -.8) <i>selects</i> <span style="font-family:Courier New">object_id:123</span>.->U; | ||
U-."9) <i>index</i> event:{<span style="font-family:Courier New">query_id, onClick, object_id:123</span>}".->E; | ||
|
||
linkStyle 1,2,0,6 stroke-width:2px,fill:none,stroke:#0A1CCF | ||
linkStyle 3,4,5,8 stroke-width:2px,fill:none,stroke:red | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.