You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR updates various dependencies in the project, including version upgrades for rustls, clap, bstr, and others. It also introduces a new EntityCacheStorage enum and modifies the EntityCachingConfig structure to include a storage option.
Key Issues
None
Files Changed
File: /Cargo.lock
Updated multiple dependencies to their latest versions.
File: /engine/crates/engine-config-builder/src/from_sdl_config.rs
Modified pattern matching to include additional fields in `EntityCachingConfig`.
File: /engine/crates/engine-v2/src/operation/metrics.rs
Added a new field `used_fields` to the metrics attributes.
File: /engine/crates/engine/response/src/lib.rs
Updated the `GraphqlOperationAnalyticsAttributes` struct to include `used_fields`.
File: /engine/crates/engine/src/schema.rs
Modified the handling of operation analytics attributes to include `used_fields`.
File: /engine/crates/gateway-core/src/cache/partial.rs
Updated the response creation to include `used_fields`.
File: /engine/crates/parser-sdl/src/federation.rs
Introduced a new enum `EntityCacheStorage` and updated `EntityCachingConfig`.
File: /engine/crates/runtime-local/src/lib.rs
Added Redis module for rate limiting.
File: /engine/crates/runtime-local/src/rate_limiting/redis.rs
Implemented Redis rate limiting functionality.
File: /gateway/crates/config/src/entity_caching.rs
Updated `EntityCachingConfig` to include Redis configuration options.
# Description
Please include a summary of the change and which issue is fixed.
Please also include relevant motivation and context.
The reason will be displayed to describe this comment to others. Learn more.
🐛 Bug
The function entity_cache_storage does not handle the case where redis is None for the Redis storage variant. This could lead to a panic if redis.unwrap_or_default() is called when redis is None. You should handle this case more gracefully.
The reason will be displayed to describe this comment to others. Learn more.
⚡ Suggestion
In the new_pool function, consider handling the case where tls.cert or tls.key is None more explicitly, to avoid potential panics when calling zip on None values.
The reason will be displayed to describe this comment to others. Learn more.
⚡ Suggestion
Check if the new version of rustls includes any security patches or important updates that need to be addressed in your application.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨
Description by Cal
PR Description
This PR updates various dependencies in the project, including version upgrades for
rustls,clap,bstr, and others. It also introduces a newEntityCacheStorageenum and modifies theEntityCachingConfigstructure to include a storage option.Key Issues
None
Files Changed
File: /Cargo.lock
Updated multiple dependencies to their latest versions.File: /engine/crates/engine-config-builder/src/from_sdl_config.rs
Modified pattern matching to include additional fields in `EntityCachingConfig`.File: /engine/crates/engine-v2/src/operation/metrics.rs
Added a new field `used_fields` to the metrics attributes.File: /engine/crates/engine/response/src/lib.rs
Updated the `GraphqlOperationAnalyticsAttributes` struct to include `used_fields`.File: /engine/crates/engine/src/schema.rs
Modified the handling of operation analytics attributes to include `used_fields`.File: /engine/crates/gateway-core/src/cache/partial.rs
Updated the response creation to include `used_fields`.File: /engine/crates/parser-sdl/src/federation.rs
Introduced a new enum `EntityCacheStorage` and updated `EntityCachingConfig`.File: /engine/crates/runtime-local/src/lib.rs
Added Redis module for rate limiting.File: /engine/crates/runtime-local/src/rate_limiting/redis.rs
Implemented Redis rate limiting functionality.File: /gateway/crates/config/src/entity_caching.rs
Updated `EntityCachingConfig` to include Redis configuration options.Please include a summary of the change and which issue is fixed.
Please also include relevant motivation and context.
Type of change