Skip to content

fix upgrade_datastore_109#3163

Merged
benderl merged 1 commit intoopenWB:masterfrom
benderl:fix-upgrade-datastore-109
Feb 25, 2026
Merged

fix upgrade_datastore_109#3163
benderl merged 1 commit intoopenWB:masterfrom
benderl:fix-upgrade-datastore-109

Conversation

@benderl
Copy link
Contributor

@benderl benderl commented Feb 25, 2026

do not modify dictionary in upgrade method

@benderl benderl self-assigned this Feb 25, 2026
@benderl benderl added the bug Something isn't working label Feb 25, 2026
@benderl benderl added this to the 2.2.0 - Step 1 milestone Feb 25, 2026
@benderl benderl requested a review from Copilot February 25, 2026 06:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug in the upgrade_datastore_109 method where the upgrade callback was incorrectly modifying self.all_received_topics dictionary during iteration, which could cause runtime errors. The fix aligns the implementation with the established pattern used by other upgrade methods in the codebase.

Changes:

  • Fixed the upgrade callback to return a dictionary instead of directly modifying self.all_received_topics
  • Corrected the return type annotation from -> None to -> Optional[dict]
  • Improved the regex pattern with anchors for more precise matching

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@benderl benderl merged commit 665481a into openWB:master Feb 25, 2026
5 checks passed
@benderl benderl deleted the fix-upgrade-datastore-109 branch February 25, 2026 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants