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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced paginate for pagy in comments #8599

Merged
merged 2 commits into from
Oct 19, 2020
Merged

Replaced paginate for pagy in comments #8599

merged 2 commits into from
Oct 19, 2020

Conversation

stacytonui
Copy link
Contributor

@stacytonui stacytonui commented Oct 16, 2020

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

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!

@stacytonui stacytonui requested a review from a team as a code owner October 16, 2020 20:07
@gitpod-io
Copy link

gitpod-io bot commented Oct 16, 2020

.order('timestamp DESC')
.where('node.status = ?', 1)
.paginate(page: params[:page], per_page: 30)
.where('node.status = ?', 1), items:30)
Copy link

Choose a reason for hiding this comment

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

Space missing after colon.

@codecov
Copy link

codecov bot commented Oct 16, 2020

Codecov Report

Merging #8599 into main will increase coverage by 0.11%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #8599      +/-   ##
==========================================
+ Coverage   81.76%   81.88%   +0.11%     
==========================================
  Files         101      101              
  Lines        5901     5901              
==========================================
+ Hits         4825     4832       +7     
+ Misses       1076     1069       -7     
Impacted Files Coverage 螖
app/controllers/comment_controller.rb 86.95% <100.00%> (酶)
app/api/srch/search.rb 70.70% <0.00%> (+3.82%) 猬嗭笍
app/services/execute_search.rb 94.44% <0.00%> (+5.55%) 猬嗭笍

@codeclimate
Copy link

codeclimate bot commented Oct 16, 2020

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

View more on Code Climate.

@stacytonui
Copy link
Contributor Author

Hello @Tlazypanda, I replaced paginate for pagy in comments as well, hope that's okay. Kindly review it if it's okay

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.

@stacytonui LGTM! 馃帀

@cesswairimu cesswairimu merged commit e03f05e into publiclab:main Oct 19, 2020
@cesswairimu
Copy link
Collaborator

Thanks you both 馃帀

piyushswain pushed a commit to piyushswain/plots2 that referenced this pull request Oct 22, 2020
* Replaced paginate for pagy

* Replaced paginate for pagy
manchere pushed a commit to manchere/plots2 that referenced this pull request Feb 13, 2021
* Replaced paginate for pagy

* Replaced paginate for pagy
lagunasmel pushed a commit to lagunasmel/plots2 that referenced this pull request Mar 2, 2021
* Replaced paginate for pagy

* Replaced paginate for pagy
reginaalyssa pushed a commit to reginaalyssa/plots2 that referenced this pull request Oct 16, 2021
* Replaced paginate for pagy

* Replaced paginate for pagy
ampwang pushed a commit to ampwang/plots2 that referenced this pull request Oct 26, 2021
* Replaced paginate for pagy

* Replaced paginate for pagy
billymoroney1 pushed a commit to billymoroney1/plots2 that referenced this pull request Dec 28, 2021
* Replaced paginate for pagy

* Replaced paginate for pagy
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.

Migrate to pagy
3 participants