Skip to content

CelTagService.setTags#96

Open
msladek wants to merge 6 commits into
devfrom
celtag-set
Open

CelTagService.setTags#96
msladek wants to merge 6 commits into
devfrom
celtag-set

Conversation

@msladek

@msladek msladek commented Jul 11, 2026

Copy link
Copy Markdown
Member

Extend CelTagService replace writes and scope-aware reads:

  • Add setTags(doc, type, names...) to replace all tags of one type.
  • Add streamTags(type, scope).
  • Filter getDocTags() using the document wiki scope.
  • Filter out-of-scope CelTags during addTags() and setTags().

@msladek
msladek requested a review from fpichler July 11, 2026 11:24
@msladek
msladek requested review from cbspichler and removed request for fpichler July 11, 2026 12:50
@msladek msladek assigned cbspichler and unassigned fpichler Jul 11, 2026
.filter(tag -> tagNames.contains(tag.getName()))
.map(CelTag::getName)
.toList());
}

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.

The code for setTags and setTagXObj is hard to understand for me even if tests prove it does what it's supposed to do, I still can't figure it out. AI doesn't help either.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

setTags is reshaped, perhaps that makes things clearer?
af9c6fb

@cbspichler cbspichler assigned msladek and unassigned cbspichler Jul 14, 2026
@msladek msladek assigned fpichler and cbspichler and unassigned msladek Jul 15, 2026
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.

3 participants