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

Add show and list commands #16

Merged
merged 2 commits into from
Nov 2, 2022
Merged

Add show and list commands #16

merged 2 commits into from
Nov 2, 2022

Conversation

the-masthead
Copy link
Contributor

No description provided.

Comment on lines +20 to +23
if (flags.owner) {
const owner = normalizeHex(flags.owner);
data = data.filter((value: { owner: string }) => value.owner.toLowerCase() === owner.toLowerCase());
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Since the contract isn't implementing this filter, feels like the results might be unexpected when using the pagination flags.

If the contract data was: projects = [ownerA, ownerB] and the user ran armada project list --owner ownerB --size 1, this implementation would return an empty result.

Given that, I wonder if we should just drop the filter... let people pipe into jq if they need it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should be fixed in #18

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can this go in now, or do you think this flags needs to be removed until #18 is in?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not bothered by what order things happen as we're refactoring pretty rapidly

Copy link
Contributor

@the-flagship the-flagship left a comment

Choose a reason for hiding this comment

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

Approval if you want to merge now.

@the-masthead the-masthead merged commit 1ee2259 into main Nov 2, 2022
@the-masthead the-masthead deleted the show-list-commands branch November 2, 2022 17:43
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