Skip to content

Structure change to support PowerFlex 5.0 - #44

Merged
baoy1 merged 15 commits into
mainfrom
baoy1/powerflex_gen2
Aug 4, 2025
Merged

Structure change to support PowerFlex 5.0#44
baoy1 merged 15 commits into
mainfrom
baoy1/powerflex_gen2

Conversation

@baoy1

@baoy1 baoy1 commented Jul 30, 2025

Copy link
Copy Markdown
Contributor

Structure change to support PowerFlex 5.0

Comment thread PyPowerFlex/objects/common/utility.py Outdated

return response

def get_statistics_for_all_storage_nodes(self, ids=None, properties=None):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi @baoy1, would it be better if you make this method common and move resource_type to the params as well? So other modules can call this method with specific resource_type, ids and properties to be retrieved.

@codecov-commenter

codecov-commenter commented Jul 30, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.41007% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.74%. Comparing base (abe2445) to head (821743b).

Files with missing lines Patch % Lines
PyPowerFlex/objects/gen2/storage_pool.py 95.07% 7 Missing ⚠️
PyPowerFlex/base_client.py 87.50% 4 Missing ⚠️
PyPowerFlex/objects/gen2/protection_domain.py 96.66% 4 Missing ⚠️
tests/common/__init__.py 88.88% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #44      +/-   ##
==========================================
+ Coverage   94.24%   94.74%   +0.49%     
==========================================
  Files          48       56       +8     
  Lines        2851     3443     +592     
==========================================
+ Hits         2687     3262     +575     
- Misses        164      181      +17     

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

vangork and others added 2 commits July 30, 2025 18:31
Signed-off-by: Luis Liu <luis_liu@dell.com>
rename token.py to powerflex_token.py to avoid python native token conflict
@baoy1
baoy1 force-pushed the baoy1/powerflex_gen2 branch from 8ae26a7 to 982f7b4 Compare July 30, 2025 15:51
@@ -0,0 +1,26 @@
# Copyright (c) 2024 Dell Inc. or its subsidiaries.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we may need to use 2025 cp

LOG.error(msg)
raise exceptions.PowerFlexClientException(msg)

# def query_selected_statistics(self, properties, ids=None):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

some useless codes could be removed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@vangork FYA



# class LinkSchema(base_client.BaseSchema):
# rel = fields.Str(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

some useless codes could be removed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@vangork FYA

@baoy1
baoy1 merged commit 5d8c9db into main Aug 4, 2025
8 of 9 checks passed
@baoy1
baoy1 deleted the baoy1/powerflex_gen2 branch August 4, 2025 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants