-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[IMPL] - Custom backend server and improved configuration capabilities #4337
[IMPL] - Custom backend server and improved configuration capabilities #4337
Conversation
hm... why not just use Pydantic Config package? |
Basically, |
* require typing_extensions >= 4.6.0 TypeAliasType was added in 4.6 https://github.com/python/typing_extensions/blob/main/CHANGELOG.md#release-460-may-22-2023 * update lock file, even though nothing has changed
Co-authored-by: simon <simon@reflex.dev>
* make list suggestions work * fix pyi
* bump some versions * update ruff to 0.7.4 * bump tailwind version * relock deps --------- Co-authored-by: Masen Furer <m_github@0x26.net>
* fix: do not allow instantiation of State mixins Closes reflex-dev#4343 * improve error message for ComponentState mixins * fix typo Co-authored-by: Masen Furer <m_github@0x26.net> --------- Co-authored-by: Masen Furer <m_github@0x26.net>
* add typed dict type checking * technically it has to be a mapping, not specifically a dict
* Add datetime to moment * Remove recharts update * Support other formats * simplify * Precommit * PYI * change imports for pyi compat --------- Co-authored-by: Alek Petuskey <alekpetuskey@Aleks-MacBook-Pro.local> Co-authored-by: Masen Furer <m_github@0x26.net>
* ignore rxconfig not in cwd * no type ignore * resolve paths * Remove rxconfig module from sys.modules cache when reloading * modify sys path * add try except * refactor inner function --------- Co-authored-by: Masen Furer <m_github@0x26.net>
* fix appearance broken by reflex-dev#3812 * fix again to pass tests
) The `rich` module should be set to `None`, indicating that rich should not be used. Setting it to `False` worked before, but recently added code in typer fails when checking `if rich is not None`. ref: fastapi/typer#847
…v#4410) In some cases, a routing failure can cause the failure to be cached. When the router has a cached failure, pushing such a route will never call routeChangeComplete, and thus on_load event will never be fired for that route. Purposely clearing the error from the router allows the page to properly load on subsequent attempts without refreshing the app.
Compiling pages in separate threads can result in `sys.path` being cleared, which breaks subsequent imports.
* subtract 1 arg if the method is a bound method * fix it early in user_args * only bound methods pls * add test
Remove `packages` key, since this project uses the "default" package layout, so this key isn't needed.
* Enable automatic retry on redis errors ExponentialBackoff 3x retry for BusyLoadingError, ConnectionError, and TimeoutError * retry on any redis error * Use default single-retry for any RedisError Using the default Retry means that async and sync clients get the appropriate type of Retry
* unbreak link _hover * add a test to catch the error * change tmp path for harness * add () to fixture * add spacer to avoid initial hover * only install chromium browser for faster ci --------- Co-authored-by: Lendemor <thomas.brandeho@gmail.com>
avoid lingering events after getting the information we came for
…v#4598) Instead of potentially defining `_LANGUAGE` constant twice in a component, simply pass the language prop directly to the hook generator function. If no language is passed, then it defaults to `_LANGUAGE`, which continues to work for markdown component_map use case.
* improve client state * no comma * update python for unit tests * overwrite it for windows * bump other python versions
* fix recursive UI * get it right pyright * dang it darglint
Use python versions that have a darwin/arm64 build for use with the newer (faster) macos actions runners
Pass _var_data when creating LiteralVar Partial fixes for reflex-dev#4608
…lex-dev#3300)" (reflex-dev#4614) This reverts commit 438b31f.
hey there! this seems like a positive change, but you should make sure the PR is rebased on main |
* [ENG-4351] Add mapping for lucide icons For icon names that don't auto-translate to the correct lucide tag name, provide manual override. Fix reflex-dev#4621 * account for new mapping in unit tests
…Dev-Pro/reflex into add-custom-backend-config
The PR is still not rebased properly (check the differences tab until it's only your changes). |
I know, the rebase is still local, I'm just making a few improvements. @adhami3310 Maybe I need to recreate a new pr? because when I compare at this moment, everything is fine? |
Maybe a new PR would help yea |
Idea
Customize the backend server configuration as you like, and create a complete new backend server support.
Example
We can define which
BackendServer
to use fordevelopment
andproduction
modes and thus customize the configuration (all parameters for eachBackendServer
are the actual parameters corresponding to the web server involved).We can also create a customized
BackendServer
with theCustomBackendServer
class, such asGranianBackendServer
All Submissions:
Type of change
New Feature Submission:
Changes To Core Features: