Skip to content

feat: [#612] Optimize install missing#1216

Merged
hwbrzzl merged 3 commits intomasterfrom
bowen/optimize-install-remain
Oct 3, 2025
Merged

feat: [#612] Optimize install missing#1216
hwbrzzl merged 3 commits intomasterfrom
bowen/optimize-install-remain

Conversation

@hwbrzzl
Copy link
Contributor

@hwbrzzl hwbrzzl commented Oct 3, 2025

📑 Description

Relate goravel/goravel#612

  1. Fix facades.Artisan().Register is not added in some cases.
  2. Add facades.Event().Register when installing Event.
  3. Add facades.Queue().Register when installing Queue.

✅ Checks

  • Added test cases for my code

@hwbrzzl hwbrzzl requested a review from a team as a code owner October 3, 2025 08:23
Copilot AI review requested due to automatic review settings October 3, 2025 08:23
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR optimizes the install process for missing packages by restructuring the setup code for queue and event packages, and fixing console command kernel initialization. The changes improve the organization and reliability of package installation by using variables for repeated strings and handling existing files more gracefully.

  • Refactored queue and event setup files to use variables for commonly repeated strings and reorganized installation/uninstallation logic
  • Fixed console command kernel initialization to always modify the AppServiceProvider regardless of kernel file existence
  • Updated test cases to reflect the new behavior of kernel initialization

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
queue/setup/setup.go Extracted string literals into variables and reorganized install/uninstall operations with better comments
event/setup/setup.go Applied similar refactoring as queue setup with variable extraction and improved organization
console/console/make_command_test.go Updated test cases to match new kernel initialization behavior
console/console/make_command.go Fixed kernel initialization logic to always modify AppServiceProvider and added missing return statement

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@codecov
Copy link

codecov bot commented Oct 3, 2025

Codecov Report

❌ Patch coverage is 15.21739% with 78 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.57%. Comparing base (179304d) to head (6f8da4e).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
queue/setup/setup.go 0.00% 41 Missing ⚠️
event/setup/setup.go 0.00% 34 Missing ⚠️
console/console/make_command.go 82.35% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1216      +/-   ##
==========================================
- Coverage   66.82%   66.57%   -0.25%     
==========================================
  Files         237      237              
  Lines       15784    15845      +61     
==========================================
+ Hits        10547    10549       +2     
- Misses       4871     4930      +59     
  Partials      366      366              

☔ 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.

@hwbrzzl hwbrzzl merged commit 5eab81f into master Oct 3, 2025
12 of 14 checks passed
@hwbrzzl hwbrzzl deleted the bowen/optimize-install-remain branch October 3, 2025 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants