Repository navigation
docs: document unfolds - #1028
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #1028 +/- ##
==========================================
- Coverage 89.65% 89.50% -0.16%
==========================================
Files 177 177
Lines 5996 5996
Branches 994 994
==========================================
- Hits 5376 5367 -9
- Misses 392 399 +7
- Partials 228 230 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
marcpaterno
left a comment
There was a problem hiding this comment.
Thanks for contributing the documentation!
This is quite helpful. I have added a few suggestions for small clarifications for you to consider.
The unfold contract is only visible in the implementation and tests. Add a user-guide page that explains: - the unfolder class, initial_value(), and the predicate/unfold loop, including the accepted callable forms and the optional child data_cell_index argument - per-parent calls, child numbering, empty parents, and why there is no way to skip a candidate - that all input selectors must name the same layer (rejected since v0.4.3, see issue Framework-R-D#955) and the transform-then-unfold workaround - where resource<T>{} arguments go (issue Framework-R-D#946) Also add a Doxygen description of graph_proxy::unfold, and point api/graph_proxy.rst at phlex::detail::graph_proxy, where the class actually lives, so its documentation is rendered. Assisted by: Claude Haiku 5.5
Address review comments: - Describe an unfold as generating a family of child data cells and populating them with products created from the parent's inputs; the parent data cell is not modified. - Use the design document's term "generator" for the callable that creates each child's product, instead of "unfold function", in the guide and in the graph_proxy::unfold Doxygen comment. Rename the example's member function from unfold to generate to match. - State that each child currently receives exactly one data product: the design allows several, but the generator's result is unpacked as a (next value, product) pair, so returning a tuple of products is not supported yet.
c1f76ce to
312dc59
Compare
|
Thanks for the review! I’ve addressed your comments. The terminology now follows the design document: the page uses predicate and generator for the two operators, and keeps unfolder for the class, matching the Unfolder template parameter. |
The unfold contract is only visible in the implementation and tests. Add a user-guide page that explains:
Also add a Doxygen description of graph_proxy::unfold, and point api/graph_proxy.rst at phlex::detail::graph_proxy, where the class actually lives, so its documentation is rendered.
Assisted by: Claude Haiku 5.5
Docs: new unfold guide (
docs/source/guide/unfolds.rst, new file, +144 lines)initial_value(), a predicate, and a generator.generateand a downstreamtransform.(next value, product).data_cell_indexas an optional argument.concurrencylimits how many parents unfold at once.std::invalid_argument.resource<T>{}arguments go. This point also rests on the raw summary, not the truncated diff.Docs: API comment (
phlex/core/graph_proxy.hpp, +19/−1)graph_proxy::unfold:input_family(...)products.concurrencyparameter.Discrepancies with PR objectives
api/graph_proxy.rsttophlex::detail::graph_proxy. The diff does not include that file. It changes only the two files above (163 insertions, 1 deletion).unfoldtogeneraterename in the example. The guide's example usesgenerate, which matches that description.