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

Fix double pagination on tags questions #8689

Merged
merged 5 commits into from
Dec 1, 2020

Conversation

Cadreia
Copy link
Contributor

@Cadreia Cadreia commented Oct 28, 2020

Fixes #8674 (<=== Add issue number here)

fix-double-pagination

Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!

  • PR is descriptively titled 📑 and links the original issue above 🔗
  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with rake test
  • code is in uniquely-named feature branch and has no merge conflicts 📁
  • screenshots/GIFs are attached 📎 in case of UI updation
  • ask @publiclab/reviewers for help, in a comment below

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If tests do fail, click on the red X to learn why by reading the logs.

Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software

Thanks!

@Cadreia Cadreia requested a review from a team as a code owner October 28, 2020 15:38
@gitpod-io
Copy link

gitpod-io bot commented Oct 28, 2020

@codecov
Copy link

codecov bot commented Oct 28, 2020

Codecov Report

Merging #8689 (a4bb376) into main (903a162) will increase coverage by 0.07%.
The diff coverage is 96.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #8689      +/-   ##
==========================================
+ Coverage   81.85%   81.92%   +0.07%     
==========================================
  Files         100      100              
  Lines        5901     5930      +29     
==========================================
+ Hits         4830     4858      +28     
- Misses       1071     1072       +1     
Impacted Files Coverage Δ
app/models/node.rb 91.47% <92.30%> (+0.01%) ⬆️
app/controllers/notes_controller.rb 84.46% <100.00%> (+0.93%) ⬆️
app/models/revision.rb 88.29% <100.00%> (+0.12%) ⬆️

@Cadreia
Copy link
Contributor Author

Cadreia commented Oct 28, 2020

@cesswairimu please is there any way I can narrow down on which functional tests are failing? It's been kind of challenging since the application builds locally without any errors

Copy link
Collaborator

@Tlazypanda Tlazypanda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Cadreia You can find the tests failing by checking the travis logs 😅 Click on the details link next to the travis pull request check and then navigate to functional tests For example your run is accessible here https://travis-ci.com/github/publiclab/plots2/jobs/414753485 So from this log you can see that the should_have_a_active_asked_and_an_inactive_answered_tab_for_question and wildcard_tag_should_have_a_active_asked_and_an_inactive_answered_tab_for_question tests are failing

@Cadreia
Copy link
Contributor Author

Cadreia commented Oct 28, 2020

Thank you @Tlazypanda. I'll get back to you if I face any further difficulties

@cesswairimu
Copy link
Collaborator

Did you manage to see the errors? here is an image
Screenshot from 2020-10-30 18-12-38

@jywarren
Copy link
Member

jywarren commented Nov 5, 2020

Oh no! It looks like this and #8479 (comment) are both setting out to fix the same issue. @tyler-wel @Cadreia would you be able to work together to resolve this, or perhaps as @Cadreia has more recently been working on it, @Cadreia would like to take this one on?

I'm sorry we didn't notice the overlap sooner - thank you for all your work, both of you!

@tyler-wel
Copy link
Contributor

Oh no! It looks like this and #8479 (comment) are both setting out to fix the same issue. @tyler-wel @Cadreia would you be able to work together to resolve this, or perhaps as @Cadreia has more recently been working on it, @Cadreia would like to take this one on?

I'm sorry we didn't notice the overlap sooner - thank you for all your work, both of you!

I'm fine with Cadreia taking oevr!

@jywarren
Copy link
Member

jywarren commented Nov 9, 2020

OK, thank you and I appreciate your understanding ❤️

@Cadreia just notifying you too!

@Cadreia
Copy link
Contributor Author

Cadreia commented Nov 10, 2020 via email

@codeclimate
Copy link

codeclimate bot commented Nov 18, 2020

Code Climate has analyzed commit a8eda74 and detected 0 issues on this pull request.

View more on Code Climate.

@Cadreia
Copy link
Contributor Author

Cadreia commented Nov 18, 2020

Hi, @jywarren. I succeeded in getting the tests to pass for this. Can you please review it?

@cesswairimu
Copy link
Collaborator

@Cadreia I am getting 502 on gitpod..not sure why...do you minding adding a screenshot for this?
thanks for working on this 🎉

@Cadreia
Copy link
Contributor Author

Cadreia commented Nov 23, 2020

Hi, @cesswairimu. I just opened this on gitpod, and I didn't come across a 502 error.
I added a screenshot in the PR description. Or would you prefer I include a gif instead?

@cesswairimu
Copy link
Collaborator

Hi @Cadreia , the screenshot is fine. Its late over here, I will take a look tomorrow. Thanks

@jywarren
Copy link
Member

jywarren commented Dec 1, 2020

This looks perfect, thank you!!!!

@jywarren jywarren merged commit fcc6820 into publiclab:main Dec 1, 2020
manchere pushed a commit to manchere/plots2 that referenced this pull request Feb 13, 2021
* fixed double pagination on tags questions

* fix double pagination

* pass tests
lagunasmel pushed a commit to lagunasmel/plots2 that referenced this pull request Mar 2, 2021
* fixed double pagination on tags questions

* fix double pagination

* pass tests
reginaalyssa pushed a commit to reginaalyssa/plots2 that referenced this pull request Oct 16, 2021
* fixed double pagination on tags questions

* fix double pagination

* pass tests
billymoroney1 pushed a commit to billymoroney1/plots2 that referenced this pull request Dec 28, 2021
* fixed double pagination on tags questions

* fix double pagination

* pass tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Double pagination on tags questions
5 participants