Skip to content

Add new feature excel download#120

Merged
ImMin5 merged 1 commit intocloudforet-io:masterfrom
ImMin5:master
May 13, 2025
Merged

Add new feature excel download#120
ImMin5 merged 1 commit intocloudforet-io:masterfrom
ImMin5:master

Conversation

@ImMin5
Copy link
Copy Markdown
Member

@ImMin5 ImMin5 commented May 13, 2025

Category

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

Description

  • add new feature excel download

Known issue

Signed-off-by: ImMin5 <mino@megazone.com>
@ImMin5 ImMin5 requested a review from Copilot May 13, 2025 10:00
@ImMin5 ImMin5 added the enhancement New feature or request label May 13, 2025
@ImMin5 ImMin5 merged commit 14c9adf into cloudforet-io:master May 13, 2025
3 checks passed
Copy link
Copy Markdown

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 implements a new feature for Excel download functionality and cleans up unused API models. Key changes include the addition of Excel request models and REST endpoints, enhancements to the CloudforetManager with pagination and URL parsing improvements, and necessary configuration updates.

  • Removed unused resource and auth request models.
  • Added new Excel export and download endpoints with corresponding request models.
  • Updated pagination logic and cache configuration in the manager and global settings.

Reviewed Changes

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

Show a summary per file
File Description
src/cloudforet/console_api_v2/model/resource.py Removed unused API resource models.
src/cloudforet/console_api_v2/model/excel/request.py Added new models for Excel export/download requests.
src/cloudforet/console_api_v2/model/auth/request.py Removed obsolete authentication request model.
src/cloudforet/console_api_v2/manager/cloudforet_manager.py Added pagination and URL-based gRPC method conversion logic.
src/cloudforet/console_api_v2/interface/rest/extension/excel.py Introduced REST endpoints for Excel export and download.
src/cloudforet/console_api_v2/conf/router_conf.py Configured new router for the Excel extension.
src/cloudforet/console_api_v2/conf/global_conf.py Increased cache max_size for local configuration.
pkg/pip_requirements.txt Added openpyxl dependency.

def convert_grpc_method_from_url(cls, url: str) -> str:
try:
parts = url.strip("/").split("/")
print(parts)
Copy link

Copilot AI May 13, 2025

Choose a reason for hiding this comment

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

Remove the debug print statement or replace it with a logging call to avoid accidentally exposing internal state in production.

Suggested change
print(parts)
_LOGGER.debug(parts)

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request pass/signedoff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants