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

bulk deleting function doesn't work #3292

Closed
jostyee opened this issue Jan 1, 2024 · 22 comments
Closed

bulk deleting function doesn't work #3292

jostyee opened this issue Jan 1, 2024 · 22 comments
Assignees
Labels

Comments

@jostyee
Copy link

jostyee commented Jan 1, 2024

On the web app, select multiple items and click the delete button
image

it says 'Items deleted' but none of them get deleted actually.

@jacksonh
Copy link
Contributor

jacksonh commented Jan 2, 2024

Are they still there if you refresh?

@jacksonh jacksonh self-assigned this Jan 2, 2024
@jacksonh jacksonh added the Web label Jan 2, 2024
@jostyee
Copy link
Author

jostyee commented Jan 2, 2024

Are they still there if you refresh?

yes there are, it's been over 2days and I've tried countless times:

  1. use custom query to find out the items I don't want any more
  2. select all or multiple
  3. click the delete button
  4. refresh webpage, nothing changes

@jacksonh
Copy link
Contributor

jacksonh commented Jan 2, 2024

Do you mind opening the developer console and looking for any errors? Both on the console tab and the network tab? If there is anything private you can either obscure it in the screenshot or send through the feedback tool

@jacksonh
Copy link
Contributor

jacksonh commented Jan 2, 2024

Thanks, it does look like everything went right there. Can you also try just a simple search like in:inbox with no label filters or anything to see if the items display?

@jacksonh
Copy link
Contributor

jacksonh commented Jan 2, 2024

Going to assign this one to @sywhb to look into more. Based on the data here I do see the correct call being made, but the library item status not being updated on the backend.

@omnivore-app omnivore-app deleted a comment from jostyee Jan 2, 2024
@jacksonh
Copy link
Contributor

jacksonh commented Jan 2, 2024

Going to delete this HAR file too as it includes some authentication info

@jostyee
Copy link
Author

jostyee commented Jan 2, 2024

Thanks, it does look like everything went right there. Can you also try just a simple search like in:inbox with no label filters or anything to see if the items display?

it works for in:inbox

@jacksonh
Copy link
Contributor

jacksonh commented Jan 2, 2024

@jostyee thanks. Can you add the search query here that isn't working?

@jostyee
Copy link
Author

jostyee commented Jan 2, 2024

@jacksonh the query is in:archive author:admin , ty.

@jacksonh
Copy link
Contributor

jacksonh commented Jan 2, 2024

I think maybe the core error here is no:label creates an exception with our new search parser. /cc @sywhb

@jostyee
Copy link
Author

jostyee commented Jan 2, 2024

@jacksonh I don't think so, see my updated reply #3292 (comment) w/o no:label the function doesn't work, neither.

@sywhb sywhb self-assigned this Jan 2, 2024
@sywhb
Copy link
Contributor

sywhb commented Jan 3, 2024

hey @jacksonh, the delete function was failed because a recent change we made (default scope is in:inbox instead of in:all) and @jostyee was trying to delete items from archive folder so the params of the api were includes:id which converts to in:inbox includes:id and then no items were actually deleted

@jacksonh
Copy link
Contributor

jacksonh commented Jan 3, 2024

ahhh so on the web client i should change this, taking a look at it now

@sywhb
Copy link
Contributor

sywhb commented Jan 3, 2024

i think we probably should revert this change so defaults to in:all if no folder is defined but it creates some other problems with saved searches like no:label or type:file which we want to show only unarchived items

@sywhb
Copy link
Contributor

sywhb commented Jan 3, 2024

ahhh so on the web client i should change this, taking a look at it now

no, it's something i changed in the backend here #3276

@jacksonh
Copy link
Contributor

jacksonh commented Jan 3, 2024

Hmm, yeah i do think that patch is correct but we probably need to update defaults in a bunch of places.

@sywhb
Copy link
Contributor

sywhb commented Jan 3, 2024

Hmm, yeah i do think that patch is correct but we probably need to update defaults in a bunch of places.

oh okay. like when you selected multiple items, the query should be in:all includes:id1,id2

@jacksonh
Copy link
Contributor

jacksonh commented Jan 3, 2024

Yeah, or maybe whenever includes is used we should use in:all

@sywhb
Copy link
Contributor

sywhb commented Jan 3, 2024

Yeah, or maybe whenever includes is used we should use in:all

yeah, sounds right

@jostyee
Copy link
Author

jostyee commented Jan 3, 2024

Yeah, or maybe whenever includes is used we should use in:all

should be, otherwise tabs such as highlights won't show archive items, and I have to adjust the Obsidian sync plugin query to fetch them.

@sywhb
Copy link
Contributor

sywhb commented Jan 3, 2024

@jostyee, we just fixed this. could you please check again?

@jostyee
Copy link
Author

jostyee commented Jan 3, 2024

@sywhb confirmed fixed, thank you again.

@jostyee jostyee closed this as completed Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants