Skip to content

fix(gateway): align land strategy mapping with contract - #663

Draft
sbalabanov wants to merge 1 commit into
mainfrom
sergeyb/fix-gateway-land-strategy
Draft

fix(gateway): align land strategy mapping with contract#663
sbalabanov wants to merge 1 commit into
mainfrom
sergeyb/fix-gateway-land-strategy

Conversation

@sbalabanov

Copy link
Copy Markdown
Contributor

Summary

Intent:

  • Preserve server-configured defaults instead of forcing rebase at the gateway boundary.
  • Support every merge strategy exposed by the shared API contract.

Changes:

  • Map DEFAULT to the domain sentinel so downstream Runway configuration selects the strategy.
  • Map PROMOTE to its domain strategy while continuing to reject unknown numeric enum values.
  • Extend mapper coverage for default and promote behavior.

Generated by the 🪄 pr-create skill.

Test Plan

Issues

Summary:
Intent:
- Preserve server-configured defaults instead of forcing rebase at the gateway boundary.
- Support every merge strategy exposed by the shared API contract.

Changes:
- Map DEFAULT to the domain sentinel so downstream Runway configuration selects the strategy.
- Map PROMOTE to its domain strategy while continuing to reject unknown numeric enum values.
- Extend mapper coverage for default and promote behavior.

---

<sub>Generated by the 🪄 pr-create skill.</sub>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

case mergestrategypb.Strategy_DEFAULT:
// TODO: resolve default strategy based on queue configuration
return mergestrategy.MergeStrategyRebase, nil
return mergestrategy.MergeStrategyUnknown, nil

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

do not change that, restore Rebase and TODO

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants