Skip to content
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

feat: Added partition commands #28

Merged
merged 1 commit into from
Jan 15, 2025
Merged

Conversation

AncientPatata
Copy link
Contributor

Motivation

The current version of the CLI doesn't have partition-specific commands.

Description

Added commands for :

  • Listing partitions
  • Getting partitions

Testing

Unit tests for the serialization and commandline argument parsing.

Impact

Not applicable.

Additional Information

Will be in draft until Tasks is merged (for sorting)

Checklist

  • My code adheres to the coding and style guidelines of the project.
  • I have performed a self-review of my code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • I have thoroughly tested my modifications and added tests when necessary.
  • Tests pass locally and in the CI.
  • I have assessed the performance impact of my modifications.

Copy link

github-actions bot commented Jan 9, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
616 563 91% 0% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: 733747a by action🐍

@AncientPatata AncientPatata force-pushed the ad/add_partition_commands branch 2 times, most recently from 88d9ca9 to 7547ed5 Compare January 15, 2025 10:47
@AncientPatata AncientPatata marked this pull request as ready for review January 15, 2025 10:48
@AncientPatata AncientPatata force-pushed the ad/add_partition_commands branch from 7547ed5 to 5eb1535 Compare January 15, 2025 11:08
src/armonik_cli/commands/partitions.py Outdated Show resolved Hide resolved
src/armonik_cli/commands/partitions.py Outdated Show resolved Hide resolved
src/armonik_cli/commands/partitions.py Outdated Show resolved Hide resolved
src/armonik_cli/commands/partitions.py Show resolved Hide resolved
src/armonik_cli/commands/partitions.py Outdated Show resolved Hide resolved
Comment on lines +39 to +40
elif isinstance(obj, RepeatedScalarContainer):
return list(obj)
Copy link
Contributor

Choose a reason for hiding this comment

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

This means that the API doesn't do its job correctly! I would like you to fix the API so that the RepeatedScalarContainer (that is a gRPC ugly object) is converted to a the corresponding python object. Check the to_message function of the Partition class.

tests/commands/test_partitions.py Outdated Show resolved Hide resolved
@AncientPatata AncientPatata force-pushed the ad/add_partition_commands branch 2 times, most recently from a31d887 to 2364331 Compare January 15, 2025 12:34
@AncientPatata AncientPatata force-pushed the ad/add_partition_commands branch from 2364331 to 733747a Compare January 15, 2025 12:44
@qdelamea-aneo qdelamea-aneo merged commit 34012e6 into main Jan 15, 2025
4 checks passed
@qdelamea-aneo qdelamea-aneo deleted the ad/add_partition_commands branch January 15, 2025 13:23
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.

2 participants