Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search result with tasks and notes #4581

Closed
ghost opened this issue Feb 22, 2021 · 8 comments
Closed

Search result with tasks and notes #4581

ghost opened this issue Feb 22, 2021 · 8 comments
Labels
bug It's a bug

Comments

@ghost
Copy link

ghost commented Feb 22, 2021

A search with a query like notebook:notebook1 give as result, notes and tasks completed and not completed.

Tasks completed are also shown if the option “show completed to-dos” is unchecked.

The filter iscompleted:0 is not useful because in this case notes are not visible.

Environment

Joplin version: 1.7.11
Platform: Windows
OS specifics: Win10

Steps to reproduce

  1. Add notes and tasks checked and unchecked in your notebook1
  2. Be sure the option “show completed to-dos” is unchecked (View menu)
  3. Type this query in the search field : notebook:notebook1

Describe what you expected to happen

Not show completed tasks when “show completed to-dos” is unchecked.

@ghost ghost added the bug It's a bug label Feb 22, 2021
@nishantwrp
Copy link
Contributor

@laurent22, Can I work on this issue? Also, can you please confirm that it is a valid bug and this behaviour is not intentional?

@laurent22
Copy link
Owner

I don't know, for now we're only trying to fix issues that have been triaged, so which have additional labels like "high" or "medium".

@ghost
Copy link
Author

ghost commented Mar 12, 2021

Perhaps this issue fix from naviji could help for this bug.

arpitg24 added a commit to arpitg24/joplin that referenced this issue Mar 12, 2021
@arpitg24
Copy link

I have fixed the issue, I'll make a PR shortly after I finish running the test units :)

@arpitg24
Copy link

arpitg24 commented Mar 17, 2021

I'm facing this issue in lib/services/searchengine/SearchEngineUtils.ts
In line 42 I added:

for (let i = 0; i < notes.length; i++) {
        if(!notes[i].todo_completed){      // added this if statement
          const idx = noteIds.indexOf(notes[i].id);
          sortedNotes[idx] = notes[i];
          if (idWasAutoAdded) delete sortedNotes[idx].id;
      	}
}

I get the error:TypeError: Cannot read property 'encryption_applied' of undefined
when i search for something.
I cant figure out what the issue is here.

@stale
Copy link

stale bot commented Apr 18, 2021

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.

@stale stale bot added stale An issue that hasn't been active for a while... and removed stale An issue that hasn't been active for a while... labels Apr 18, 2021
@ghost
Copy link
Author

ghost commented Apr 19, 2021

Yes

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.

@ghost
Copy link
Author

ghost commented May 14, 2021

Thank you @JackGruber 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug
Projects
None yet
3 participants