fix: missing restore config in in-place restore#347
Conversation
The restore config on the database/instance spec is used to bootstrap a new node. It is not used during an in-place restore, where the active restore configuration is provided as a separate argument. This change takes that into account and propagates that argument through to the `HasRestoreConfig` property on the database resource. Now that we're setting this property correctly, the "post restore" logic triggers as expected. PLAT-564
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Duplication | 0 |
TIP This summary will be updated as you push new changes. Give us feedback
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughRefactoring shifts restore configuration propagation from implicit derivation via instance accessor methods to explicit field assignment. The Changes
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
The restore config on the database/instance spec is used to bootstrap a new node. It is not used during an in-place restore, where the active restore configuration is provided as a separate argument.
This change takes that into account and propagates that argument through to the
HasRestoreConfigproperty on the database resource. Now that we're setting this property correctly, the "post restore" logic triggers as expected.Testing
# the TestS3BackupRestore test fails on main, but passes on this branch make test-e2e E2E_FIXTURE=lima E2E_RUN=TestS3BackupRestorePLAT-564