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

When you delete a post in dataview, the total number of posts is not updated #3326

Closed
Angamanga opened this issue Oct 10, 2018 · 17 comments · Fixed by ushahidi/platform-client#1443
Labels
Bug Codebase: Client Indicates issue work will be in client Community Task Issues that the Ushahidi OSS community is encouraged to contribute to good-first-issue Issues that are ideal for first time contributors to OSS or first time contributing to the platform Theme: Data View

Comments

@Angamanga
Copy link
Contributor

Angamanga commented Oct 10, 2018

Problem
If I delete a post in dataview the total number of posts displayed on the top still remains the same (for example, before deleting: "20 of 20 posts". After deleting: "19 of 20 posts"

Reproduce the bug

  1. Go to dataview, note how many posts are displayed in top of the list.
  2. Delete one post
  3. Note how many posts are displayed in the top of the list.

Implementation notes

Want to work on this issue?🙋

Comment below. If someone else has claimed it, ask if they've opened a pull request already and if they're stuck -- maybe you can help them solve a problem or move it along!

@Angamanga Angamanga added Bug Hacktoberfest Issues open to folks participating in hacktoberfest labels Oct 10, 2018
@rowasc rowasc added Community Task Issues that the Ushahidi OSS community is encouraged to contribute to and removed Community Task Issues that the Ushahidi OSS community is encouraged to contribute to labels Oct 29, 2018
@Angamanga Angamanga added good-first-issue Issues that are ideal for first time contributors to OSS or first time contributing to the platform and removed Hacktoberfest Issues open to folks participating in hacktoberfest labels Mar 14, 2019
@sargamm
Copy link

sargamm commented Mar 18, 2019

Hey! I am Sargam, an outreachy applicant. I would like to go ahead with this issue. Thanks:)

@Angamanga
Copy link
Contributor Author

@FabSar Please go ahead! Just comment here if you need guidance!

@sargamm
Copy link

sargamm commented Mar 23, 2019

hey! I was setting up the environment all this time. Since it's done now, Can you help me get started with the issue? Like where do i look for the code of the dataview section. Thanks!

@Angamanga
Copy link
Contributor Author

@sargamm
Copy link

sargamm commented Mar 23, 2019

okay thanks a lot!

@Angamanga Angamanga added the Codebase: Client Indicates issue work will be in client label Apr 29, 2019
@tharveypa
Copy link

@FabSar is this issue available, or are you still working? Thanks

@rowasc
Copy link
Contributor

rowasc commented Aug 16, 2019

Hi. @FabSar is this issue available, or are you still working? let us know if you need some help.
Thanks!

@rowasc rowasc added the Hacktoberfest Issues open to folks participating in hacktoberfest label Sep 28, 2019
@AlanaFarkas
Copy link

I cannot replicate this issue locally, has this been fixed?

@rowasc
Copy link
Contributor

rowasc commented Nov 15, 2019

I was able to repro.
I had 21 posts, deleted one. Then the count is showing "19 of 21 posts" 🤔
Screen Shot 2019-11-15 at 14 49 43

@rowasc
Copy link
Contributor

rowasc commented Nov 15, 2019

Slightly better image sequence, sorry:
2 of 2 posts (correct)
Screen Shot 2019-11-15 at 14 51 35

Deleted 1 (Count: 1 of 2. Incorrect) <- this is the error
Screen Shot 2019-11-15 at 14 51 38

Clicked data view again/reloaded (1 of 1 - correct again)
Screen Shot 2019-11-15 at 14 51 42

@AlanaFarkas
Copy link

AlanaFarkas commented Nov 15, 2019

Just opened a PR for this, here: ushahidi/platform-client#1365

@rohit645
Copy link

rohit645 commented Feb 7, 2020

I am able to replicate this issue locally, @rowasc can i work on this issue?

@Angamanga
Copy link
Contributor Author

@rohit645 Thank you for your interest in contributing, please go ahead and work on this and don't hesitate to reach out if you need further guidance!

@Angamanga Angamanga added GSoC and removed Hacktoberfest Issues open to folks participating in hacktoberfest labels Mar 4, 2020
@Angamanga
Copy link
Contributor Author

@rohit645 How is it going, are you still working on this? Please let me know if you need any guidance!

@rohit645
Copy link

rohit645 commented Mar 4, 2020

@Angamanga, I am trying to figure it out. I will be in touch shortly.

@Angamanga
Copy link
Contributor Author

Angamanga commented Mar 16, 2020

@Obadha2 Could you QA in Steve Buscemi?
Test-checklist:

  1. Go to dataview, note how many posts are displayed in top of the list.
  2. Delete one post
  • Note how many posts are displayed in the top of the list, it should be the total posts minus 1

@AmTryingMyBest
Copy link
Contributor

QA'd, passes. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Codebase: Client Indicates issue work will be in client Community Task Issues that the Ushahidi OSS community is encouraged to contribute to good-first-issue Issues that are ideal for first time contributors to OSS or first time contributing to the platform Theme: Data View
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants