-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Move js-client bootstrapping to FastAPI #21264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
| @router.cbv | ||
| class FastAPIContext: | ||
| @router.get("/api/context", summary="Return bootstrapped client context") | ||
| def index(self, request: Request, trans: ProvidesUserContext = DependsOnTrans) -> JSONResponse: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Design-wise I think it would be a good idea to make this as static as possible so we can heavily cache the response. fetch all the user-specific stuff later ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, this is an initial very rough draft. We should remove unnecessary parts and keep it as minimal as possible. It may eventually fit into the configuration API, but it’s too early to decide.
4bf45df to
6221dbe
Compare
569fd5e to
6f63b93
Compare
f2c05ab to
0791c4e
Compare
13effcd to
7ae3cca
Compare
Requires: #17507. Resolves: #21153. This PR removes the legacy RxJS-based initialization and Mako-injected configuration bootstrapping, replacing them with a straightforward async startup flow. Configuration is now fetched directly from the
/api/contextendpoint, after which theGalaxyAppis instantiated, registered viasetGalaxyInstance, and initialized withSentryandWebhooks. The Vue app mounts deterministically without relying on reactive queues or template timing, simplifying the client bootstrap and removing obsolete RxJS and Mako dependencies.How to test the changes?
(Select all options that apply)
License