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

Duplicate pages - "Succesfully marked for deletion" toaster showing incorrect page count. #287

Closed
bareheiny opened this issue Jun 2, 2020 · 7 comments
Assignees
Labels
bug Something isn't working duplication Issues relating to content duplication, such as pages and comics.
Milestone

Comments

@bareheiny
Copy link

Actions:

  1. Navigate to Duplicate Pages page.
  2. Select any single image, and mark it for deletion (noting the number of pages to be deleted)
  3. Note the confirmation toaster indicates every duplicate page is to be deleted.
  4. Hover over duplicate pages that were not selected for deletion, and note that they have not been marked for deletion.

Expected result:

The confirmation toaster should only indicate that the selected pages are to be deleted.

This also applies for unmarking. The steps are essentially the same, but select a page that was marked for deletion - the confirmation toaster will indicate that all duplicate pages were succesfully unmarked.

@mcpierce mcpierce added bug Something isn't working duplication Issues relating to content duplication, such as pages and comics. labels Jun 2, 2020
@mcpierce mcpierce added this to the 0.6 milestone Jun 2, 2020
@mcpierce
Copy link
Contributor

mcpierce commented Jun 2, 2020

The issue is that the toaster is showing the number of duplicate pages in the system rather than the number of pages just marked as deleted. So if there are nine duplicate pages, and you mark one that shows up 100 times in your library, the toaster will say that it marked nine pages for deletion.

@bareheiny
Copy link
Author

I had a different experience.

I have ~222 duplicate pages, not sure of the distinct count. I marked one page (that appeared three times) for deletion. The toaster said that ~222 pages were marked for deletion (or unmarked depending on what I was doing).

@mcpierce
Copy link
Contributor

mcpierce commented Jun 2, 2020

@bareheiny Yeah, that 222 is the number of uniquely duplicate (there's an oxymoron) pages in your library. That popup is using that number instead of the number of times the page you just marked occurs.

@mcpierce mcpierce self-assigned this Jun 3, 2020
mcpierce added a commit to mcpierce/comixed that referenced this issue Jun 3, 2020
mcpierce added a commit that referenced this issue Jun 3, 2020
* Changes the toaster messages when marking duplicate pages [#287]

* Changed the captions displayed on duplicate pages [#287]
@mcpierce
Copy link
Contributor

mcpierce commented Jun 3, 2020

@bareheiny This is fixed on develop and will show up in the next 0.6 release. Please close this when you have a chance to verify things.

mcpierce added a commit that referenced this issue Jun 3, 2020
* Changes the toaster messages when marking duplicate pages [#287]

* Changed the captions displayed on duplicate pages [#287]
@bareheiny
Copy link
Author

bareheiny commented Jun 4, 2020

Just confirming that the change removes the reference to the page count? So now the toaster only says something like "pages successfully marked for deletion", rather than "x pages were successfully marked for deletion"?

@mcpierce
Copy link
Contributor

mcpierce commented Jun 4, 2020

@bareheiny That's correct. Since the request is marking more than one page hash as deleted (and the same for the blocking code), and the response is the list of all duplicate pages, there's no easy way right now for it to decide how many of those pages were changed.

@bareheiny
Copy link
Author

All good.

Closing now :)

mcpierce added a commit that referenced this issue Jun 22, 2020
* Changes the toaster messages when marking duplicate pages [#287]

* Changed the captions displayed on duplicate pages [#287]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplication Issues relating to content duplication, such as pages and comics.
Projects
None yet
Development

No branches or pull requests

2 participants