Skip to content

fix: [#667] package install typo#1103

Merged
hwbrzzl merged 1 commit intomasterfrom
bowen/#667-2
Jul 1, 2025
Merged

fix: [#667] package install typo#1103
hwbrzzl merged 1 commit intomasterfrom
bowen/#667-2

Conversation

@hwbrzzl
Copy link
Contributor

@hwbrzzl hwbrzzl commented Jul 1, 2025

📑 Description

Closes goravel/goravel#667

This pull request refactors the ServiceProvider class in foundation/console/package_make_command_stubs.go to consolidate multiple methods into a single Relationship method. This change simplifies the code and provides a more structured representation of bindings, dependencies, and services provided by the service provider.

Refactoring of ServiceProvider class:

  • foundation/console/package_make_command_stubs.go: Replaced the Bindings, Dependencies, and ProvideFor methods with a single Relationship method, which returns a binding.Relationship object containing structured data for bindings, dependencies, and services provided.

✅ Checks

  • Added test cases for my code

Copilot AI review requested due to automatic review settings July 1, 2025 02:42
@hwbrzzl hwbrzzl requested a review from a team as a code owner July 1, 2025 02:42

This comment was marked as outdated.

@codecov
Copy link

codecov bot commented Jul 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.76%. Comparing base (bd4544f) to head (9613cf8).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1103      +/-   ##
==========================================
- Coverage   66.79%   66.76%   -0.03%     
==========================================
  Files         212      212              
  Lines       14011    14001      -10     
==========================================
- Hits         9358     9348      -10     
  Misses       4283     4283              
  Partials      370      370              

☔ 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 requested a review from Copilot July 1, 2025 03:19
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 refactors the ServiceProvider class to consolidate three methods (Bindings, Dependencies, and ProvideFor) into a single Relationship method that returns a structured binding.Relationship object.

  • Removed redundant methods and replaced them with the Relationship method.
  • Simplified the code structure in foundation/console/package_make_command_stubs.go.
Comments suppressed due to low confidence (1)

foundation/console/package_make_command_stubs.go:40

  • Consider expanding the documentation for the Relationship method to include details on what each field (Bindings, Dependencies, ProvideFor) represents, as this information was previously covered in the individual methods.
// Relationship returns the relationship of the service provider.

@hwbrzzl hwbrzzl changed the title feat: [#667] fix typo fix: [#667] package install typo Jul 1, 2025
Copy link
Contributor

@almas-x almas-x left a comment

Choose a reason for hiding this comment

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

LGTM

@hwbrzzl hwbrzzl merged commit f290184 into master Jul 1, 2025
14 checks passed
@hwbrzzl hwbrzzl deleted the bowen/#667-2 branch July 1, 2025 06:59
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.

Registering service providers don't dependent order

3 participants