Skip to content

Conversation

@chungquantin
Copy link
Contributor

Add the new method filter_mode() to the Cli struct that enables the filter mode to the Select and MultiSelect. We need this feature for the #420

The implementation PR of the filter mode in cliclack that includes images of how the feature looks like.

@chungquantin chungquantin requested a review from AlexD10S March 4, 2025 04:22
@chungquantin chungquantin changed the title feat: add the filter mode to cli feat: add the filter mode to Cli Mar 4, 2025
@chungquantin chungquantin added the ready-for-final-review The PR is ready for final review label Mar 4, 2025
@codecov
Copy link

codecov bot commented Mar 4, 2025

Codecov Report

Attention: Patch coverage is 46.15385% with 49 lines in your changes missing coverage. Please review.

Project coverage is 75.28%. Comparing base (1b7d60e) to head (00f8818).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
crates/pop-cli/src/cli.rs 32.85% 46 Missing and 1 partial ⚠️
crates/pop-cli/src/commands/up/network.rs 0.00% 2 Missing ⚠️
@@            Coverage Diff             @@
##             main     #435      +/-   ##
==========================================
- Coverage   75.45%   75.28%   -0.18%     
==========================================
  Files          64       64              
  Lines       14107    14188      +81     
  Branches    14107    14188      +81     
==========================================
+ Hits        10645    10681      +36     
- Misses       2100     2145      +45     
  Partials     1362     1362              
Files with missing lines Coverage Δ
crates/pop-cli/src/commands/build/spec.rs 74.08% <100.00%> (+0.27%) ⬆️
crates/pop-cli/src/commands/call/chain.rs 74.76% <100.00%> (+0.11%) ⬆️
crates/pop-cli/src/commands/call/contract.rs 80.38% <100.00%> (+0.07%) ⬆️
crates/pop-cli/src/commands/clean.rs 83.33% <100.00%> (+0.25%) ⬆️
crates/pop-cli/src/commands/up/network.rs 6.81% <0.00%> (-0.03%) ⬇️
crates/pop-cli/src/cli.rs 59.90% <32.85%> (-5.57%) ⬇️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AlexD10S
Copy link
Collaborator

AlexD10S commented Mar 4, 2025

CI is failing in deny and docker.

I see the deny error, which was an open issue yesterday: EmbarkStudios/cargo-deny-action#91
I believe we need to update it to v2, as seen in this commit: restatedev/restate@b16d7da

Also I see some clippy warnings.

@chungquantin
Copy link
Contributor Author

CI is failing in deny and docker.

I see the deny error it was an open issue yesterday: EmbarkStudios/cargo-deny-action#91 I believe we only need to update it to v2: restatedev/restate@b16d7da

Also I see some clippy warnings.

For the CI, let me update the #431 to include that error as well and we merge that first. I would love to resolve an issue with the CI asap.

For the clippy warnings, because we don't use those methods anywhere yet. They are expected to be used in the interactive UI of pallet benchmarking PR

@chungquantin chungquantin changed the base branch from main to chungquantin/chore-deny_action_v2 March 4, 2025 15:40
Base automatically changed from chungquantin/chore-deny_action_v2 to main March 4, 2025 21:06
Copy link
Collaborator

@AlexD10S AlexD10S left a comment

Choose a reason for hiding this comment

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

Looks good!
Just a nitpick, before merging fix a warning message, with the zombinet-sdk upgrade

warning: use of deprecated method `pop_parachains::NetworkNode::client`: Use `wait_client` instead.
   --> crates/pop-cli/src/commands/up/network.rs:174:61
    |
174 | ...                   let relay_endpoint = network.relaychain().nodes()[0].client().await?;

@chungquantin chungquantin force-pushed the chungquantin/feat-filter_mode branch 3 times, most recently from e470707 to 33b370b Compare March 5, 2025 02:00
@chungquantin chungquantin self-assigned this Mar 5, 2025
@chungquantin chungquantin requested a review from AlexD10S March 5, 2025 07:56
@chungquantin chungquantin force-pushed the chungquantin/feat-filter_mode branch from 6c1e34c to 00f8818 Compare March 10, 2025 08:41
@chungquantin chungquantin changed the title feat: add the filter mode to Cli feat: add the filter mode and password to Cli Mar 10, 2025
@chungquantin chungquantin merged commit 87a0ab8 into main Mar 10, 2025
18 of 20 checks passed
@chungquantin chungquantin deleted the chungquantin/feat-filter_mode branch March 10, 2025 09:44
chungquantin added a commit that referenced this pull request Mar 24, 2025
* feat: add the filter mode to cli

* chore: rebase

* chore: revert cargo.lock and add more ignore

* chore: update cargo-deny-action@v2

* chore: revert relay.rs changes

* chore: remove vulnerabilities by upgrade zombienet

* chore: rebase

* chore: clippy warning

* chore: revert not relevant changes

* chore: add password to the Cli (#449)

* chore: add password input in cli module

* chore: format

---------

Co-authored-by: Alex Bean <[email protected]>
AlexD10S added a commit that referenced this pull request Mar 25, 2025
* refactor: check binary and prompt

* feat: add binary generator

* feat: update parachain templates (#297)

* feat: include new parachain template and remove old one for Parity

* fix: tests

* fix: order in test

* fix: export PATH

* chore: bump zombienet-sdk version

* fix: remove parity evm

* fix: missing changes

* fix: parse collator and parachain-template-node without path for spawn

* chore: remove set PATH

* refactor: functionality and test

* refactor: prefix for external templates

* fix: deprecate old command for generating parity contracts template

* test: update configure_works test to test new functionality

* test: fix unit tests templates

* fix: show deprecation message and fixes

* docs: improve comments

* refactor: nitpicks in parachain description

* fix: logic for substrate-contracts-node without path in config file

* feat: support v3.0.0 of OpenZeppelin templates

* docs: improve template docs and comments

* test: improve comments for clarity

* fix: support different profiles when path is not specified

* refactor: code improvements

* refactor: improve import

* fix: remove onboard.rs empty file (#433)

* chore: update cargo-deny-action@v2 (#439)

* chore: update cargo-deny-action@v2

* chore: revert cargo.lock and add more ignore

* fix: docker missing toolchain

* chore: revert relay.rs changes

* chore: remove vulnerabilities by upgrade zombienet

* fix: hardcoded test failing in the CI (#448)

* fix: remove hardcoded node name in test

* fix: bump versions in Cargo.lock to fix deny

* chore: ignore unmantained vulnerability

* fix: cargo deny unmaintained crate

---------

Co-authored-by: chungquantin <[email protected]>

* feat: add the filter mode and password to `Cli` (#435)

* feat: add the filter mode to cli

* chore: rebase

* chore: revert cargo.lock and add more ignore

* chore: update cargo-deny-action@v2

* chore: revert relay.rs changes

* chore: remove vulnerabilities by upgrade zombienet

* chore: rebase

* chore: clippy warning

* chore: revert not relevant changes

* chore: add password to the Cli (#449)

* chore: add password input in cli module

* chore: format

---------

Co-authored-by: Alex Bean <[email protected]>

* chore: resolve unmaintained crate & clippy warnings (#454)

* chore: resolve clippy warnings

* fix: unmantained crate

* chore: hard-coded the version of pop-node binary

* chore: fix pop-node CI issue

* feat: register parachain (#404)

* test: detects_project_type_correctly

* feat: parachain deployment in pop up

* fix: parachain feature

* docs: improve comments

* feat: replace index.html with summary costs in ui (#430)

* refactor: rename parachain to rollup

* docs: improve deprecation message

* refactor: rename parachain to rollup in up help

* feat: logic for parachain registration (#410)

* feat: deploy a parachain commands

* feat: build specs in pop up

* feat: logic to interact with a chain

* feat: register parachain

* refactor: clean code and improve docs

* test: unit tests for pop up methods

* refactor: small fixes with visibility and removing logs

* feat: return events in submit_signed_extrinsic

* feat: get para_id from event

* test: fix detects_parachain_correctly

* refactor: improve docs and code

* test: fix change_working_directory_works

* fix: clippy warnings

* refactor: move submit_extrinsic_with_wallet in a common file

* refactor: remove unnecesary code

* refactor: UpChainCommand structure

* test: adjust tests to refactored struct

* refactor: renaming prepare_register_parachain_call_data and prepare_rerve_parachain_call_data

* refactor: move events module

* fix: submit_extrinsic_with_wallet under parachain feature

* refactor: remove unnecesary code

* test: increase coverage with reserve_parachain_id_fails_wrong_chain and resolve_genesis_files_fails_wrong_path

* refactor: remove unnecesary clones

* refactor: minor improvements

* test: refactor tests and include comments

* refactor: map errors in submit_extrinsic_with_wallet

* test: fix prepare_register_parachain_call_data_works

* refactor: move configure_chain into a common folder

* refactor: function visibility

* fix: error message and include test for it

* refactor: build specs removing repetitive code

* refactor: use prepare_extrinsic from Call module to prepare a call

* docs: improve comments and messages

* refactor: rename variables and structs

* refactor: relay_chain_url

* refactor: rename prepare_reserve_call_data and prepare_register_call_data

* test: remove unnecesary test

* refactor: remove events module

* refactor: rename parachain to rollup

* chore: improve succesful message

* chore: change intro title to use rollup

* docs: comments for Reserved event

* refactor: improve readability with chain::configure

* refactor: improve message and clean code

* feat: build deterministic runtime (#425)

* test: detects_project_type_correctly

* feat: parachain deployment in pop up

* fix: parachain feature

* docs: improve comments

* feat: deploy a parachain commands

* feat: build specs in pop up

* feat: logic to interact with a chain

* feat: register parachain

* refactor: clean code and improve docs

* test: unit tests for pop up methods

* refactor: small fixes with visibility and removing logs

* feat: return events in submit_signed_extrinsic

* feat: get para_id from event

* test: fix detects_parachain_correctly

* refactor: improve docs and code

* test: fix change_working_directory_works

* fix: clippy warnings

* refactor: move submit_extrinsic_with_wallet in a common file

* refactor: remove unnecesary code

* refactor: UpChainCommand structure

* test: adjust tests to refactored struct

* refactor: renaming prepare_register_parachain_call_data and prepare_rerve_parachain_call_data

* refactor: move events module

* fix: submit_extrinsic_with_wallet under parachain feature

* refactor: remove unnecesary code

* test: increase coverage with reserve_parachain_id_fails_wrong_chain and resolve_genesis_files_fails_wrong_path

* refactor: remove unnecesary clones

* refactor: minor improvements

* test: refactor tests and include comments

* refactor: map errors in submit_extrinsic_with_wallet

* test: fix prepare_register_parachain_call_data_works

* feat: container_engine to detect container to use

* feat: generate_deterministic_runtime logic

* feat: srtool logic

* feat: build deterministic runtime in build spec command

* feat: update_runtime_code

* test: include tests for updateing code

* refactor: clean unnecesary code

* test: in container_engine

* refactor: docker warning in container_engine

* chore: improve screen messaging

* refactor: use profile picked by the user

* refactor: docs in ContainerEngine and clean prints

* fix: generate_deterministic_runtime parameter

* refactor: rename, improve messages and clean empty lines

* feat: extract package name automatically from runtime dir

* docs: change broken link

* refactor: update srtool_lib crate and remove unnecesary code

* docs: include srtool in Acknowledgements

* refactor: remove unnecesary Error

* test: detects_project_type_correctly

* feat: parachain deployment in pop up

* fix: parachain feature

* docs: improve comments

* feat: replace index.html with summary costs in ui (#430)

* refactor: rename parachain to rollup

* docs: improve deprecation message

* refactor: rename parachain to rollup in up help

* feat: deploy a parachain commands

* feat: build specs in pop up

* feat: logic to interact with a chain

* feat: register parachain

* refactor: clean code and improve docs

* test: unit tests for pop up methods

* refactor: small fixes with visibility and removing logs

* feat: return events in submit_signed_extrinsic

* feat: get para_id from event

* test: fix detects_parachain_correctly

* refactor: improve docs and code

* test: fix change_working_directory_works

* fix: clippy warnings

* refactor: move submit_extrinsic_with_wallet in a common file

* refactor: remove unnecesary code

* refactor: UpChainCommand structure

* test: adjust tests to refactored struct

* refactor: renaming prepare_register_parachain_call_data and prepare_rerve_parachain_call_data

* refactor: move events module

* fix: submit_extrinsic_with_wallet under parachain feature

* refactor: remove unnecesary code

* test: increase coverage with reserve_parachain_id_fails_wrong_chain and resolve_genesis_files_fails_wrong_path

* refactor: remove unnecesary clones

* refactor: minor improvements

* test: refactor tests and include comments

* refactor: map errors in submit_extrinsic_with_wallet

* test: fix prepare_register_parachain_call_data_works

* refactor: move configure_chain into a common folder

* refactor: function visibility

* fix: error message and include test for it

* refactor: build specs removing repetitive code

* refactor: use prepare_extrinsic from Call module to prepare a call

* docs: improve comments and messages

* refactor: rename variables and structs

* refactor: relay_chain_url

* refactor: rename prepare_reserve_call_data and prepare_register_call_data

* test: remove unnecesary test

* refactor: remove events module

* refactor: rename parachain to rollup

* chore: improve succesful message

* chore: change intro title to use rollup

* docs: comments for Reserved event

* chore: always prompt the user to build runtime deterministacally and improve message

* docs: improve and add missing comments

* refactor: clean code to prompt for the package and runtime dir

* docs: improve warning message

* refactor: rename variables and structs

* fix: throw error message when build deterministic runtime fail

* feat: include skip_deterministic_build flag to avoid prompting the user

* docs: improve comments

* feat: use a proxy for the registration (#427)

* test: detects_project_type_correctly

* feat: parachain deployment in pop up

* fix: parachain feature

* docs: improve comments

* feat: deploy a parachain commands

* feat: build specs in pop up

* feat: logic to interact with a chain

* feat: register parachain

* refactor: clean code and improve docs

* test: unit tests for pop up methods

* refactor: small fixes with visibility and removing logs

* feat: return events in submit_signed_extrinsic

* feat: get para_id from event

* test: fix detects_parachain_correctly

* refactor: improve docs and code

* test: fix change_working_directory_works

* fix: clippy warnings

* refactor: move submit_extrinsic_with_wallet in a common file

* refactor: remove unnecesary code

* refactor: UpChainCommand structure

* test: adjust tests to refactored struct

* refactor: renaming prepare_register_parachain_call_data and prepare_rerve_parachain_call_data

* refactor: move events module

* fix: submit_extrinsic_with_wallet under parachain feature

* refactor: remove unnecesary code

* test: increase coverage with reserve_parachain_id_fails_wrong_chain and resolve_genesis_files_fails_wrong_path

* refactor: remove unnecesary clones

* refactor: minor improvements

* test: refactor tests and include comments

* refactor: map errors in submit_extrinsic_with_wallet

* test: fix prepare_register_parachain_call_data_works

* refactor: move configure_chain into a common folder

* refactor: function visibility

* fix: error message and include test for it

* feat: construct_proxy_extrinsic

* feat: prompt for proxy address in the UI

* docs: improve flag description and display command to be executed

* docs: improve prompt to the user message for proxy

* feat: replace index.html with costs for calls with proxy in ui

* refactor: remove display command information (separate PR)

* test: fix resolve_proxy_address_works

* refactor: rename and more clear messages for the user to prompt proxied account

* chore: update index.html with latest changes

* test: fix format

* test: detects_project_type_correctly

* feat: parachain deployment in pop up

* fix: parachain feature

* docs: improve comments

* feat: replace index.html with summary costs in ui (#430)

* refactor: rename parachain to rollup

* docs: improve deprecation message

* refactor: rename parachain to rollup in up help

* feat: deploy a parachain commands

* feat: build specs in pop up

* feat: logic to interact with a chain

* feat: register parachain

* refactor: clean code and improve docs

* test: unit tests for pop up methods

* refactor: small fixes with visibility and removing logs

* feat: return events in submit_signed_extrinsic

* feat: get para_id from event

* test: fix detects_parachain_correctly

* refactor: improve docs and code

* test: fix change_working_directory_works

* fix: clippy warnings

* refactor: move submit_extrinsic_with_wallet in a common file

* refactor: remove unnecesary code

* refactor: UpChainCommand structure

* test: adjust tests to refactored struct

* refactor: renaming prepare_register_parachain_call_data and prepare_rerve_parachain_call_data

* refactor: move events module

* fix: submit_extrinsic_with_wallet under parachain feature

* refactor: remove unnecesary code

* test: increase coverage with reserve_parachain_id_fails_wrong_chain and resolve_genesis_files_fails_wrong_path

* refactor: remove unnecesary clones

* refactor: minor improvements

* test: refactor tests and include comments

* refactor: map errors in submit_extrinsic_with_wallet

* test: fix prepare_register_parachain_call_data_works

* refactor: move configure_chain into a common folder

* refactor: function visibility

* fix: error message and include test for it

* refactor: build specs removing repetitive code

* refactor: use prepare_extrinsic from Call module to prepare a call

* docs: improve comments and messages

* refactor: rename variables and structs

* refactor: relay_chain_url

* refactor: rename prepare_reserve_call_data and prepare_register_call_data

* test: remove unnecesary test

* refactor: remove events module

* refactor: rename parachain to rollup

* chore: improve succesful message

* chore: change intro title to use rollup

* docs: comments for Reserved event

* refactor: clean code to avoid unnecesary clone

* feat: wrap Id by default in the proxy address and improve comment

* refactor: remove ProxyConfig and use Proxy

* refactor: resolve_proxied_address

* fix: change visibility for prompt_for_param

* refactor: more clarity in code variables and comments

* refactor: custom message to prompt for proxy address

* refactor: support only Account Id type for proxied_address

* test: remove unnecesary async in resolve_proxied_address_works

* fix: clippy warnings

* chore: improve deterministic runtime flow (#460)

* chore: hide srtool logs

* chore: include runtime file in the Generated files message

* chore: update with latest index.html

* refactor: small improvements

* refactor: improve the building runtime message

* fix: display events when wallet-signing (#463)

* feat: enable `pop test` without project type specification (#466)

* refactor: test_project to support testing any rust project

* test: unit tests in test mod

* docs: fix pop_contracts test docs

* docs: fix comment in TestCommand error

* refactor: improve docs and visibility

* chore: add doc for macro and test for contracts

* fix: executable permission

---------

Co-authored-by: Alex Bean <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-final-review The PR is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants