Skip to content

fix(OPENFRAM-010-6): CU-86akeeczr TagAssignment.entityType/entityId relationship undocumented despite non-obvious polymorphic semantics - #2081

Draft
flamingo[bot] wants to merge 1 commit into
mainfrom
ai-fix/openfram-010-6-42340aef-4f0d6344
Draft

flamingo[bot] wants to merge 1 commit into
mainfrom
ai-fix/openfram-010-6-42340aef-4f0d6344

Conversation

@flamingo

@flamingo flamingo Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Closes findings from rule OPENFRAM-010-6 — TagAssignment.entityType/entityId relationship undocumented despite non-obvious polymorphic semantics.

Draft — this is a starting point, not a finished change. The fix required judgment, so read it before trusting it.

# Fix confidence Finding Location
1 🟡 70 medium TagAssignment.entityType/entityId relationship undocumented despite non-obvious polymorphic semantics openframe-data-mongo-common/src/main/java/com/openframe/data/document/tag/TagAssignment.java:22

What changed — and what was deliberately left — is explained per finding as inline review comments on the lines each finding touched.


Run: https://product-hub.flamingo.so/admin/code-review
Run id: 4f0d6344-55d4-49de-bc86-cac2510f432f

Merging this PR is recorded as acceptance of the rule that produced it;
closing it unmerged is recorded as rejection. Both feed rule health, so
closing a wrong suggestion is useful rather than merely tidy.

ClickUp task: CU-86akeeczr OpenFrame lib batch review findings sweep 2 (13 PRs)

…ndocumented despite non-obvious polymorphic semantics

@flamingo flamingo Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🦩 What this fix changed, finding by finding

1 finding(s) fixed in this draft — 1 explained inline on the diff.

@@ -22,14 +22,27 @@ public class TagAssignment implements TenantScoped {
@Id

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🦩 🟠 TagAssignment.entityType/entityId relationship undocumented despite non-obvious polymorphic semantics

Added Javadoc comments in the TagAssignment class body above the entityId field (documenting its polymorphic relationship to entityType), above the entityType field (documenting its role as discriminator for entityId), and above the taggedBy field (documenting its meaning). No behavioral or structural code changes were made, only comments inserted, preserving existing formatting/style.

🤖 Prompt for AI agents
In openframe-data-mongo-common/src/main/java/com/openframe/data/document/tag/TagAssignment.java around line 22, review and complete this code-review fix: TagAssignment.entityType/entityId relationship undocumented despite non-obvious polymorphic semantics.
What the draft fix changed: Added Javadoc comments in the `TagAssignment` class body above the `entityId` field (documenting its polymorphic relationship to `entityType`), above the `entityType` field (documenting its role as discriminator for `entityId`), and above the `taggedBy` field (documenting its meaning). No behavioral or structural code changes were made, only comments inserted, preserving existing formatting/style.
Verify the change is correct and complete; do not refactor unrelated code.

fix confidence: 🟡 70 medium — react 👍/👎 to teach the reviewer

@flamingo flamingo Bot changed the title fix(OPENFRAM-010-6): TagAssignment.entityType/entityId relationship undocumented despite non-obvious polymorphic semantics fix(OPENFRAM-010-6): CU-86akeeczr TagAssignment.entityType/entityId relationship undocumented despite non-obvious polymorphic semantics Sep 8, 2026
@michaelassraf

Copy link
Copy Markdown
Contributor

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.

1 participant