-
-
Notifications
You must be signed in to change notification settings - Fork 0
Clarify merge policy semantics in design docs #53
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
Conversation
Summary of ChangesHello @tommcd, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces two new design documents that significantly expand and clarify the future direction of the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request adds two new design documents that clarify the core API, DSL, and future plans for document composition. The documents are well-structured and detailed. I've found a couple of areas that could be improved for clarity and consistency. There's an inconsistency in the definition of the merge operation between the DSL example and the Python API sketch. I've also noted a minor formatting error that breaks a word across two lines. My detailed comments are below.
| - Cache resolved fragments and invalidate incrementally on edits. | ||
|
|
||
| 3. **DSL + API Surface** | ||
| - Add DSL operations: `split(by="heading", depth=n)`, `shard(strategy, max_nodes)`, `transclude(id=...)`, `link(from, to, role)`, `hydrate()`, `merge(strategy, on_conflict)`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The merge operation in the DSL operations list appears to be inconsistent with the Python API sketch and the PR's goal of simplification. The list shows merge(strategy, on_conflict), but the Python API sketch on line 132 shows merge(on_conflict: ConflictPolicy = "annotate", overlay: Document | None = None). The strategy parameter is not defined in the API sketch, and the list of "merge strategies" on line 50 actually corresponds to the ConflictPolicy values. To improve clarity, could you align the DSL example with the Python API sketch? For example, merge(overlay, on_conflict=...).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@claude can you fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot can you fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Already fixed in commit 1883034 'Align merge DSL operation with Python API signature' - The DSL now shows merge(overlay=..., on_conflict=...) which matches the Python API sketch.
Co-authored-by: tommcd <[email protected]>
Align merge operation DSL signature with Python API
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Summary
Testing
Codex Task