Skip to content

BYNT-1362: Add search for actor tags#110

Merged
tarekio merged 8 commits intomainfrom
search-actor-tags
Jun 19, 2025
Merged

BYNT-1362: Add search for actor tags#110
tarekio merged 8 commits intomainfrom
search-actor-tags

Conversation

@cango91
Copy link
Contributor

@cango91 cango91 commented Jun 13, 2025

Jira Issue

  1. BYNT-1362

Description

  • Adds tags as an optional parameter for Actors search where search capabilities are modeled after the Bulletin tags search.
  • Minimal frontend changes to add tags to actor search (~Bulletins search)
  • API documentation updated

Checklist

  • Tests added/updated
  • Documentation updated (if needed)
  • New strings prepared for translations

API Changes (if applicable)

  • Permissions checked
  • Endpoint tests added

Additional Notes

[Any other relevant information]

@cango91 cango91 changed the title Search actor tags BYNT-1362: Search actor tags Jun 13, 2025
@cango91 cango91 changed the title BYNT-1362: Search actor tags BYNT-1362: Add search for actor tags Jun 13, 2025
@cango91 cango91 requested review from apodacaduron and tarekio June 13, 2025 15:50
@cango91 cango91 requested a review from apodacaduron June 16, 2025 13:54
@cango91 cango91 self-assigned this Jun 16, 2025
Copy link
Contributor

@apodacaduron apodacaduron left a comment

Choose a reason for hiding this comment

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

Looks great

@tarekio tarekio requested a review from level09 June 16, 2025 19:27
Copy link
Contributor

@tarekio tarekio left a comment

Choose a reason for hiding this comment

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

Works well, need to confirm with user testing though.

Copy link
Collaborator

@level09 level09 left a comment

Choose a reason for hiding this comment

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

@cango91 for actor tags, data is likely will be big. we will need to add a proper index for actor tags

I suggest GIN index with array_ops operator class , that is good for array operations.

Let's add :

  1. sqlalchemy index
  2. migration script for addding the index

lets make sure the index name is the same in both cases.

cango91 and others added 3 commits June 19, 2025 14:01
…, and cleanup

- Add GIN index with array_ops for actor tags to improve search performance
- Add regex escaping to all tag search operations for security
- Remove confusing "De Morgan's" comment
- Create migration script for the new index
@tarekio tarekio merged commit 3db12f2 into main Jun 19, 2025
6 of 7 checks passed
@tarekio tarekio deleted the search-actor-tags branch June 19, 2025 22:57
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.

4 participants