From 7932316b9c2b8f4a2a64a350bac188797dbd0605 Mon Sep 17 00:00:00 2001 From: jankun4 Date: Thu, 4 Apr 2024 11:11:25 +0200 Subject: [PATCH] [#603] improve filter flexibility allow filtering GAs by their txHash and index Signed-off-by: jankun4 --- CHANGELOG.md | 1 + govtool/backend/src/VVA/API.hs | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94d503c25..8098eb8b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -66,6 +66,7 @@ changes. ### Changed +- `proposal/list` allows user to search by tx hash [Issue 603](https://github.com/IntersectMBO/govtool/issues/603) - `proposal/list` returns additional data such ass `expiryEpochNo`, `createdEpochNo`, `title`, `about`, `motivation`, `rationale`. `TreasuryWithdrawals` GAs also got nicely formated details. [Issue 372](https://github.com/IntersectMBO/govtool/issues/372) - `drep/list` now return also `status` and `type` fields. Also it now returns the retired dreps, and you can search for given drep by name using optional query parameter. If the drep name is passed exactly, then you can even find a drep that's sole voter. [Issue 446](https://github.com/IntersectMBO/govtool/issues/446) diff --git a/govtool/backend/src/VVA/API.hs b/govtool/backend/src/VVA/API.hs index 6072be08f..1f9233d32 100644 --- a/govtool/backend/src/VVA/API.hs +++ b/govtool/backend/src/VVA/API.hs @@ -256,6 +256,7 @@ listProposals selectedTypes sortMode mPage mPageSize mDrepRaw mSearchQuery = do || searchQuery `isInfixOf` about || searchQuery `isInfixOf` motivation || searchQuery `isInfixOf` rationale + || searchQuery `isInfixOf` ((unHexText proposalResponseTxHash) <> "#" <> (Text.pack $ show proposalResponseIndex)) pure result