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

Migrate to pagy completely for notes' pagination #8429

Merged
merged 3 commits into from
Oct 2, 2020

Conversation

avats-dev
Copy link
Member

In progress to #8426

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

This fully migrates notes to pagination with pagy along with #8326 .

Depends on #8428 , so that application_controller includes pagy as backend.

Reference :https://ddnexus.github.io/pagy/migration-guide

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!

@gitpod-io
Copy link

gitpod-io bot commented Sep 25, 2020

@codecov
Copy link

codecov bot commented Sep 25, 2020

Codecov Report

Merging #8429 into main will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #8429   +/-   ##
=======================================
  Coverage   81.87%   81.87%           
=======================================
  Files         101      101           
  Lines        5899     5899           
=======================================
  Hits         4830     4830           
  Misses       1069     1069           
Impacted Files Coverage Δ
app/controllers/notes_controller.rb 83.46% <100.00%> (ø)

@jywarren
Copy link
Member

Wow! Exciting here! What do you think went wrong on the tests? You might want to take a look at @Tlazypanda's PR at https://github.com/publiclab/plots2/pull/8428/files for any tips, as it was able to complete tests. Thank you!

@avats-dev
Copy link
Member Author

@jywarren done 🎉 , tests are passing now. Thanks.

@jywarren
Copy link
Member

jywarren commented Oct 2, 2020

Awesome! Great work!!!!

Copy link
Member

@jywarren jywarren left a comment

Choose a reason for hiding this comment

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

Nicely done!!!

@jywarren jywarren merged commit 3307d0a into publiclab:main Oct 2, 2020
@avats-dev avats-dev deleted the notes-pagy-migration branch October 2, 2020 23:13
shubhangikori pushed a commit to shubhangikori/plots2 that referenced this pull request Oct 12, 2020
* Add .deepsource.toml

* Delete .deepsource.toml

* migrate to pagy for notes

Co-authored-by: DeepSource Bot <bot@deepsource.io>
alvesitalo pushed a commit to alvesitalo/plots2 that referenced this pull request Oct 14, 2020
* Add .deepsource.toml

* Delete .deepsource.toml

* migrate to pagy for notes

Co-authored-by: DeepSource Bot <bot@deepsource.io>
piyushswain pushed a commit to piyushswain/plots2 that referenced this pull request Oct 22, 2020
* Add .deepsource.toml

* Delete .deepsource.toml

* migrate to pagy for notes

Co-authored-by: DeepSource Bot <bot@deepsource.io>
manchere pushed a commit to manchere/plots2 that referenced this pull request Feb 13, 2021
* Add .deepsource.toml

* Delete .deepsource.toml

* migrate to pagy for notes

Co-authored-by: DeepSource Bot <bot@deepsource.io>
lagunasmel pushed a commit to lagunasmel/plots2 that referenced this pull request Mar 2, 2021
* Add .deepsource.toml

* Delete .deepsource.toml

* migrate to pagy for notes

Co-authored-by: DeepSource Bot <bot@deepsource.io>
reginaalyssa pushed a commit to reginaalyssa/plots2 that referenced this pull request Oct 16, 2021
* Add .deepsource.toml

* Delete .deepsource.toml

* migrate to pagy for notes

Co-authored-by: DeepSource Bot <bot@deepsource.io>
ampwang pushed a commit to ampwang/plots2 that referenced this pull request Oct 26, 2021
* Add .deepsource.toml

* Delete .deepsource.toml

* migrate to pagy for notes

Co-authored-by: DeepSource Bot <bot@deepsource.io>
billymoroney1 pushed a commit to billymoroney1/plots2 that referenced this pull request Dec 28, 2021
* Add .deepsource.toml

* Delete .deepsource.toml

* migrate to pagy for notes

Co-authored-by: DeepSource Bot <bot@deepsource.io>
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.

3 participants