Skip to content

Conversation

@ImMin5
Copy link
Member

@ImMin5 ImMin5 commented Apr 28, 2025

Category

  • New feature
  • Bug fix
  • Improvement
  • Refactor
  • etc

Description

Known issue

ImMin5 and others added 30 commits March 28, 2025 12:06
Modify field name notifications -> notification
Add budget_manager_id field for Budget
Implement budget utilization rate update scheduler and related tasks
Add convert model decorator at stat api
Add budget year field and modify budget update scheduler
Signed-off-by: ImMin5 <[email protected]>
Modify budget and budget usage index order
Enhance budget notification logic
Modify cost report run scheduler class name
Update workflow to use Ubuntu 22.04
Signed-off-by: cloudforet-admin <[email protected]>
@ImMin5 ImMin5 requested a review from Copilot April 28, 2025 09:27
Copy link

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 pull request refactors several gRPC interface implementations by replacing the locator-based service calls with direct instantiation of service classes and makes adjustments to error messages and configuration settings. Key changes include:

  • Refactoring gRPC interface methods in cost_analysis services (data_source_rule, data_source, cost_query_set, cost, budget_usage) to use direct service instantiation.
  • Removing deprecated info modules and updating error messages in budget error handling.
  • Updating connector implementations, Helm chart configurations, and CI workflow settings.

Reviewed Changes

Copilot reviewed 102 out of 102 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/spaceone/cost_analysis/interface/grpc/*.py Replaces locator-based service calls with direct service instantiation for improved clarity.
src/spaceone/cost_analysis/info/*.py Removes multiple info modules as part of the refactoring cleanup.
src/spaceone/cost_analysis/error/budget.py Updates error messages to use singular "notification" and adjusts parameter placeholders.
src/spaceone/cost_analysis/connector/*.py Updates connector instantiation (e.g., SpaceConnector usage) and adds a new import.
src/spaceone/cost_analysis/conf/global_conf.py & deploy/helm/* Introduces new budget settings and scheduler entries with version updates.
.github/workflows/dispatch_daily_build.yaml Updates CI runner to use ubuntu-latest.
Comments suppressed due to low confidence (3)

src/spaceone/cost_analysis/error/budget.py:33

  • Verify that changing 'notifications' to 'notification' ensures consistency with the rest of the codebase and documentation.
_message = "Unit is required for notification (key = notification, value = {value})"

src/spaceone/cost_analysis/error/budget.py:37

  • Please confirm that the singular usage of 'notification' in the error message aligns with the expected input keys throughout the system.
_message = "Notification type is required for notification (key = notification, value = {value})"

src/spaceone/cost_analysis/error/budget.py:55

  • Ensure that the updated error message placeholders (start, end) are supported by the calling code and tests, as this change might impact downstream validation.
_message = "Budget already exist. (start = {start} end = {end}, target = {target}, workspace_id = {workspace_id})"

@github-actions
Copy link

⚠️ @ImMin5 the signed-off-by was not found in the following 10 commits:

✅ Why it is required

The Developer Certificate of Origin (DCO) is a lightweight way for contributors to certify that they wrote or otherwise have the right to submit the code they are contributing to the project. Here is the full text of the DCO.

Contributors sign-off that they adhere to these requirements by adding a Signed-off-by line to commit messages.

This is my commit message

Signed-off-by: Random Developer <[email protected]>

Git even has a -s command line option to append this automatically to your commit message:

$ git commit -s -m 'This is my commit message'

1 similar comment
@github-actions
Copy link

⚠️ @ImMin5 the signed-off-by was not found in the following 10 commits:

✅ Why it is required

The Developer Certificate of Origin (DCO) is a lightweight way for contributors to certify that they wrote or otherwise have the right to submit the code they are contributing to the project. Here is the full text of the DCO.

Contributors sign-off that they adhere to these requirements by adding a Signed-off-by line to commit messages.

This is my commit message

Signed-off-by: Random Developer <[email protected]>

Git even has a -s command line option to append this automatically to your commit message:

$ git commit -s -m 'This is my commit message'

@ImMin5 ImMin5 deleted the branch cloudforet-io:feature-refactoring April 28, 2025 09:35
@ImMin5 ImMin5 closed this Apr 28, 2025
@ImMin5 ImMin5 deleted the feature-refactoring branch April 28, 2025 09: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.

4 participants