Repository navigation
Answer cascade false from the cascade reader for a version that does not cascade - #3026
Merged
Merged
Conversation
ericproulx
force-pushed
the
fix/cascade-reader
branch
from
October 10, 2026 22:34
627be5b to
4fcb685
Compare
Danger ReportNo issues found. |
…not cascade The cascade reader and the compiled API each resolved the setting. The compiled API fell back to the cascade: option of version, the reader went straight to true, so with `version 'v1', cascade: false` API.cascade answered true for an API that did not cascade. The reader now holds the one resolution, and the compiled API reads it there. The two specs meant to pin that a request does not cascade looked for 'X-Cascade' among the header keys, which Rack 3 lowercases, so they passed whatever the response carried; they now read the header. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ericproulx
force-pushed
the
fix/cascade-reader
branch
from
October 11, 2026 08:26
4fcb685 to
982ff15
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
cascadereader and the compiled API each worked out whether an API cascades, and they disagreed:API::Instance#resolve_cascadeused thecascadeDSL's value, then thecascade:option ofversion, thentrue.DSL::Routing#cascadeskippedversionand went straight totrue.Change
cascade, elseversion'scascade:, elsetrue.self.class.cascade), andresolve_cascadeis gone. It is still read once, in the constructor.Tests
.cascadespecs: a version declared withcascade: falsereads backfalse, and a latercascade truestill wins over it. The first fails on master.last_response.headers.keysfor'X-Cascade'. Rack 3 lowercases header names, so they passed whatever the response carried. They now readheaders['X-Cascade'], like the "cascades" specs next to them.Mutation-checked: dropping the
versionfallback fails the new reader spec and the version request spec. A compiled API that ignores the reader fails both request specs. Before the spec fix, neither mutation failed a request spec.🤖 Generated with Claude Code