Fix search for pinned notebooks (#12719) (#12766)

* fix search for pinned notebooks

* fix filtering when verifying that a search folder is not a subdirectory from the current folder queries path

* Show book node on pinned notebooks search results

* fix parent node on pinned notebooks search results

* fix search for pinned notebook and modify how pinned notebooks are stored in workspace

* update format of pinned notebooks for users that used the september release version

* removed unused functions

* Address PR comments

* fix parent node for legacy version of jupyter books

* remove cast from book path
This commit is contained in:
Barbara Valdez
2020-10-06 13:38:39 -07:00
committed by GitHub
parent b054295eac
commit 35957cc283
10 changed files with 89 additions and 47 deletions

View File

@@ -340,7 +340,7 @@ describe('Utils Tests', function () {
describe('getPinnedNotebooks', function (): void {
it('Should NOT have any pinned notebooks', async function (): Promise<void> {
let pinnedNotebooks: string[] = utils.getPinnedNotebooks();
let pinnedNotebooks: utils.IBookNotebook[] = utils.getPinnedNotebooks();
should(pinnedNotebooks.length).equal(0, 'Should not have any pinned notebooks');
});