-
Notifications
You must be signed in to change notification settings - Fork 13
Feature refactoring #357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature refactoring #357
Conversation
Signed-off-by: ImMin5 <[email protected]>
Signed-off-by: ImMin5 <[email protected]>
Signed-off-by: ImMin5 <[email protected]>
Modify field name notifications -> notification
Signed-off-by: ImMin5 <[email protected]>
Add budget_manager_id field for Budget
…tasks Signed-off-by: ImMin5 <[email protected]>
Signed-off-by: ImMin5 <[email protected]>
Signed-off-by: ImMin5 <[email protected]>
Signed-off-by: ImMin5 <[email protected]>
Implement budget utilization rate update scheduler and related tasks
Signed-off-by: ImMin5 <[email protected]>
Add convert model decorator at stat api
Signed-off-by: ImMin5 <[email protected]>
Add budget year field and modify budget update scheduler
Signed-off-by: ImMin5 <[email protected]>
Signed-off-by: ImMin5 <[email protected]>
Signed-off-by: ImMin5 <[email protected]>
Signed-off-by: ImMin5 <[email protected]>
Modify budget and budget usage index order
Signed-off-by: seolmin <[email protected]>
Signed-off-by: ImMin5 <[email protected]>
Signed-off-by: ImMin5 <[email protected]>
Enhance budget notification logic
Signed-off-by: ImMin5 <[email protected]>
Modify cost report run scheduler class name
Signed-off-by: ImMin5 <[email protected]>
Update workflow to use Ubuntu 22.04
Signed-off-by: cloudforet-admin <[email protected]>
Add error handling for duplicated budget thresholds
Signed-off-by: ImMin5 <[email protected]>
Update workspace_id field to be optional when get budget info
Signed-off-by: ImMin5 <[email protected]>
Signed-off-by: ImMin5 <[email protected]>
There was a problem hiding this 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})"
|
✅ Why it is requiredThe 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 Git even has a |
1 similar comment
|
✅ Why it is requiredThe 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 Git even has a |
Category
Description
Known issue