Skip to content

Fix failing v7 import#58

Merged
rustybee42 merged 2 commits intomainfrom
rb/fix-v7-import
Mar 18, 2026
Merged

Fix failing v7 import#58
rustybee42 merged 2 commits intomainfrom
rb/fix-v7-import

Conversation

@rustybee42
Copy link
Collaborator

@rustybee42 rustybee42 commented Mar 11, 2026

Fixes v7 import, which broke on 8.3 due to a double insert into the root_inode table.

@rustybee42 rustybee42 self-assigned this Mar 11, 2026
@rustybee42 rustybee42 requested a review from a team as a code owner March 11, 2026 10:15
Copy link
Member

@iamjoemccormick iamjoemccormick left a comment

Choose a reason for hiding this comment

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

Presuming one doesn't already exist, should we also add an integration test that exercises the full end-to-end v7 import? A fixture (v7 mgmtd data) that includes all importable data types (nodes, targets, buddy groups, pools, etc.) would complement the existing unit tests without needing to fully re-verify the imported values, just that the import succeeds without constraint errors and maybe sanity check node, target, quota, etc. counts match up.

@rustybee42 rustybee42 force-pushed the rb/fix-v7-import branch 2 times, most recently from 2f0b281 to 03bdcd2 Compare March 12, 2026 10:23
Copy link
Member

@iamjoemccormick iamjoemccormick left a comment

Choose a reason for hiding this comment

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

LGTM - though I would still recommend we find a way to increase our test coverage around v7 imports.

This let the import fail. We now call target::insert directly for meta
nodes which does not insert into root_inode.

Also remove target::insert_meta
@rustybee42 rustybee42 disabled auto-merge March 18, 2026 09:00
Uses a v7 management data folder created with 7.4
@rustybee42 rustybee42 merged commit 4597b40 into main Mar 18, 2026
5 checks passed
@rustybee42 rustybee42 deleted the rb/fix-v7-import branch March 18, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants