-
-
Notifications
You must be signed in to change notification settings - Fork 28
Simplified Redis extension loaded condition. #2049
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
Conversation
WalkthroughRemoves a unit test for partial Redis settings, and simplifies Redis enablement logic in settings.redis.php to trigger when the Redis PHP extension is loaded or when the VORTEX_REDIS_EXTENSION_LOADED environment variable equals '1'. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Req as Request
participant SL as Settings Loader
participant PE as PHP Env & Extensions
participant RB as Redis Bootstrap
Req->>SL: Load settings
SL->>PE: Check extension_loaded('redis')
alt Redis extension loaded
SL->>RB: Enable Redis backend
RB-->>SL: Bootstrap container set
else Not loaded
SL->>PE: Read env VORTEX_REDIS_EXTENSION_LOADED
alt Env == "1"
SL->>RB: Enable Redis backend
RB-->>SL: Bootstrap container set
else Otherwise
SL-->>Req: Proceed without Redis
end
end
SL-->>Req: Continue initialization
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro ⛔ Files ignored due to path filters (7)
📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (14)
🔇 Additional comments (1)
Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
⛔ Files ignored due to path filters (7)
.vortex/installer/tests/Fixtures/install/_baseline/tests/phpunit/Drupal/SwitchableSettingsTest.php
is excluded by!.vortex/installer/tests/Fixtures/**
.vortex/installer/tests/Fixtures/install/_baseline/web/sites/default/includes/modules/settings.redis.php
is excluded by!.vortex/installer/tests/Fixtures/**
.vortex/installer/tests/Fixtures/install/hosting_acquia/docroot/sites/default/includes/modules/settings.redis.php
is excluded by!.vortex/installer/tests/Fixtures/**
.vortex/installer/tests/Fixtures/install/hosting_project_name___acquia/docroot/sites/default/includes/modules/settings.redis.php
is excluded by!.vortex/installer/tests/Fixtures/**
.vortex/installer/tests/Fixtures/install/non_interactive_config_file/tests/phpunit/Drupal/SwitchableSettingsTest.php
is excluded by!.vortex/installer/tests/Fixtures/**
.vortex/installer/tests/Fixtures/install/services_no_redis/tests/phpunit/Drupal/SwitchableSettingsTest.php
is excluded by!.vortex/installer/tests/Fixtures/**
.vortex/installer/tests/Fixtures/install/services_none/tests/phpunit/Drupal/SwitchableSettingsTest.php
is excluded by!.vortex/installer/tests/Fixtures/**
📒 Files selected for processing (2)
tests/phpunit/Drupal/SwitchableSettingsTest.php
(0 hunks)web/sites/default/includes/modules/settings.redis.php
(1 hunks)
💤 Files with no reviewable changes (1)
- tests/phpunit/Drupal/SwitchableSettingsTest.php
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (14)
- GitHub Check: build (1)
- GitHub Check: build (0)
- GitHub Check: vortex-test-deployment (0)
- GitHub Check: vortex-test-deployment (1)
- GitHub Check: vortex-test-workflow (1)
- GitHub Check: vortex-test-common
- GitHub Check: vortex-test-workflow (3)
- GitHub Check: vortex-test-installer (8.3)
- GitHub Check: vortex-test-installer (8.4)
- GitHub Check: vortex-test-workflow (4)
- GitHub Check: vortex-test-workflow (0)
- GitHub Check: vortex-test-workflow (2)
- GitHub Check: vortex-test-installer (8.2)
- GitHub Check: vortex-test-docs
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2049 +/- ##
========================================
Coverage 64.05% 64.05%
========================================
Files 92 92
Lines 5692 5692
Branches 44 44
========================================
Hits 3646 3646
Misses 2046 2046 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
adc71b7
to
e44b585
Compare
Summary by CodeRabbit