Repository navigation
Fixes open-metadata/openmetadata-collate#8646: a hard delete keeps the tags of entities that share its FQN - #38126
Conversation
tag_usage and field_relationship key their rows by FQN hash alone, so a hard delete removed the rows of every entity at or under the deleted entity's FQN, whatever its type. Hard-deleting a pipeline service named like a database service removed the tags and tiers of every table in the database service. Before its prefix delete, the cleanup now looks for entities the delete leaves in place: a taggable entity of another type with the same FQN keeps every row at and under it, and entities that nest under the FQN without being its descendants keep their subtrees. When a recursive delete's root shares its FQN, its descendants remove their own rows.
The root of a recursive hard delete keeps the rows under its FQN that an unrelated nested entity holds, not only those of a same-FQN entity, so its descendants now remove their own rows in both cases. A metric named like a service's database no longer leaves the deleted tables' tags behind. Before the cascade, nested entities of a type whose parent is the root's type (a dashboard service's data models) do not count. The entity probes run in a constant statement shell, since a DAO statement may not be a bare template attribute (ADR:2026-11-03-dao-statements-bind-every-value).
A database that shares its FQN with a metric shows the metric's tags, and reads propagate them to its tables as DERIVED labels. Rows a hard delete left behind would be the table's own labels, so only those count.
Folders, context files and pages are not cascade-covered, so naming their parent type had no effect. Only a dashboard service's data models need it, to keep that service's cascade on its single prefix delete.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
|
Local Java test run: PASSED — details
Tests run locally
Broader coverage not executed by this focused run
Impacted, not run locally (14)
Commandsmvn -B package -pl openmetadata-service -am -Dspring-boot.repackage.skip=true -Dtest=ContextFileRepositoryTest,FqnKeyedRowCleanupTest,KnowledgePageRepositoryTest,MetricGroupRepositoryTest,MetricRepositoryTest -Dsurefire.failIfNoSpecifiedTests=false
mvn -B verify -pl :openmetadata-integration-tests -am -Dspring-boot.repackage.skip=true -Pmysql-elasticsearch -DintegrationTests.lane=parallel -Dit.test=HardDeleteCleanupIT -Dfailsafe.failIfNoSpecifiedTests=false -Dtest=NoUnitTestsInThisRun -Dsurefire.failIfNoSpecifiedTests=false |
A metric's FQN is its bare name, so it can equal a table column's FQN, and deleting the metric removed the column's tags. When an entity with inline fields sits above a free-form FQN, the delete now keeps the rows at and under it. FqnKeyedRowCleanupTest now asserts the rules as pure functions and the statements each database receives, instead of DAO calls on mocks.
File columns carry tags outside the ChildFieldResolver registry, so the field check missed a metric named like one. hasTaggedFields() gives the type-level answer to taggedFieldContainers, and FileRepository overrides both. The ADR now states what the checks cover and records the case they leave open.
A test case or child container named like a column of its parent shares that column's FQN as well, not only names repeated across types at several levels.
Code Review ✅ Approved 🔴 High risk 1 closed / 1 findingsChanges hard-delete cleanup and cascade handling for FQN-keyed tags and relationships; mistakes could preserve deleted data or erase surviving entities’ metadata. Hard deletes now keep tag labels and field relationships for entities that share an FQN with the deleted entity, fixing the wiped tags on same-name tables and data models. The FqnKeyedRowCleanupTest was reworked to check the rows that actually get deleted rather than mock calls, which was the only open item and is now resolved. ✅ 1 closed✅ Quality: FqnKeyedRowCleanupTest checks mock calls instead of what gets deleted
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
ulixius9
left a comment
There was a problem hiding this comment.
Reviewed at afd3ee65134. The fix looks right to me: it checks for entities that share the FQN before the prefix delete, and one class (FqnKeyedRowCleanup) now does the cleanup for both single deletes and the bulk cascade. I traced CASCADE_ROOT_FQN_SHARED: every cascade entry point goes through deleteChildrenOf, and a nested delete() (such as the chart cleanup) saves and restores the outer value. The HardDeleteCleanupIT cases are real end-to-end tests, red on main and green here.
Before merge
Validate PR Metadatafails because the job can't read the private Collate issue (GET .../openmetadata-collate/issues/8646 - 404). It needs an OSS issue linked, or a maintainer override.- This PR fixes only the first of the issue's two items. The async hard delete still writes no
entityDeletedaudit entry. ConsiderPart ofinstead ofFixes, or a follow-up issue, so the audit gap isn't closed with it.
Non-blocking
nestsUnderUnrelatedFqns()is opt-in. A future type with bare-name FQNs that forgets the override brings the bug back with no failing test. Worth a guard test, or at least a line inDEVELOPER.md's add-an-entity checklist.- When a batch has any nested holder,
ownedRowscallsnestedHolderHashesfor every FQN in the batch (up to 50 queries), not only for the FQNs that matched. This only matters on cascades under a shared root, so it's minor. - On Postgres, the
LIKEprobe has notext_pattern_opsindex on the metric group, knowledge page, folder and context file tables, so it scans them in full (metric and data model tables have one). They're small for now.
| // cleanup() prefix delete, unless the root keeps rows under its FQN for an entity the delete | ||
| // leaves in place (CASCADE_ROOT_FQN_SHARED). Types not FQN-nested under their delete root | ||
| // (e.g. flat-FQN teams) keep the per-entity path. | ||
| if (shouldCleanupFqnDependents() && !reliesOnCascadeRootFqnCleanup()) { |
There was a problem hiding this comment.
This fixes the bug, but it can make a recursive hard delete much slower when the name is shared.
Without a name clash, deleting a service runs one DELETE ... LIKE 'service.%'. That one statement removes the
tags of every database, schema, table and column under it.
With a name clash (e.g. a pipeline service and a database service both called sales), that statement is
skipped and every child deletes its own rows instead. So a service with 8,000 tables runs ~16,000 delete
statements in place of 2.
Tried it locally on Postgres (2.0.8 schema, ~130k tag rows, a database service with 8,000 tables and a pipeline
service with the same name), then hard-deleted the database service:
- main: 2 statements, 0.3 s (but it also deletes the pipeline service's rows)
- this PR: 16,044 statements, ~86 s, plus ~11 s for the lookups
The result was correct: all the deleted service's tags were gone and the other service's were kept. The time is
the issue, and it grows with the number of tables.
Suggestion: delete per batch of 50 children with one statement instead of one per child, e.g.
DELETE FROM tag_usage
WHERE targetfqnhash_lower IN (:h1, :h2, ... :h50)
OR targetfqnhash_lower LIKE :h1_dot_percent OR ... OR targetfqnhash_lower LIKE :h50_dot_percentThat's 2 statements per 50 tables instead of 100.
| if (keptSubtreeHashes.isEmpty()) { | ||
| daoCollection.fieldRelationshipDAO().deleteAllByPrefix(fqn, entityType); | ||
| if (taggable) { | ||
| daoCollection.tagUsageDAO().deleteTagLabelsByTargetPrefix(fqn); |
There was a problem hiding this comment.
The tag delete here filters on targetFQNHash. On Postgres that column has no index that suits a prefix LIKE,
so it falls back to the trigram (GIN) index, ~6 ms per delete.
tag_usage already has a pattern index for exactly this: idx_tag_usage_targetfqnhash_lower_pattern on
targetfqnhash_lower. Hashes are lowercase MD5 hex (EntityUtil.hash), so filtering on targetfqnhash_lower
returns the same rows.
Measured locally, 8,000 per-table deletes:
WHERE targetFQNHash = :h OR targetFQNHash LIKE 'h.%'→ 46.5 sWHERE targetfqnhash_lower = :h OR targetfqnhash_lower LIKE 'h.%'→ 6.3 s
Suggestion: use targetfqnhash_lower in the Postgres version of deleteTagLabelsByTargetPrefix and
deleteTagLabelsByTargetPrefixOutside.
| * {@link #deleteAllByPrefix} except the rows at and under the kept subtrees, which belong to | ||
| * entities a hard delete leaves in place. | ||
| */ | ||
| default void deleteAllByPrefixOutside( |
There was a problem hiding this comment.
The field_relationship delete (toFQNHash LIKE 'h.%' OR fromFQNHash LIKE 'h.%') can't use any index on
Postgres, so every call reads the whole table. EXPLAIN locally:
Delete on field_relationship
-> Seq Scan on field_relationship (Rows Removed by Filter: 39998)
Execution Time: 41 ms
On main it runs once per hard delete. With the per-child path from comment 1 it runs once per child: ~43 s for
8,000 tables locally, with only 40k lineage rows. An instance with millions of column-lineage rows reads the full
table 8,000 times, which could take hours.
Suggestion: batch it like comment 1, and/or add a text_pattern_ops index on fromFQNHash and toFQNHash in a
Postgres migration.
| } | ||
|
|
||
| /** One probe per table for a row under any of the bound prefixes. */ | ||
| static String anyUnderProbes(List<EntityTable> tables, Collection<String> bindNames) { |
There was a problem hiding this comment.
Minor. This check (fqnHash LIKE 'h.%' LIMIT 1) now runs on every hard delete of a taggable entity.
metric_entityanddashboard_data_model_entityhave pattern indexes, so it's fast (<1 ms locally).knowledge_center,drive_folder,context_fileandmetric_group_entitydon't, so on Postgres it reads
each of those tables in full on every delete.
Small tables today, so fine for now, but worth a pattern index if Knowledge Center grows. The same-name check
(the IN lookup over all entity tables) was ~3 ms, no concern.
| private OwnedRows ownedRows(String hash, boolean heldElsewhere, boolean mayHaveNestedHolders) { | ||
| OwnedRows owned = OwnedRows.NONE; | ||
| if (!heldElsewhere) { | ||
| owned = mayHaveNestedHolders ? OwnedRows.keeping(nestedHolderHashes(hash)) : OwnedRows.ALL; |
There was a problem hiding this comment.
Minor. If the batch check finds any nested entity, nestedHolderHashes(hash) then runs once for every FQN in
the batch, up to 50 more queries, even for FQNs with nothing under them. Could the batch check return which hashes matched, so only those get the second lookup?
|
🤖 Backport to |
|
🤖 Backport to |
…eps the tags of entities that share its FQN (#38126) (#38230) Backport of #38126. tag_usage and field_relationship key their rows by FQN hash alone, so a hard delete removed the rows of every entity at or under the deleted entity's FQN, whatever its type. Hard-deleting a pipeline service named like a database service removed the tags and tiers of every table in it. Differences from main: - The new TagUsageDAO and FieldRelationshipDAO statements live in CollectionDAO, where 2.0 keeps those DAOs. - 2.0 has no ChildFieldResolver registry, so hasTaggedFields() defaults to false and the ten repositories that override taggedFieldContainers() return true. - cleanup() runs both FQN-prefix deletes after entity_extension, the order 2.0's bulk cascade already uses. - No MetricGroup opt-in or impact-map entry; neither exists on 2.0. (cherry picked from commit ad4d5f2)
The hard-delete cleanup from #38126 probes every taggable entity table in one UNION ALL. MySQL rejects a UNION whose columns have different collations, and an install's hash columns do not share one: most are ascii_bin, the newer tables declare utf8mb4_0900_ai_ci, and query_entity.fqnHash (renamed in 1.2.0 without a collation) takes the server default. On a server whose default is not utf8mb4_0900_ai_ci, every hard delete of a taggable entity fails with "Illegal mix of collations for operation 'UNION'". On MySQL each probe now selects CONVERT(hash USING utf8mb4) COLLATE utf8mb4_bin. The WHERE clause still reads the bare column, so the lookup keeps its index. No schema change. (cherry picked from commit 4f9ccf8)
…FQN cleanup (#38443) * Select FQN-cleanup probe hashes in one collation on MySQL The hard-delete cleanup from #38126 probes every taggable entity table in one UNION ALL. MySQL rejects a UNION whose columns have different collations, and an install's hash columns do not share one: most are ascii_bin, the newer tables declare utf8mb4_0900_ai_ci, and query_entity.fqnHash (renamed in 1.2.0 without a collation) takes the server default. On a server whose default is not utf8mb4_0900_ai_ci, every hard delete of a taggable entity fails with "Illegal mix of collations for operation 'UNION'". On MySQL each probe now selects CONVERT(hash USING utf8mb4) COLLATE utf8mb4_bin. The WHERE clause still reads the bare column, so the lookup keeps its index. No schema change. * Run the FQN-cleanup probes on a real MySQL with mixed hash collations The SQL-string test cannot catch the collation error. This one starts MySQL with utf8mb4_unicode_ci as the server default and three tables on the collations an install mixes (ascii_bin, utf8mb4_0900_ai_ci, server default). The bare-column union fails with 'Illegal mix of collations'; the namesake and nested probes return the hash from every table.
…s' in FQN cleanup (#38443) (#38444) * Select FQN-cleanup probe hashes in one collation on MySQL The hard-delete cleanup from #38126 probes every taggable entity table in one UNION ALL. MySQL rejects a UNION whose columns have different collations, and an install's hash columns do not share one: most are ascii_bin, the newer tables declare utf8mb4_0900_ai_ci, and query_entity.fqnHash (renamed in 1.2.0 without a collation) takes the server default. On a server whose default is not utf8mb4_0900_ai_ci, every hard delete of a taggable entity fails with "Illegal mix of collations for operation 'UNION'". On MySQL each probe now selects CONVERT(hash USING utf8mb4) COLLATE utf8mb4_bin. The WHERE clause still reads the bare column, so the lookup keeps its index. No schema change. (cherry picked from commit 4f9ccf8) * Run the FQN-cleanup probes on a real MySQL with mixed hash collations The SQL-string test cannot catch the collation error. This one starts MySQL with utf8mb4_unicode_ci as the server default and three tables on the collations an install mixes (ascii_bin, utf8mb4_0900_ai_ci, server default). The bare-column union fails with 'Illegal mix of collations'; the namesake and nested probes return the hash from every table. (cherry picked from commit 5316487)
…s' (#38443, #37142) (#38442) * fix(it): run the UI test MySQL on the shipped collation, and clean up a server that fails to start (#37142) * fix(it): stop a containerized UI test server that fails to start, and fail fast after it * fix(it): run the containerized UI test MySQL on the collation OpenMetadata ships with * style(it): apply spotless (cherry picked from commit 74b0529) * Select FQN-cleanup probe hashes in one collation on MySQL The hard-delete cleanup from #38126 probes every taggable entity table in one UNION ALL. MySQL rejects a UNION whose columns have different collations, and an install's hash columns do not share one: most are ascii_bin, the newer tables declare utf8mb4_0900_ai_ci, and query_entity.fqnHash (renamed in 1.2.0 without a collation) takes the server default. On a server whose default is not utf8mb4_0900_ai_ci, every hard delete of a taggable entity fails with "Illegal mix of collations for operation 'UNION'". On MySQL each probe now selects CONVERT(hash USING utf8mb4) COLLATE utf8mb4_bin. The WHERE clause still reads the bare column, so the lookup keeps its index. No schema change. (cherry picked from commit 4f9ccf8) * Run the FQN-cleanup probes on a real MySQL with mixed hash collations The SQL-string test cannot catch the collation error. This one starts MySQL with utf8mb4_unicode_ci as the server default and three tables on the collations an install mixes (ascii_bin, utf8mb4_0900_ai_ci, server default). The bare-column union fails with 'Illegal mix of collations'; the namesake and nested probes return the hash from every table. (cherry picked from commit 5316487) --------- Co-authored-by: Adrià Manero <adria.estivill@getcollate.io>
Describe your changes:
Fixes open-metadata/openmetadata-collate#8646
A hard delete removes the tag labels (
tag_usage) and field relationships (field_relationship) at and under the deleted entity's FQN with one prefix delete on the FQN hash. Neither table records the entity type, and an FQN is unique only within a type, so the delete also removed the rows of unrelated entities. On a customer deployment running 2.0.8, hard-deleting a pipeline service that had the same name as a database service removed the tags and tiers of every table in the database service. No version or change description recorded it. The same happened:service.model.name), when a chart or dashboard namedmodelwas hard-deleted;glossary.term), when that entity was deleted;This PR keeps the rows of the entities a delete leaves in place:
FqnKeyedRowCleanupruns the FQN-prefix deletes for both the single-entity cleanup and the bulk cascade. First it looks for entities the delete leaves in place:EntityRepository.hasTaggedFields(): tables, topics, data models, Drive files, …) sits above a free-form FQN, nothing at or under it is deleted.EntityRepository.nestsUnderUnrelatedFqns(): dashboard data models (fixedmodelsegment), and metrics, metric groups, knowledge pages, folders and context files (bare names, dots included).EntityRepository.fqnParentType()).Not in this PR: the issue's second item. The async hard delete writes no
entityDeletedaudit entry.Type of change:
High-level design:
Approach. The delete answers "does anything else hold rows here?" before its prefix delete. Two queries do it:
UNION ALLover the tables of every other taggable type (hash IN (...), unique index) finds same-FQN entities.LIKEprobe over the opted-in types finds nested entities.Both are built from
Entity.getEntityRepositories(), so Collate's types are included. They run throughTagUsageDAO.listEntityFqnHashes, inside the delete's transaction.Components:
FqnKeyedRowCleanup(new) holds the probe and the deletes.TagUsageDAO.deleteTagLabelsByTargetPrefixOutsideandFieldRelationshipDAO.deleteAllByPrefixOutsidedelete everything except the kept subtrees. The existing prefix deletes are unchanged and still run when nothing is shared.EntityRepositorycalls the new class fromcleanup()andbulkCleanupReferences(). Before the cascade,deleteChildrenOfsetsCASCADE_ROOT_FQN_SHAREDfromFqnKeyedRowCleanup.rootKeepsDescendantRows.Alternatives rejected:
tag_usagerow. This is exact, but it is a schema change and backfill on a large, hot table. The backfill is ambiguous for exactly the shared rows, and every tag read would have to pass the type. It stays deferred, as in the 11-03 ADR.Cost and rollout:
Tests:
Use cases covered
modelkeeps the tags of the service's data models.service.db), and a table re-created at the deleted FQN starts with no tags.modelstarts with no tags.Unit tests
openmetadata-service/src/test/java/org/openmetadata/service/jdbi3/FqnKeyedRowCleanupTest.java(14 tests). Following review, it mocks none of the project's classes:OwnedRows.keeping(including the 100-subtree cap),properPrefixes,outermostandoutsideKeptSubtrees.EntityDAOTest's JDBC harness.HardDeleteCleanupIT.bb7d63b219c(JaCoCo,FqnKeyedRowCleanupTest+EntityRepositoryRestoreTest): 100/129 lines ofFqnKeyedRowCleanupand 130/185 (70%) of all changed lines inopenmetadata-service/src/main. The uncovered lines are the probe-and-delete orchestration,EntityRepository.deleteChildrenOfand the one-line hooks. They run inHardDeleteCleanupIT, which JaCoCo does not instrument. The path that only deletes the rows at the FQN, past the 100-subtree cap, has no end-to-end test; only its decision is tested.Backend integration tests
openmetadata-integration-tests/.openmetadata-integration-tests/src/test/java/org/openmetadata/it/tests/HardDeleteCleanupIT.java(8 new tests).main(bbc3497485c) the first 5 new tests fail, e.g.expected: <[PersonalData.Personal, Tier.Tier2]> but was: <[]>. The 3 existing tests pass.hardDeletingADatabaseServiceKeepsTheTagsOfAMetricNamedLikeItsDatabaseAndRemovesItsOwnfails withA table re-created at a deleted FQN must not inherit the deleted table's tags ==> expected: <[]> but was: <[PersonalData.Personal, Tier.Tier2]>.hardDeletingAMetricNamedLikeAColumnKeepsTheColumnsTagsfails withexpected: <[PersonalData.Personal]> but was: <[]>.FileRepository.hasTaggedFields()returning false,hardDeletingAMetricNamedLikeAFileColumnKeepsTheColumnsTagsfails the same way.bb7d63b219c:HardDeleteCleanupIT11/11 onmysql-elasticsearch(block below) and 11/11 onpostgres-opensearch. The head,afd3ee65134, changes only the ADR.Local Java test run: PASSED
bb7d63b219c8(baseorigin/main)--scope full).Ingestion integration tests
Playwright (UI) tests
Visual regression baselines
Manual testing performed
Ran the reported scenario in the UI against Docker builds of
mainand of this head; the recordings are under UI screen recording below.HardDeleteCleanupITautomates the same scenario through the async endpoint the UI uses. To reproduce by hand:svc_awith a table, and give the tableTier.Tier2and a classification tag.svc_a.DELETE /api/v1/services/pipelineServices/async/{id}?hardDelete=true&recursive=true).GET /api/v1/tables/name/svc_a.<db>.<schema>.<table>?fields=tags: onmainit returns no tags; with this PR the tags remain.UI screen recording:
Backend-only fix. The recordings show the reported scenario in the UI, once on
mainand once with this PR. Each ran against a Docker image built from its commit, with the same fixture:sales_dwhas the tablesorders(Tier.Tier2andPersonalData.Personal; columnemailtaggedPII.Sensitive) andcustomers(Tier.Tier1andPII.Sensitive; columnemailtaggedPersonalData.Personal).sales_dw. It is hard-deleted from its page (⋮ → Delete → Permanently Delete). The UI sendsDELETE /api/v1/services/pipelineServices/async/{id}?hardDelete=true&recursive=true, and the reloaded list of pipeline services no longer shows it.ordersandcustomersare opened again.Before:
mainatbbc3497485c. Both tables lose their tier, their tags and their column tags.pr38126-before-main.mp4
After: this PR at
afd3ee65134. Both tables keep all of them.pr38126-after-pr.mp4
mainRecording setup
mvn -DskipTests package -pl openmetadata-dist -amon each commit (mainin a scratch worktree), thendocker/development/Dockerfile. In each image, theopenmetadata-serviceandopenmetadata-uijars match that build'starget/by SHA-256./api/v1/system/versionreported revisionbbc3497485c1503bf3d1f5d248acc96427861589andafd3ee6513402fda21620c1f5eab4ffab88ba5f2. Migrations ran from the same images, against Postgres 14 and Elasticsearch 9.3.0 on the host, with a separate database and cluster alias per server.hardDelete=true&recursive=true);fields=tags,columns). Onmain, neither table noremailcolumn had a tag left. With this PR, each had exactly its fixture tags, and the database service was still there.Checklist:
I have read the CONTRIBUTING document.
My PR title is
Fixes <issue-number>: <short explanation>My PR is linked to a GitHub issue via
Fixes #<issue-number>above.I have commented on my code, particularly in hard-to-understand areas.
For JSON Schema changes: I updated the migration scripts or explained why it is not needed. — N/A, no schema change.
For a UI feature or feature task: as part of PR creation, I ran the PR build in Docker with sample data and embedded a verified GitHub-hosted recording plus build/health evidence above (or explained why this requirement is not applicable). — N/A, backend-only fix.
I have added tests (unit / integration / Playwright as applicable) and listed them above.
Self-review: I reviewed the final diff against
REVIEW.md(thepr-checklistskill runs it) and fixed every 🔴 finding, or answered it on the line below.Reviewed at
9f7675dae49by a reviewer with no context from this work. The first pass, ond78c9a13473, raised two 🔴s, both fixed in94747c52c67:DaoStatementGuardTest). It now runs in a constantSELECT probe.hash FROM (<probes>) probeshell.Later rounds, after the bot reviews on this PR:
67289664d60raised one more 🔴. Drive file columns carry tags outsideChildFieldResolver, so the field check missed them;bb7d63b219cfixes it withhasTaggedFields().X.a.bagainst the taskbof pipelineX.a. Telling those apart needs the target's entity type on eachtag_usagerow, which stays deferred.bb7d63b219cfound no 🔴.Answered rather than fixed (🟡): the
nestsUnderUnrelatedFqns()overrides on Folder, ContextFile, KnowledgePage and MetricGroup have no IT of their own. Each is a one-line opt-in into the same probe that the Metric and data-model cases cover. Adding cases would need the context-memory and knowledge-center setup.Decision check: if this PR decides something the next contributor could undo — a schema field, REST path or format another component or repo must agree with, a new default or limit, an ordering that must hold, or a rule stated only in this description — it adds a record under
docs/decisions/(see itsREADME.md). This description is gone fromgit logafter the squash-merge.I have added a test that covers the exact scenario we are fixing.
🤖 Generated with Claude Code


Confidence Score: 5/5
The changes appear safe to merge within the documented scope.Summary
Hard deletes now preserve tags and field relationships shared with surviving entities, including table and Drive file columns.
No new actionable issues found.
mohityadav766explicitly deferred collisions between parent-built names and inline fields because an exact fix needs the entity type stored on each tag row. They also accepted omitting separate integration cases for four one-line repository opt-ins because those use the same tested checks.Reviews (8) · Last reviewed commit: "docs(delete): state the general case a h..." · Reviewed by Greptile