Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

Render new ShapeViewer by directly traversing HttpInteraction#300

Merged
JaapRood merged 2 commits intoopticdev:developfrom
JaapRood:feature/shape-viewer-interaction-traverser
Aug 6, 2020
Merged

Render new ShapeViewer by directly traversing HttpInteraction#300
JaapRood merged 2 commits intoopticdev:developfrom
JaapRood:feature/shape-viewer-interaction-traverser

Conversation

@JaapRood
Copy link
Copy Markdown
Contributor

@JaapRood JaapRood commented Aug 6, 2020

Side-stepping a whole bunch of the domain, any browser is perfectly capable of traversing a JSON structure itself. In our case, traversing the body of either the Request or Response of an HttpInteraction to render the basic shape of the shape viewer, powering the row-level view model.

This depends on #299 to get merged, first. Through that, this all happens behind a feature flag, so not much to review. All missing functionality RenderShape provided, like marking missing fields and folding of collections, will be reimplemented incrementally and is beyond the scope of this PR.

@JaapRood JaapRood force-pushed the feature/shape-viewer-interaction-traverser branch from 45aa6c1 to a5a4dcf Compare August 6, 2020 14:24
@JaapRood JaapRood merged commit c84f44d into opticdev:develop Aug 6, 2020
@JaapRood JaapRood deleted the feature/shape-viewer-interaction-traverser branch August 6, 2020 14:43
@JaapRood JaapRood requested a review from acunniffe August 6, 2020 14:44
@JaapRood
Copy link
Copy Markdown
Contributor Author

JaapRood commented Aug 6, 2020

@acunniffe a sanity check in traversals could never hurt, but feel free to ignore as it's one of those things of it either working, or not.

@acunniffe
Copy link
Copy Markdown
Member

@JaapRood this looks right to me. Definitely nice to see some of those domain logic moving out. You made quick work of this.

Copy link
Copy Markdown
Member

@acunniffe acunniffe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants