Skip to content

Fix delete-dd -ns second query filtering on attr_ns instead of class_ns - #193

Merged
jordanpadams merged 3 commits into
mainfrom
fix-delete-dd-attr-ns-typo
Jul 28, 2026
Merged

Fix delete-dd -ns second query filtering on attr_ns instead of class_ns#193
jordanpadams merged 3 commits into
mainfrom
fix-delete-dd-attr-ns-typo

Conversation

@jordanpadams

Copy link
Copy Markdown
Member

Summary

  • DeleteDDCmd.deleteByNamespace(): copy-paste bug where the second DeleteByQuery filtered on class_ns again instead of attr_ns. This meant only field docs where class_ns matched were deleted — sentinel docs (class_ns="registry", attr_ns=<ns>) and cross-namespace attribute refs were silently skipped on every delete-dd -ns call.
  • Bumps registry-common to 2.5.0-SNAPSHOT to pick up the AOSS delete-by-query pagination fix (Fix AOSS delete-by-query pagination and progress logging registry-common#303).

Test plan

  • Run registry-manager delete-dd -ns <namespace> and confirm sentinel doc (registry:LDD_Info/<ns>:*.JSON) is also deleted
  • Confirm field docs with attr_ns=<ns> but class_ns from a different namespace are also removed

🤖 Generated with Claude Code

Copy-paste bug: the second DeleteByQuery in deleteByNamespace() filtered
on class_ns again instead of attr_ns, so only docs where class_ns matched
were ever deleted. Sentinel docs (class_ns="registry", attr_ns=<ns>) and
cross-namespace attribute refs were never touched.

Also bumps registry-common dependency to 2.5.0-SNAPSHOT to pick up the
AOSS delete-by-query pagination fix.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jordanpadams
jordanpadams requested a review from a team as a code owner July 17, 2026 01:31
@sonarqubecloud

Copy link
Copy Markdown

@nutjob4life nutjob4life left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Code delta: ✓
Tests: ✓
Approval: ✅
Maven details:

[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running tt.TestDDParsers
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 s -- in tt.TestDDParsers
[INFO] Running tt.TestLddLoader
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s -- in tt.TestLddLoader
[INFO] Running tt.TestSchemaDao
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s -- in tt.TestSchemaDao
[INFO] Running tt.TestDataLoader
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s -- in tt.TestDataLoader
[INFO] Running tt.TestRegistryDao
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s -- in tt.TestRegistryDao
[INFO] Running tt.TestIndexDao
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s -- in tt.TestIndexDao
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  14.440 s
[INFO] Finished at: 2026-07-26T13:31:50-05:00
[INFO] ------------------------------------------------------------------------

@jordanpadams
jordanpadams merged commit 7d443c0 into main Jul 28, 2026
4 checks passed
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