Skip to content

feat:[NEXT-1926] Added Optional tags#2388

Merged
arunpaladin merged 1 commit into
masterfrom
feat/db-changes-for-optionaltag
Jan 27, 2026
Merged

feat:[NEXT-1926] Added Optional tags#2388
arunpaladin merged 1 commit into
masterfrom
feat/db-changes-for-optionaltag

Conversation

@arunpaladin
Copy link
Copy Markdown
Collaborator

@arunpaladin arunpaladin commented Jan 27, 2026

feat:NEXT-1926 Added Optional tags

Summary by CodeRabbit

  • New Features
    • Extended tag filtering capabilities to support optional tags in addition to existing mandatory tags. This enhancement enables users to configure more nuanced tag-based filters, providing greater flexibility and control over tag selection in filter operations and improving overall filtering configuration options.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jan 27, 2026

Walkthrough

The change adds invocations to update_filter_for_tag(@OPTIONAL_TAGS) in the database initialization script to extend the tagging UI configuration to include optional tags alongside mandatory tags.

Changes

Cohort / File(s) Change Summary
Database Configuration
installer/resources/pacbot_app/files/DB.sql
Adds call to update_filter_for_tag(@OPTIONAL_TAGS) in two locations to configure optional tags in the tagging UI filter setup

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • kevin-paladin

Poem

🐰 Whiskers twitching with delight
Two calls added, tags take flight,
Optional filters configured just right,
Database blooms in moonlit light! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is largely incomplete, missing critical sections including Problem, Solution, Type of change, testing information, and checklist items required by the template. Complete the description by adding Problem and Solution sections, selecting the change type, describing how the changes were tested, and completing the required checklist items.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly references the main change (adding optional tags) with issue tracking, though the prefix format is unconventional for this repository.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

Warning

Review ran into problems

🔥 Problems

Errors were encountered while retrieving linked issues.

Errors (1)
  • JIRA integration encountered authorization issues. Please disconnect and reconnect the integration in the CodeRabbit UI.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@installer/resources/pacbot_app/files/DB.sql`:
- Around line 3003-3004: The second CALL to
update_filter_for_tag(`@OPTIONAL_TAGS`) deletes filters inserted by the first call
because update_filter_for_tag removes existing tag options before validating
input; merge `@MANDATORY_TAGS` and `@OPTIONAL_TAGS` into a single tag list (or build
a combined variable) and call update_filter_for_tag once with that merged list,
or modify update_filter_for_tag to validate emptiness before deleting; reference
update_filter_for_tag and the variables `@MANDATORY_TAGS/`@OPTIONAL_TAGS when
making the change.

Comment on lines 3003 to +3004
CALL update_filter_for_tag(@MANDATORY_TAGS);
CALL update_filter_for_tag(@OPTIONAL_TAGS);
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.

⚠️ Potential issue | 🟠 Major

Second call wipes mandatory-tag filters.

update_filter_for_tag deletes existing tag options before checking for empty input, so the optional-tag call removes previously inserted mandatory-tag filters (and if optional tags are empty, it clears everything). Consider merging both tag lists and calling the procedure once.

✅ Safer single-call approach
-CALL update_filter_for_tag(`@MANDATORY_TAGS`);
-CALL update_filter_for_tag(`@OPTIONAL_TAGS`);
+CALL update_filter_for_tag(CONCAT_WS(',', `@MANDATORY_TAGS`, `@OPTIONAL_TAGS`));
🤖 Prompt for AI Agents
In `@installer/resources/pacbot_app/files/DB.sql` around lines 3003 - 3004, The
second CALL to update_filter_for_tag(`@OPTIONAL_TAGS`) deletes filters inserted by
the first call because update_filter_for_tag removes existing tag options before
validating input; merge `@MANDATORY_TAGS` and `@OPTIONAL_TAGS` into a single tag
list (or build a combined variable) and call update_filter_for_tag once with
that merged list, or modify update_filter_for_tag to validate emptiness before
deleting; reference update_filter_for_tag and the variables
`@MANDATORY_TAGS/`@OPTIONAL_TAGS when making the change.

@arunpaladin arunpaladin merged commit 383f086 into master Jan 27, 2026
62 checks passed
@arunpaladin arunpaladin deleted the feat/db-changes-for-optionaltag branch January 27, 2026 22:04
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