Skip to content

Commit

Permalink
JPERF-1395 Expose filtering for all JQL types
Browse files Browse the repository at this point in the history
  • Loading branch information
pczuj authored and dagguh committed Oct 4, 2023
1 parent 142ec99 commit 06526fa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ Dropping a requirement of a major version of a dependency is a new contract.
## [Unreleased]
[Unreleased]: https://github.com/atlassian/jira-actions/compare/release-3.21.2...master

### Added
- Expose filtering for all JQLs currently created by `AdaptiveJqlMemory`. Unblock [JPERF-1395].

[JPERF-1395]: https://ecosystem.atlassian.net/browse/JPERF-1395

## [3.22.0] - 2023-09-14
[3.22.0]: https://github.com/atlassian/jira-actions/compare/release-3.21.2...release-3.22.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ class AdaptiveJqlMemory(
}
fun JqlMemory.changelog() = filterJqls { tag -> tag == BuiltInJQL.REPORTERS.name }
fun JqlMemory.wildcard() = filterJqls { tag -> tag == BuiltInJQL.GENERIC_WIDE.name }
fun JqlMemory.resolved() = filterJqls { tag -> tag == BuiltInJQL.RESOLVED.name }
fun JqlMemory.unresolved() = filterJqls { tag -> tag == BuiltInJQL.UNRESOLVED.name }
fun JqlMemory.priorities() = filterJqls { tag -> tag == BuiltInJQL.PRIORITIES.name }
fun JqlMemory.project() = filterJqls { tag -> tag == BuiltInJQL.PROJECT.name }
fun JqlMemory.assignee() = filterJqls { tag -> tag == BuiltInJQL.ASSIGNEE.name }
fun JqlMemory.projectAssignee() = filterJqls { tag -> tag == BuiltInJQL.PROJECT_ASSIGNEE.name }
fun JqlMemory.givenWord() = filterJqls { tag -> tag == BuiltInJQL.GIVEN_WORD.name }

private fun JqlMemory.filterJqls(
tagFilter: (String) -> Boolean
Expand Down

0 comments on commit 06526fa

Please sign in to comment.