From 8709518cd7e4cbfd3dc7d494f3be24759e06e45a Mon Sep 17 00:00:00 2001 From: Robert McRackan Date: Wed, 6 Nov 2019 08:40:32 -0500 Subject: [PATCH] hide lucene debug search string --- InternalUtilities/UNTESTED/AudibleApiActions.cs | 2 +- InternalUtilities/UNTESTED/AudibleApiExtensions.cs | 2 +- LibationWinForm/UNTESTED/Form1.cs | 14 +++++++------- LibationWinForm/UNTESTED/ProductsGrid.cs | 3 ++- __TODO.txt | 3 ++- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/InternalUtilities/UNTESTED/AudibleApiActions.cs b/InternalUtilities/UNTESTED/AudibleApiActions.cs index 4e7f28fc..8b12e2ea 100644 --- a/InternalUtilities/UNTESTED/AudibleApiActions.cs +++ b/InternalUtilities/UNTESTED/AudibleApiActions.cs @@ -46,7 +46,7 @@ namespace InternalUtilities // foreach (var childId in childIds) // { // var bookResult = await api.GetLibraryBookAsync(childId, AudibleApi.LibraryOptions.ResponseGroupOptions.ALL_OPTIONS); - // var bookItem = AudibleApiDTOs.LibraryApiV10.FromJson(bookResult.ToString()).Item; + // var bookItem = AudibleApiDTOs.LibraryDtoV10.FromJson(bookResult.ToString()).Item; // items.Add(bookItem); // } #endregion diff --git a/InternalUtilities/UNTESTED/AudibleApiExtensions.cs b/InternalUtilities/UNTESTED/AudibleApiExtensions.cs index 0cb61210..029116d6 100644 --- a/InternalUtilities/UNTESTED/AudibleApiExtensions.cs +++ b/InternalUtilities/UNTESTED/AudibleApiExtensions.cs @@ -28,7 +28,7 @@ namespace InternalUtilities }); // important! use this convert method - var libResult = LibraryApiV10.FromJson(page.ToString()); + var libResult = LibraryDtoV10.FromJson(page.ToString()); if (!libResult.Items.Any()) break; diff --git a/LibationWinForm/UNTESTED/Form1.cs b/LibationWinForm/UNTESTED/Form1.cs index d361520c..e46f4032 100644 --- a/LibationWinForm/UNTESTED/Form1.cs +++ b/LibationWinForm/UNTESTED/Form1.cs @@ -55,17 +55,17 @@ namespace LibationWinForm } #region bottom: qty books visible - public void SetVisibleCount(int qty, string str = null) + public void SetVisibleCount(int qty, string luceneSearchString = null) { visibleCountLbl.Text = string.Format(visibleCountLbl_Format, qty); - if (!string.IsNullOrWhiteSpace(str)) - visibleCountLbl.Text += " | " + str; - } - #endregion + //if (!string.IsNullOrWhiteSpace(luceneSearchString)) + // visibleCountLbl.Text += " | " + luceneSearchString; + } + #endregion - #region bottom: backup counts - private async Task setBackupCountsAsync() + #region bottom: backup counts + private async Task setBackupCountsAsync() { var books = LibraryQueries.GetLibrary_Flat_NoTracking() .Select(sp => sp.Book) diff --git a/LibationWinForm/UNTESTED/ProductsGrid.cs b/LibationWinForm/UNTESTED/ProductsGrid.cs index 243abf74..031a0b3c 100644 --- a/LibationWinForm/UNTESTED/ProductsGrid.cs +++ b/LibationWinForm/UNTESTED/ProductsGrid.cs @@ -266,9 +266,10 @@ namespace LibationWinForm } currencyManager.ResumeBinding(); + var luceneSearchString_debug = searchResults.SearchString; // after applying filters, display new visible count - parent.SetVisibleCount(dataGridView.Rows.Cast().Count(r => r.Visible), searchResults.SearchString); + parent.SetVisibleCount(dataGridView.Rows.Cast().Count(r => r.Visible), luceneSearchString_debug); } #endregion diff --git a/__TODO.txt b/__TODO.txt index 7a7319a6..11a99eea 100644 --- a/__TODO.txt +++ b/__TODO.txt @@ -23,7 +23,8 @@ use pdf icon with and without and X over it to indicate status -- begin ENHANCEMENT, GET LIBRARY --------------------------------------------------------------------------------------------------------------------- Audible API. GET /1.0/library , GET /1.0/library/{asin} -TONS of expensive conversion: GetLibraryAsync > string > JObject > string > LibraryApiV10 +TONS of expensive conversion: GetLibraryAsync > string > JObject > string > LibraryDtoV10 +same for GetLibraryBookAsync > ... > BookDtoV10 -- end ENHANCEMENT, GET LIBRARY --------------------------------------------------------------------------------------------------------------------- -- begin ENHANCEMENT, DEBUGGING ---------------------------------------------------------------------------------------------------------------------