Repository navigation
fix(server): serve the /h/N history page only from flexviz serve and show(), not from a mounted app - #149
Merged
Conversation
…(), not the mountable app
…de run_server as a serve call
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.
GET /h/{n}was a route offlexviz.app, so every app that mounts or runs FlexViz (mount_into(), Streamlit, Dash, Gradio,uvicorn.run(app)) served the recorded history of its working folder: figure titles, column names and selections.appno longer has/h/{n}.run_server()(used byflexviz serveandshow()) serves a separate app that adds the route and delegates every other path toapp. It never changesapp, so a latermount_into()in the same process still has no history route.app(/openapi.json,/docs).run_serveris exported fromflexviz. The skill's derived-column recipe now calls it, so it keeps/h/Nand gets the loopbackHostcheck.run_server(...)as a serve call, and its loopback check uses the server's ownis_loopback_bind.Tests: the bare and mounted
appanswer 404 on/h/1in a folder with a history entry; the app thatrun_serverserves answers 200 and still documents the dashboard routes.Closes #142