Skip to content

Updated Gin to 5.#162

Merged
AlexSkrypnyk merged 1 commit intodevelopfrom
feature/update-gin-5
Mar 26, 2026
Merged

Updated Gin to 5.#162
AlexSkrypnyk merged 1 commit intodevelopfrom
feature/update-gin-5

Conversation

@AlexSkrypnyk
Copy link
Copy Markdown
Member

@AlexSkrypnyk AlexSkrypnyk commented Mar 26, 2026

Summary by CodeRabbit

  • Chores
    • Updated Gin and Gin Toolbar package dependencies to newer versions.

@AlexSkrypnyk AlexSkrypnyk enabled auto-merge (rebase) March 26, 2026 06:32
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 26, 2026

📝 Walkthrough

Walkthrough

Updated Composer dependency constraints for two Drupal packages: drupal/gin upgraded from ^4.0.6 to ^5.0.12 and drupal/gin_toolbar upgraded from ^2 to ^3.0.3, allowing newer major versions of these dependencies.

Changes

Cohort / File(s) Summary
Dependency Version Updates
composer.json
Updated drupal/gin and drupal/gin_toolbar to newer major versions with updated constraint ranges.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Updated Gin to 5' directly matches the main change: upgrading drupal/gin from version 4 to version 5, which is the primary objective of this pull request.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/update-gin-5

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@config/default/ai.settings.yml`:
- Line 37: The YAML entry for allowed_hosts currently uses invalid spacing
"allowed_hosts: {  }"; update the mapping to use proper empty-map syntax by
replacing it with "allowed_hosts: {}" (no extra spaces inside the braces) so the
file lints correctly and the allowed_hosts mapping remains empty.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 7002b1ec-da64-4a35-82a3-07fe64ed1d1d

📥 Commits

Reviewing files that changed from the base of the PR and between 5dd5e3e and 4b38328.

⛔ Files ignored due to path filters (1)
  • composer.lock is excluded by !**/*.lock
📒 Files selected for processing (3)
  • composer.json
  • config/default/ai.settings.yml
  • config/default/entity_clone.cloneable_entities.yml

Comment thread config/default/ai.settings.yml Outdated
provider_id: openai
model_id: tts-1-hd
request_timeout: 60
allowed_hosts: { }
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Fix invalid empty-map spacing in YAML.

Line 37 uses allowed_hosts: { }, which fails YAML linting for empty braces spacing.

Proposed fix
-allowed_hosts: {  }
+allowed_hosts: {}
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
allowed_hosts: { }
allowed_hosts: {}
🧰 Tools
🪛 YAMLlint (1.38.0)

[error] 37-37: too many spaces inside empty braces

(braces)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@config/default/ai.settings.yml` at line 37, The YAML entry for allowed_hosts
currently uses invalid spacing "allowed_hosts: {  }"; update the mapping to use
proper empty-map syntax by replacing it with "allowed_hosts: {}" (no extra
spaces inside the braces) so the file lints correctly and the allowed_hosts
mapping remains empty.

@AlexSkrypnyk AlexSkrypnyk force-pushed the feature/update-gin-5 branch from 4b38328 to 561b60d Compare March 26, 2026 06:36
@github-actions

This comment has been minimized.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@composer.json`:
- Around line 29-30: Update the composer dependency constraints to require
drupal/gin ^5.0 and drupal/gin_toolbar ^3.0 only if the project runs on Drupal
^11.2+; verify the running core version and adjust composer.json's "drupal/gin"
and "drupal/gin_toolbar" entries accordingly, audit any custom CSS/classes for
CamelCase→kebab-case renames and update overrides, test admin/navigation/UI for
the new sticky navigation defaults, and validate the exported configuration
against the 5.x gin.settings.yml schema (review config/default/gin.settings.yml)
before merging.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: f9991979-0da4-464d-a1c6-ea84faa923fa

📥 Commits

Reviewing files that changed from the base of the PR and between 4b38328 and 561b60d.

⛔ Files ignored due to path filters (1)
  • composer.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • composer.json

Comment thread composer.json
Comment on lines +29 to +30
"drupal/gin": "^5.0.12",
"drupal/gin_toolbar": "^3.0.3",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🌐 Web query:

drupal/gin 5.0 release notes breaking changes upgrade guide

💡 Result:

Gin 5.0.0 was released on June 18, 2025. It requires Drupal ^11.2, unlike 4.x series which supported Drupal 10/11<11.2. Release notes for 5.0.0: Bug fix for #3503575: Integrate Gin with the new Navigation Top Bar. Changes since 4.1.0. No explicit breaking changes or dedicated upgrade guide found in release notes across 5.0.x versions (5.0.0 to 5.0.12). All listed as bug fixes. Potential considerations from 4.x releases (may carry over): Dropped Drupal 9 support; CSS3 classes changed from CamelCase to kebab-case (#3309113); New/sticky navigation enabled by default. Upgrade via Composer: composer require 'drupal/gin:^5.0'. Clear caches after update. Check compatibility with Drupal 11.2+ and related modules (e.g., gin_lb, Layout Paragraphs have reported issues with Gin 5.x). Project page: https://www.drupal.org/project/gin. Releases: https://www.drupal.org/project/gin/releases. Source: https://git.drupalcode.org/project/gin.

Citations:


🌐 Web query:

drupal/gin_toolbar 3.0 release notes breaking changes compatibility with gin 5.x

💡 Result:

The gin_toolbar 3.0.0 release (June 18, 2025) lists only "Bug fixes" in its release notes with no detailed changelog or explicit breaking changes mentioned on the official Drupal.org release page. Subsequent patch releases (3.0.1, 3.0.2, 3.0.3 as of January 2026) are also bug fixes only: 3.0.1 removes dependency from core toolbar module; 3.0.3 fixes CSS aggregation issues. The 3.0.0-alpha1 notes "Get ready for Drupal 11.2", indicating preparation for newer Drupal core compatibility. gin_toolbar 3.x is fully compatible with Gin 5.x. Multiple sources confirm Gin 5.0 requires gin_toolbar 3.0 (while Gin 4.x uses 2.x), resolving version conflicts when updating. gin_toolbar 3.x works with Drupal ^11.2, aligning with recent Gin releases supporting Drupal 11. No incompatibilities or required workarounds noted for Gin 5.x.

Citations:


🏁 Script executed:

#!/bin/bash
# Description: Check for gin and gin_toolbar update hooks and documentation

echo "=== Checking for gin module update hooks ==="
fd -t f "gin.install" web/modules/contrib/gin --exec cat {} \; 2>/dev/null | head -100

echo -e "\n=== Checking for gin_toolbar module update hooks ==="
fd -t f "gin_toolbar.install" web/modules/contrib/gin_toolbar --exec cat {} \; 2>/dev/null | head -100

echo -e "\n=== Checking for README or CHANGELOG in gin ==="
fd -t f -e md -e txt "README|CHANGELOG|UPGRADING" web/modules/contrib/gin --exec head -50 {} \;

echo -e "\n=== Checking for README or CHANGELOG in gin_toolbar ==="
fd -t f -e md -e txt "README|CHANGELOG|UPGRADING" web/modules/contrib/gin_toolbar --exec head -50 {} \;

Repository: drevops/website

Length of output: 510


Verify compatibility with Drupal 11.2+ and test for CSS/navigation behavior changes.

The gin 5.x → gin_toolbar 3.x pairing is compatible and required. However, note these important changes:

  • Drupal version requirement: Gin 5.x requires Drupal ^11.2 (more restrictive than 4.x which supported 10/11). Verify your Drupal version is 11.2 or later.
  • CSS class naming: Classes changed from CamelCase to kebab-case in the 4.x → 5.x transition. Review any custom CSS or theme overrides.
  • Navigation defaults: New/sticky navigation is enabled by default in 5.x. Test admin UX after upgrade.

Test the configuration export against the 5.x schema before deploying to ensure config/default/gin.settings.yml settings are compatible.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@composer.json` around lines 29 - 30, Update the composer dependency
constraints to require drupal/gin ^5.0 and drupal/gin_toolbar ^3.0 only if the
project runs on Drupal ^11.2+; verify the running core version and adjust
composer.json's "drupal/gin" and "drupal/gin_toolbar" entries accordingly, audit
any custom CSS/classes for CamelCase→kebab-case renames and update overrides,
test admin/navigation/UI for the new sticky navigation defaults, and validate
the exported configuration against the 5.x gin.settings.yml schema (review
config/default/gin.settings.yml) before merging.

@github-actions
Copy link
Copy Markdown

Code coverage (GitHub Actions)

Code Coverage Report:
  2026-03-26 17:41:13

 Summary:
  Classes: 50.00% (5/10)
  Methods: 73.91% (17/23)
  Lines:   92.81% (310/334)

Drupal\do_feed\FeedUrlBuilder
  Methods: 100.00% ( 4/ 4)   Lines: 100.00% ( 18/ 18)
Drupal\do_feed\Form\FeedSettingsForm
  Methods: 100.00% ( 4/ 4)   Lines: 100.00% ( 15/ 15)
Drupal\do_feed\Hook\EntityDeleteHook
  Methods:  50.00% ( 1/ 2)   Lines:  92.31% ( 12/ 13)
Drupal\do_feed\Hook\EntityPresaveHook
  Methods: 100.00% ( 4/ 4)   Lines: 100.00% ( 54/ 54)
Drupal\do_feed\Hook\PreprocessParagraphHook
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 14/ 14)
Drupal\do_feed\Hook\PreprocessViewsViewRowRssHook
  Methods: 100.00% ( 1/ 1)   Lines: 100.00% (  3/  3)
Drupal\do_feed\Hook\ViewsPreViewHook
  Methods:  50.00% ( 1/ 2)   Lines:  96.43% ( 27/ 28)

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.73%. Comparing base (5dd5e3e) to head (561b60d).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #162   +/-   ##
========================================
  Coverage    87.73%   87.73%           
========================================
  Files           11       11           
  Lines          163      163           
========================================
  Hits           143      143           
  Misses          20       20           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@AlexSkrypnyk AlexSkrypnyk merged commit 65ec0d8 into develop Mar 26, 2026
8 checks passed
@AlexSkrypnyk AlexSkrypnyk deleted the feature/update-gin-5 branch March 26, 2026 06:42
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.

2 participants