fix(dashboard)!: Downgrade WTForms to >=2.3.3, <3.1.0 due to compatibility issues
SUMMARY
While installing Superset via pip, WTForms version 3.1.0 is fetched, which is incompatible. Pinning the version to 3.0.1 resolves errors on pages like 'List Users', 'Roles', and 'Activity'.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Please refer to the following issues for more screenshots and further details: Fixes https://github.com/apache/superset/issues/25622 Fixes https://github.com/apache/superset/issues/25631
TESTING INSTRUCTIONS
- Setup Superset locally using these instructions.
- Start the development web server on port 8088.
- Visit http://localhost:8088/users/list/). The aforementioned error should be present when you check the logs in terminal.
- Uninstall WTForms (
pip uninstall wtforms) and reinstall the compatible version (pip install wtforms==3.0.1). The error should no longer be present when you navigate to the /users endpoint
Additional Observation:
Post this update, a UI issue was observed when I ran pip install . instead of pip install apache-superset as per the documentation. However, this seems unrelated to the changes in setup.py since it persists even when reverting to the original state and running the same command. Any insights into this would be appreciated.
ADDITIONAL INFORMATION
- [x] Has associated issue: Fixes #25622 and #25631
- [ ] Required feature flags:
- [x] Changes UI
- [ ] Includes DB Migration (follow approval process in SIP-59)
- [ ] Migration is atomic, supports rollback & is backwards-compatible
- [ ] Confirm DB migration upgrade and downgrade tested
- [ ] Runtime estimates and downtime expectations provided
- [ ] Introduces new feature or API
- [ ] Removes existing feature or API