Skip to content

fix(server): add WorkspaceWrapper to prevent index dropping - #117

Merged
wilfredmulenga merged 1 commit into
mainfrom
fix/add-workspace-wrapper
Dec 24, 2025
Merged

fix(server): add WorkspaceWrapper to prevent index dropping#117
wilfredmulenga merged 1 commit into
mainfrom
fix/add-workspace-wrapper

Conversation

@wilfredmulenga

Copy link
Copy Markdown
Contributor

Replaces direct usage of accountmongo.Workspace with a WorkspaceWrapper implementation to prevent unintentional dropping of indexes during initialization from ReearthX

The WorkspaceWrapper overrides the Init method to create required indexes without removing existing ones, addressing potential data integrity issues.

Includes the creation of a new workspace_wrapper.go file for this functionality.

Replaces direct usage of accountmongo.Workspace with a WorkspaceWrapper
implementation to prevent unintentional dropping of indexes during initialization.

The WorkspaceWrapper overrides the Init method to create required indexes
without removing existing ones, addressing potential data integrity issues.

Includes the creation of a new workspace_wrapper.go file for this functionality.

@soneda-yuya soneda-yuya left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@wilfredmulenga
wilfredmulenga merged commit 6cd8b6c into main Dec 24, 2025
9 checks passed
@wilfredmulenga
wilfredmulenga deleted the fix/add-workspace-wrapper branch December 24, 2025 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants