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

202: updated pagy to 6.0.4, updated config/initializers/pagy file #203

Merged
merged 4 commits into from
Sep 19, 2023

Conversation

Janell-Huyck
Copy link
Contributor

Fixes #202

Reference: the pagy change logs for version 5.0.0

There was a breaking change for us in moving from pagy version 3.11.0 to version 6.0.4. Upon migrating from 4.11.0 to 5.0.0, support had been removed for the deprecated variable Pagy::VARS. Instead, it had been renamed to Pagy::DEFAULT. We had used Pagy::VARS in our config/initializers/pagy.rb file, so when we were attempting to migrate to 6.0.4, we were unable to successfully initialize anything that used pagy.

This PR:

  • Replaces Pagy::VARS with Pagy::DEFAULT in the pagy.rb file
  • Updates pagy in the gemfile to ~> 6.0.4.
  • Runs "bundle update" after updating pagy.
  • Adds tests for controllers/application_controller.rb (the only time we call Pagy::Backend)
  • Adds tests for helpers/application_helper.rb (the only time we call Pagy::Frontend)

@Janell-Huyck Janell-Huyck changed the title updated pagy to 6.0.4, updated config/initializers/pagy file 200: updated pagy to 6.0.4, updated config/initializers/pagy file Sep 12, 2023
@Janell-Huyck Janell-Huyck changed the title 200: updated pagy to 6.0.4, updated config/initializers/pagy file 202: updated pagy to 6.0.4, updated config/initializers/pagy file Sep 12, 2023
@crowesn
Copy link
Contributor

crowesn commented Sep 13, 2023

Sorry, this needs to rebase over qa.

@crowesn crowesn self-assigned this Sep 13, 2023
@Janell-Huyck Janell-Huyck force-pushed the 202-update-pagy-to-6-0-4 branch from 2675c98 to 3a9abf9 Compare September 14, 2023 19:23
@Janell-Huyck
Copy link
Contributor Author

Rebased from qa

@Janell-Huyck Janell-Huyck force-pushed the 202-update-pagy-to-6-0-4 branch from 3a9abf9 to 0e20965 Compare September 19, 2023 18:12
@Janell-Huyck
Copy link
Contributor Author

Rebased from qa (again)

Copy link
Contributor

@crowesn crowesn left a comment

Choose a reason for hiding this comment

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

Looks good, merging.

@crowesn crowesn merged commit 0d9228a into qa Sep 19, 2023
@crowesn crowesn deleted the 202-update-pagy-to-6-0-4 branch September 19, 2023 18:27
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.

Update Pagy - Dependabot failing
2 participants