hide lucene debug search string

This commit is contained in:
Robert McRackan 2019-11-06 08:40:32 -05:00
parent 6aa544b322
commit 8709518cd7
5 changed files with 13 additions and 11 deletions

View File

@ -46,7 +46,7 @@ namespace InternalUtilities
// foreach (var childId in childIds) // foreach (var childId in childIds)
// { // {
// var bookResult = await api.GetLibraryBookAsync(childId, AudibleApi.LibraryOptions.ResponseGroupOptions.ALL_OPTIONS); // 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); // items.Add(bookItem);
// } // }
#endregion #endregion

View File

@ -28,7 +28,7 @@ namespace InternalUtilities
}); });
// important! use this convert method // important! use this convert method
var libResult = LibraryApiV10.FromJson(page.ToString()); var libResult = LibraryDtoV10.FromJson(page.ToString());
if (!libResult.Items.Any()) if (!libResult.Items.Any())
break; break;

View File

@ -55,12 +55,12 @@ namespace LibationWinForm
} }
#region bottom: qty books visible #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); visibleCountLbl.Text = string.Format(visibleCountLbl_Format, qty);
if (!string.IsNullOrWhiteSpace(str)) //if (!string.IsNullOrWhiteSpace(luceneSearchString))
visibleCountLbl.Text += " | " + str; // visibleCountLbl.Text += " | " + luceneSearchString;
} }
#endregion #endregion

View File

@ -266,9 +266,10 @@ namespace LibationWinForm
} }
currencyManager.ResumeBinding(); currencyManager.ResumeBinding();
var luceneSearchString_debug = searchResults.SearchString;
// after applying filters, display new visible count // after applying filters, display new visible count
parent.SetVisibleCount(dataGridView.Rows.Cast<DataGridViewRow>().Count(r => r.Visible), searchResults.SearchString); parent.SetVisibleCount(dataGridView.Rows.Cast<DataGridViewRow>().Count(r => r.Visible), luceneSearchString_debug);
} }
#endregion #endregion

View File

@ -23,7 +23,8 @@ use pdf icon with and without and X over it to indicate status
-- begin ENHANCEMENT, GET LIBRARY --------------------------------------------------------------------------------------------------------------------- -- begin ENHANCEMENT, GET LIBRARY ---------------------------------------------------------------------------------------------------------------------
Audible API. GET /1.0/library , GET /1.0/library/{asin} 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 --------------------------------------------------------------------------------------------------------------------- -- end ENHANCEMENT, GET LIBRARY ---------------------------------------------------------------------------------------------------------------------
-- begin ENHANCEMENT, DEBUGGING --------------------------------------------------------------------------------------------------------------------- -- begin ENHANCEMENT, DEBUGGING ---------------------------------------------------------------------------------------------------------------------