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)
// {
// 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

View File

@ -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;

View File

@ -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)

View File

@ -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<DataGridViewRow>().Count(r => r.Visible), searchResults.SearchString);
parent.SetVisibleCount(dataGridView.Rows.Cast<DataGridViewRow>().Count(r => r.Visible), luceneSearchString_debug);
}
#endregion

View File

@ -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 ---------------------------------------------------------------------------------------------------------------------