Skip to content

[#2545] Removed stale cloned ScriptHandler.php and its composer wiring.#2578

Merged
AlexSkrypnyk merged 5 commits into
mainfrom
feature/2545-trim-scripthandler
Jun 5, 2026
Merged

[#2545] Removed stale cloned ScriptHandler.php and its composer wiring.#2578
AlexSkrypnyk merged 5 commits into
mainfrom
feature/2545-trim-scripthandler

Conversation

@AlexSkrypnyk
Copy link
Copy Markdown
Member

@AlexSkrypnyk AlexSkrypnyk commented Jun 5, 2026

Closes #2545

Summary

scripts/composer/ScriptHandler.php was a near-verbatim clone of drupal-composer/drupal-project carrying assumptions that no longer match Vortex: a config/sync config-sync-directory path (Vortex uses config/default), an obsolete checkComposerVersion() Composer 1 gate with a misleading "we do not ship with a lock file" docblock, and a dead settings.php-creation branch (Vortex commits its own web/sites/default/settings.php). Once the dead logic was stripped, the only behavior left was creating web/modules/web/profiles/web/themes (already committed in the template) and the gitignored web/sites/default/files directory (which Drupal creates during site install/provision anyway). With nothing load-bearing remaining, the file is removed outright.

Changes

  • Deleted scripts/composer/ScriptHandler.php.
  • composer.json: removed the scripts section (the pre/post-install/update-cmd events) and the autoload classmap that pointed at the file. autoload-dev is unchanged.
  • .vortex/docs/content/drupal/composer-json.mdx: removed the ### scripts and ### autoload subsections that documented the removed wiring.
  • Regenerated installer snapshots: deletes the ScriptHandler.php fixtures (baseline plus the tools_no_phpcs* / tools_none / tools_groups_no_be_lint* variants) and updates the composer.json fixtures.

Notes

  • webflo/drupal-finder stays in require - it is still used by rector.php.
  • The only behavior change is that web/sites/default/files is no longer created at composer install time. That directory is gitignored and is created by Drupal during site install/provision, so the end-to-end vortex-test-workflow CI jobs (which build and provision a real site) are the backstop confirming nothing relies on the composer-time creation.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 5, 2026

Warning

Review limit reached

@AlexSkrypnyk, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 87 minutes and 38 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 9474d495-8758-41a6-81a1-08f51257298d

📥 Commits

Reviewing files that changed from the base of the PR and between 0cc8aab and 0f39b6e.

⛔ Files ignored due to path filters (21)
  • .vortex/installer/tests/Fixtures/handler_process/_baseline/composer.json is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/_baseline/scripts/composer/ScriptHandler.php is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/hosting_acquia/composer.json is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/hosting_project_name___acquia/composer.json is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/starter_drupal_cms_profile/composer.json is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/tools_groups_no_be_lint/composer.json is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/tools_groups_no_be_lint/scripts/composer/ScriptHandler.php is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/tools_groups_no_be_lint_circleci/composer.json is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/tools_groups_no_be_lint_circleci/scripts/composer/ScriptHandler.php is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/tools_groups_no_be_tests/composer.json is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/tools_groups_no_be_tests_circleci/composer.json is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/tools_no_phpcs/composer.json is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/tools_no_phpcs/scripts/composer/ScriptHandler.php is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/tools_no_phpcs_circleci/composer.json is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/tools_no_phpcs_circleci/scripts/composer/ScriptHandler.php is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/tools_no_phpstan/composer.json is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/tools_no_phpstan_circleci/composer.json is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/tools_no_phpunit/composer.json is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/tools_no_phpunit_circleci/composer.json is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/tools_none/composer.json is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/tools_none/scripts/composer/ScriptHandler.php is excluded by !.vortex/installer/tests/Fixtures/**
📒 Files selected for processing (4)
  • .vortex/docs/content/drupal/composer-json.mdx
  • .vortex/tests/phpunit/Traits/SutTrait.php
  • composer.json
  • scripts/composer/ScriptHandler.php
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/2545-trim-scripthandler

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

@github-actions

This comment has been minimized.

@AlexSkrypnyk

This comment has been minimized.

2 similar comments
@AlexSkrypnyk

This comment has been minimized.

@AlexSkrypnyk

This comment has been minimized.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.11%. Comparing base (0cc8aab) to head (0f39b6e).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2578      +/-   ##
==========================================
- Coverage   86.56%   86.11%   -0.45%     
==========================================
  Files          94       87       -7     
  Lines        4660     4502     -158     
  Branches       47        3      -44     
==========================================
- Hits         4034     3877     -157     
+ Misses        626      625       -1     

☔ View full report in Codecov by Harness.
📢 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 changed the title [#2545] Trimmed stale cloned ScriptHandler.php and obsolete Composer 1 logic. [#2545] Removed stale cloned ScriptHandler.php and its composer wiring. Jun 5, 2026
@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 5, 2026

Code coverage (threshold: 90%)

  Classes: 100.00% (1/1)
  Methods: 100.00% (2/2)
  Lines:   98.53% (201/204)
Per-class coverage
Drupal\ys_demo\Plugin\Block\CounterBlock
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 10/ 10)

@AlexSkrypnyk

This comment has been minimized.

2 similar comments
@AlexSkrypnyk

This comment has been minimized.

@AlexSkrypnyk
Copy link
Copy Markdown
Member Author

Code coverage (threshold: 90%)

  Classes: 100.00% (1/1)
  Methods: 100.00% (2/2)
  Lines:   98.53% (201/204)
Per-class coverage
Drupal\ys_demo\Plugin\Block\CounterBlock
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 10/ 10)

@AlexSkrypnyk AlexSkrypnyk merged commit 3ca7224 into main Jun 5, 2026
33 checks passed
@AlexSkrypnyk AlexSkrypnyk deleted the feature/2545-trim-scripthandler branch June 5, 2026 11:36
@github-project-automation github-project-automation Bot moved this from BACKLOG to Release queue in Vortex Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Release queue

Development

Successfully merging this pull request may close these issues.

Trim stale cloned ScriptHandler.php (config/sync path and obsolete Composer 1 logic)

1 participant