Closed cstrnt closed 5 months ago
The latest updates on your projects. Learn more about Vercel for Git โ๏ธ
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
abby-docs | โ Ready (Inspect) | Visit Preview | ๐ฌ Add feedback | Jun 19, 2024 0:18am |
abby-opensource | โ Ready (Inspect) | Visit Preview | ๐ฌ Add feedback | Jun 19, 2024 0:18am |
The update focuses on introducing a new ConfigCache
class for handling configuration data caching efficiently. This change impacts several files where the old cache management logic is replaced with ConfigCache
methods. This centralized approach aids in the systematic retrieval, storage, and deletion of cache data, enhancing maintainability and consistency across the application.
Files | Change Summaries |
---|---|
.../api/routes/v1_project_data.ts |
Refactored caching logic to use ConfigCache class methods for getting and setting configurations. |
.../server/common/config-cache.ts |
Introduced ConfigCache class with methods to get, set, and delete configuration data based on environment and project ID. |
.../server/services/FlagService.ts , .../TestService.ts |
Added import for ConfigCache . Modified methods to include cache deletion for project environments. |
.../server/trpc/router/environments.ts |
Imported ConfigCache and added calls to delete configurations based on environment and project IDs. |
.../server/trpc/router/flags.ts |
Imported ConfigCache , updated selection fields, and modified logic for deleting configurations in mutations. |
.../server/trpc/router/project.ts |
Reordered import statements for better organization. |
.../server/trpc/router/tests.ts |
Imported ConfigCache , included project and nested environments in query, and added loop to delete configurations before updating tests. |
In the code, a change takes flight,
Caching smarter, oh what delight! ๐ฐ
Configs now, in class contained,
Clean and swift, our logic's trained.
With cache in sync, the bugs take flight,
In our system, all is right! โจ
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This stack of pull requests is managed by Graphite. Learn more about stacking.
Join @cstrnt and the rest of your teammates on Graphite
Summary by CodeRabbit
New Features
ConfigCache
class for improved configuration caching.Refactor
ConfigCache
methods, enhancing consistency and maintainability.Code Cleanup