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

[CHIA-1348] Port chia wallet coin commands to @chia_command framework #18641

Merged
merged 33 commits into from
Dec 17, 2024

Conversation

Quexington
Copy link
Contributor

@Quexington Quexington commented Sep 25, 2024

(whitespace-less review will likely be beneficial)

This PR takes a step forward in porting existing wallet commands to the @chia_command framework currently in use for the signer commands. The primary benefit of this framework is that we can start writing integration tests with the command line interface at the top instead of the RPC so we can actually test the entire stack that a user utilizes when interacting with our application. It also comes with strong typing for CLI parameters and better code unity (right now the click options and the actual execution code live in separate places).

The coin commands were chosen due to the smaller number of them and the recent attention that has been paid to their tests making it easy to port the commands right on top of those recent changes.

@Quexington Quexington added Changed Required label for PR that categorizes merge commit message as "Changed" for changelog Exclude_Notes Use this label if the changes in the PR should be excluded from the release notes labels Sep 25, 2024
@Quexington Quexington changed the title Port chia wallet coin commands to @chia_command framework [CHIA-1348] Port chia wallet coin commands to @chia_command framework Sep 25, 2024
@Chia-Network Chia-Network deleted a comment from coveralls-official bot Sep 26, 2024
@Chia-Network Chia-Network deleted a comment from github-actions bot Sep 26, 2024
@Chia-Network Chia-Network deleted a comment from github-actions bot Sep 27, 2024
@github-actions github-actions bot added coverage-diff merge_conflict Branch has conflicts that prevent merge to main labels Dec 9, 2024
@Chia-Network Chia-Network deleted a comment from github-actions bot Dec 10, 2024
@github-actions github-actions bot removed the merge_conflict Branch has conflicts that prevent merge to main label Dec 10, 2024
@Chia-Network Chia-Network deleted a comment from github-actions bot Dec 10, 2024
@Chia-Network Chia-Network deleted a comment from github-actions bot Dec 10, 2024
chia/_tests/wallet/rpc/test_wallet_rpc.py Outdated Show resolved Hide resolved
chia/_tests/wallet/rpc/test_wallet_rpc.py Outdated Show resolved Hide resolved
chia/_tests/wallet/rpc/test_wallet_rpc.py Outdated Show resolved Hide resolved
chia/_tests/wallet/rpc/test_wallet_rpc.py Outdated Show resolved Hide resolved
chia/_tests/wallet/rpc/test_wallet_rpc.py Outdated Show resolved Hide resolved
chia/_tests/cmds/test_cmd_framework.py Outdated Show resolved Hide resolved
chia/_tests/cmds/test_cmd_framework.py Outdated Show resolved Hide resolved
chia/_tests/environments/wallet.py Outdated Show resolved Hide resolved
chia/_tests/wallet/test_coin_management.py Outdated Show resolved Hide resolved
chia/cmds/cmd_classes.py Outdated Show resolved Hide resolved
chia/cmds/cmd_classes.py Outdated Show resolved Hide resolved
altendky
altendky previously approved these changes Dec 12, 2024
@Quexington Quexington requested a review from emlowe December 13, 2024 17:55
@github-actions github-actions bot added the merge_conflict Branch has conflicts that prevent merge to main label Dec 13, 2024
@github-actions github-actions bot removed the merge_conflict Branch has conflicts that prevent merge to main label Dec 16, 2024
@Chia-Network Chia-Network deleted a comment from github-actions bot Dec 16, 2024
@Chia-Network Chia-Network deleted a comment from github-actions bot Dec 16, 2024
Copy link
Contributor

File Coverage Missing Lines
chia/cmds/coin_funcs.py 81.4% lines 168-169, 215-216, 219-224, 226-231
Total Missing Coverage
445 lines 16 lines 96%

@emlowe
Copy link
Contributor

emlowe commented Dec 16, 2024

A followup that hits some of the negative test cases missing coverage would be useful.

@Quexington Quexington added the ready_to_merge Submitter and reviewers think this is ready label Dec 16, 2024
@pmaslana pmaslana merged commit 61207d2 into main Dec 17, 2024
364 of 365 checks passed
@pmaslana pmaslana deleted the quex.port_coin_cmds_to_chia_command branch December 17, 2024 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changed Required label for PR that categorizes merge commit message as "Changed" for changelog Exclude_Notes Use this label if the changes in the PR should be excluded from the release notes ready_to_merge Submitter and reviewers think this is ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants