feat(filter): support @me and currentUser macros in task assignee queries - #3414
Open
mcassaniti wants to merge 1 commit into
Open
feat(filter): support @me and currentUser macros in task assignee queries#3414mcassaniti wants to merge 1 commit into
mcassaniti wants to merge 1 commit into
Conversation
mcassaniti
force-pushed
the
feat/filter-me-macro
branch
from
August 3, 2026 10:22
77270c8 to
015702a
Compare
Member
|
What happens when a user has |
Author
|
Good question. For the frontend, the auto-complete will not match. Something like I guess the code should reserve these special values and not allow them as a username. I'm fine if you want to change what is matched (e.g.: only |
|
Proposal: Only use This assumes that usernames starting with |
mcassaniti
force-pushed
the
feat/filter-me-macro
branch
from
August 5, 2026 04:19
015702a to
5006ec8
Compare
mcassaniti
force-pushed
the
feat/filter-me-macro
branch
from
August 5, 2026 04:24
5006ec8 to
570f301
Compare
Author
|
Done. The filter is restricted to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #3413
What this PR does
Backend Dynamic Macro Resolution (
pkg/models/task_search.go):resolveCurrentUserMacrosindbTaskSearcher.Search.@me,currentUser, orcurrent_userin assignee queries dynamically resolve to the logged-in user's username (web.Auth). UPDATE: Now only@me.@meso shared views resolve dynamically per user.Backend Unit Tests (
pkg/models/task_search_test.go):TestTaskSearchCurrentUserMacrotesting string, slice, and array macro replacement.Frontend UX & Docs (
FilterAutocomplete.ts&FilterInputDocs.vue):@me(Current User (@me)) to autocomplete suggestions forassignees.assignees in @meexample to the filter help documentation.Testing
TestTaskSearchCurrentUserMacropassed.