refactor(Dashboard): Native filters form update endpoint
SUMMARY
This PR introduces a separate endpoint to store changes to the Native Filters form. Previously, the native filters form would attempt to save the filters even if no changes were made. The form was also sending the whole JSON object containing every individual filter, which caused unnecessary overhead. This PR does the following:
- Sends a request to the new /filters endpoint only when changes are required
- It sends only new or modified native filters
- It sends only an ID reference for re-ordered or deleted filters
TESTING INSTRUCTIONS
- The native filters form should work normally
ADDITIONAL INFORMATION
- [ ] Has associated issue:
- [ ] Required feature flags:
- [ ] 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
- [x] Introduces new feature or API
- [ ] Removes existing feature or API
/testenv up
@geido Ephemeral environment spinning up at http://35.87.197.94:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.
/testenv up
@geido Ephemeral environment spinning up at http://35.161.33.58:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.
Ephemeral environment shutdown and build artifacts deleted.