[arvados] updated: 2.7.0-6271-gf3abd1235b

git repository hosting git at public.arvados.org
Mon May 6 19:06:03 UTC 2024


Summary of changes:
 .../store/search-results-panel/search-results-middleware-service.ts    | 3 +++
 1 file changed, 3 insertions(+)

       via  f3abd1235b56b32d93c992dc376b895559af39ca (commit)
      from  97694d88b56881381aa2e30a5f7c222384289a96 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit f3abd1235b56b32d93c992dc376b895559af39ca
Author: Lisa Knox <lisaknox83 at gmail.com>
Date:   Mon May 6 15:05:53 2024 -0400

    21364: added comment for lastQuery var  Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>

diff --git a/services/workbench2/src/store/search-results-panel/search-results-middleware-service.ts b/services/workbench2/src/store/search-results-panel/search-results-middleware-service.ts
index 562b3126e8..866e148bcd 100644
--- a/services/workbench2/src/store/search-results-panel/search-results-middleware-service.ts
+++ b/services/workbench2/src/store/search-results-panel/search-results-middleware-service.ts
@@ -41,6 +41,9 @@ export class SearchResultsMiddlewareService extends DataExplorerMiddlewareServic
         const { cluster: clusterId } = getAdvancedDataFromQuery(searchValue);
         const sessions = getSearchSessions(clusterId, state.auth.sessions);
         const recentQueries = this.services.searchService.getRecentQueries();
+        //the last query is compared to the current query to check if the value has changed
+        //once the search button is clicked, the value is pushed to the recentQueries array
+        //therefore, the last query is the second to last element in the array 
         const lastQuery = recentQueries[recentQueries.length - 2];
 
         if (searchValue.trim() === '') {

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list