Skip to content

Remove ETA flags from search category - #80

Merged
zmofei merged 3 commits into
mainfrom
fix/search-remove-eta-flags
Oct 6, 2026
Merged

zmofei merged 3 commits into
mainfrom
fix/search-remove-eta-flags

Conversation

@zmofei

@zmofei zmofei commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Fixes #76.

The category endpoint does not currently return properties.eta, so --eta-type, --navigation-profile and --origin are accepted but have no effect. This removes them from search category, same approach as #79.

They stay on search forward, which does return an ETA. We'll add them back to category once it does too.

Breaking: scripts passing these flags to search category now fail with an unknown-argument error. Noted in CHANGELOG.md.

Not checked: forward ETA against the real API from the CLI (only tested with a direct API call).

ETA results are gated by a per-account feature flag, so for most accounts
--eta-type, --navigation-profile and --origin were accepted but never added
an ETA to the response. Drop them rather than expose flags that silently do
nothing for most users.
@zmofei
zmofei requested a review from a team as a code owner October 5, 2026 15:01
@zmofei zmofei added the on-hold label Oct 6, 2026
Per the Search team, forward returns an ETA without the feature flag;
only category is gated. Restore the flags on forward and remove them
from category only, until category supports ETA for every account.
@zmofei zmofei changed the title Remove ETA flags from search forward and search category Remove ETA flags from search category Oct 6, 2026

@mattpodwysocki mattpodwysocki left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Built it and confirmed directly: --eta-type/--navigation-profile/--origin are gone from search category --help while still present on search forward --help, and passing --eta-type to search category now fails with unexpected argument at exit code 2, matching the changelog. Full suite, fmt, clippy -D warnings all clean. Clean, minimal fix for a real bug.

@zmofei
zmofei merged commit 76ce716 into main Oct 6, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

search category ignores --eta-type/--origin — ETA always returns null

2 participants