[#2374] Added opt-in repeated configuration import after initial import.#2417
[#2374] Added opt-in repeated configuration import after initial import.#2417AlexSkrypnyk merged 2 commits intomainfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughAdded an opt-in environment variable Changes
Sequence Diagram(s)sequenceDiagram
participant Operator
participant ProvisionScript as "provision.sh"
participant Drush
participant Database
participant Hooks
Operator->>ProvisionScript: start provisioning
ProvisionScript->>Drush: drush config:import (initial)
Drush->>Database: apply config changes
Database-->>Drush: success
alt VORTEX_PROVISION_CONFIG_IMPORT_REPEAT=1
ProvisionScript->>Drush: drush config:import (repeat)
Drush->>Database: apply additional changes
Database-->>Drush: success
end
ProvisionScript->>Hooks: run deployment & cache rebuild hooks
Hooks-->>ProvisionScript: complete
ProvisionScript-->>Operator: provisioning finished
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
2 similar comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2417 +/- ##
==========================================
- Coverage 79.42% 78.95% -0.47%
==========================================
Files 126 119 -7
Lines 6730 6577 -153
Branches 44 0 -44
==========================================
- Hits 5345 5193 -152
+ Misses 1385 1384 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Code coverage (threshold: 90%) Per-class coverage |
This comment has been minimized.
This comment has been minimized.
2 similar comments
This comment has been minimized.
This comment has been minimized.
|
Code coverage (threshold: 90%) Per-class coverage |
Closes #2374
Summary
Added an opt-in
VORTEX_PROVISION_CONFIG_IMPORT_REPEATvariable to the provision script that, when set to1, triggers a seconddrush config:importrun immediately after the initial configuration import. This addresses edge cases where database update hooks introduce new configuration (e.g., newconfig_splitsettings) that only takes effect on a subsequent import. The feature is disabled by default to preserve existing behavior.Changes
Provision script (
scripts/vortex/provision.sh)VORTEX_PROVISION_CONFIG_IMPORT_REPEATvariable (default0) with descriptive comment explaining use case.1, runsdrush config:importa second time withtask/passlogging messages.Documentation (
.vortex/docs/content/drupal/provision.mdx)VORTEX_PROVISION_CONFIG_IMPORT_REPEAT=1in the environment variables reference section.Variables reference (
.vortex/docs/content/development/variables.mdx)VORTEX_PROVISION_CONFIG_IMPORT_REPEATin the auto-generated variables table.Tests (
.vortex/tests/bats/unit/provision.bats)Provision: DB; no site; config import repeatthat exercises the full provision flow withVORTEX_PROVISION_CONFIG_IMPORT_REPEAT=1and asserts the repeated import step is executed.assert_provision_infostep arrays to include the"- Repeating configuration import."and"- Completed repeated configuration import."expectations so they remain accurate.Before / After
Summary by CodeRabbit
New Features
Documentation
Tests