Skip to content

chore(deps): bundle update && yarn upgrade and bump node-version in workflows#3601

Open
aaronskiba wants to merge 9 commits into
developmentfrom
aaron/chore/bump-deps
Open

chore(deps): bundle update && yarn upgrade and bump node-version in workflows#3601
aaronskiba wants to merge 9 commits into
developmentfrom
aaron/chore/bump-deps

Conversation

@aaronskiba

@aaronskiba aaronskiba commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Changes proposed in this PR:

Execute bundle update and resolve breaking changes

fix(devise): resolve v5 breaking changes

  • Update Devise error message rendering to account for the breaking change introduced in Devise 5.
  • The deprecated devise_error_messages! helper was removed, so views must render the devise/shared/error_messages partial directly.
    Address rubocop offences
  • bundle update bumped rubocop from 1.81.1 --> 1.88.2

Execute yarn upgrade and resolve breaking changes

fix: pin jquery-ui to 1.13.3 to avoid regression from 1.14.2 upgrade

  • Pin jquery-ui to 1.13.3 to prevent an unintended upgrade to 1.14.2.
  • Thejquery-ui 1.14.2 upgrade was introduced as part of running yarn upgrade.
    This version adds a dependency on jQuery 4, resulting in compatibility issues
    with the application's existing jQuery 3 dependency.
  • The upgrade caused feature specs to fail, including JSON parsing failures when
    submitting organisation links.
  • See jquery-ui 1.14.2 upgrade causes regressions after yarn upgrade #3600

ci: bump node to 20 and add .node-version file

  • Update all GitHub Actions workflows to Node.js 20 and consolidate version management into a .node-version file for consistency across CI and local development.
  • Previously, workflows ran with Node.js 18.20.8, which caused yarn install to fail after sass was upgraded to 1.101.1 due to an incompatible engine requirement.

Update Devise error message rendering to account for the breaking change introduced in Devise 5.

The deprecated `devise_error_messages!` helper was removed, so views must render the `devise/shared/error_messages` partial directly.
Revert the RuboCop autocorrection in ApplicationController that replaced
Array#any? with Array#intersect?.

The autocorrection was not equivalent because the original code checks
whether request.fullpath contains any of the configured paths using
String#include?, while Array#intersect? performs an array intersection
against matching elements.

Keep the original behavior of detecting matching URL substrings when
deciding whether to store the previous location.
app/controllers/application_controller.rb:
- Refactor the `store_location` path matching logic to use a regular expression instead of iterating over an array of paths.
- This preserves the existing behavior of checking whether request.fullpath contains one of the Devise authentication paths while avoiding the Style/ArrayIntersect RuboCop autocorrection, which was not equivalent for String#include? usage.
- No functional behavior changes are intended.

lib/tasks/upgrade.rake:
- Replace manual File.open/File.close handling with File.write in the `upgrade rake task`.
- This removes the possibility of file descriptor leaks and satisfies the Style/FileOpen RuboCop cop while keeping the file generation logic unchanged.

app/models/plan.rb
- Disable Metrics/BlockLength offence within `:for_api_v2` scope
Update all GitHub Actions workflows to Node.js 20 and consolidate version management into a `.node-version` file for consistency across CI and local development.

Previously, workflows ran with Node.js 18.20.8, which caused `yarn install` to fail after sass was upgraded to 1.101.1 due to an incompatible engine requirement.

- Removed explicit `node-version` from all workflow files
- Created .`node-version` file with version 20
- `actions/setup-node` automatically detects and uses `.node-version`
Pin jquery-ui to 1.13.3 to prevent an unintended upgrade to 1.14.2.

The jquery-ui 1.14.2 upgrade was introduced as part of running `yarn upgrade`.
This version adds a dependency on jQuery 4, resulting in compatibility issues
with the application's existing jQuery 3 dependency.

The upgrade caused feature specs to fail, including JSON parsing failures when
submitting organisation links.

Resolved failures:
- Plans User creates a new Plan
- SuperAdmins Orgs Super admin submits invalid data

The latter failed with:
JSON::ParserError: unexpected character: 'org' at line 1 column 1
@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown
1 Warning
⚠️ This PR is too big! Consider breaking it down into smaller PRs.

Generated by 🚫 Danger

@aaronskiba aaronskiba changed the title chore(deps): bump dependencies for next release chore(deps): bundle update && yarn upgrade Jul 17, 2026
@aaronskiba aaronskiba changed the title chore(deps): bundle update && yarn upgrade chore(deps): bundle update && yarn upgrade and bump node-version in workflows Jul 17, 2026
@aaronskiba
aaronskiba force-pushed the aaron/chore/bump-deps branch from 650ca48 to 9b60f40 Compare July 17, 2026 20:56
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.

1 participant