Repository navigation
V1.1.0/post fix not found - #6
gimlichael wants to merge 3 commits into
Conversation
Generate a deduplicated page availability inventory in framework-views.json, merge missing API sections into shared root navigation, configure NGINX 302 fallback routing for unavailable HTML pages, and update framework-view.js to resolve destination-aware view links across navigation, search, and the framework selector.
Expand unit, container, Playwright, and Cuemon acceptance tests along with fixture APIs to verify page availability manifests, shared navigation merging, HTTP 302 fallback routing, and client-side link and selector resolution.
Update framework-views and test suite documentation to describe the availability manifest, shared root TOC merging, NGINX 302 fallback rules, and expanded browser and Cuemon test coverage.
[Medium impact] The change affects API navigation and direct API-page requests on framework-view sites. The PR appears safe to merge, with a non-blocking mismatch between the documented duplicate-view rule and the route checks.
|
| } | ||
| location @framework_fallback { | ||
| if ($framework_fallback_target = "") { return 404; } | ||
| if ($framework_args_2 ~* "(?:^|&)view=") { return 400 "Unknown documentation view."; } |
There was a problem hiding this comment.
Duplicate views bypass rejection
The new check runs only after a page lookup fails. An existing API page requested with three valid view arguments still returns 200, and /xrefmap.yml skips this check too. This contradicts the new documentation promising 400 for excess view arguments, so callers cannot rely on that rule. Apply the check before both lookups, or narrow the documented promise to fallback requests.
Prompt To Fix With AI
This is a comment left during a code review.
Path: framework-views/framework-views.nginx.conf
Line: 75
Comment:
**Duplicate views bypass rejection**
The new check runs only after a page lookup fails. An existing API page requested with three valid `view` arguments still returns 200, and `/xrefmap.yml` skips this check too. This contradicts the new documentation promising 400 for excess `view` arguments, so callers cannot rely on that rule. Apply the check before both lookups, or narrow the documented promise to fallback requests.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
This pull request introduces destination-aware framework view fallback so navigation and direct links to APIs unavailable in the current framework resolve cleanly instead of returning HTTP 404. The generator now emits a deduplicated page availability inventory, merges missing non-default API sections into shared root navigation, and coordinates HTTP 302 server redirects with client-side link resolution.
Availability inventory and navigation:
Server and client fallback routing:
Regression and acceptance coverage:
Cuemon.AspNetCorealongsideCuemon.KernelandCuemon.IOand verify cross-target fallback behavior.Documentation: