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 pagination support for buildtest history subcommands #1424

Merged
merged 7 commits into from
Mar 20, 2023

Conversation

prathmesh4321
Copy link
Collaborator

Hi @shahzebsiddiqui . Please review the PR. I didn't add short "-p" option because it was giving a conflict error. Also, for the "--pager" option along the "--output" (buildtest history --pager query 0 --output) the output looks somewhat unreadable (see the image below) as there are these "ESC" characters in the output.txt. Do you think it is a good idea to keep the --pager option for the above command ?

Screen Shot 2023-03-15 at 10 37 37 AM

Screen Shot 2023-03-15 at 2 10 33 AM

Screen Shot 2023-03-15 at 10 38 41 AM

@prathmesh4321 prathmesh4321 linked an issue Mar 15, 2023 that may be closed by this pull request
7 tasks
@shahzebsiddiqui
Copy link
Member

Hi @shahzebsiddiqui . Please review the PR. I didn't add short "-p" option because it was giving a conflict error. Also, for the "--pager" option along the "--output" (buildtest history --pager query 0 --output) the output looks somewhat unreadable (see the image below) as there are these "ESC" characters in the output.txt. Do you think it is a good idea to keep the --pager option for the above command ?

Screen Shot 2023-03-15 at 10 37 37 AM Screen Shot 2023-03-15 at 2 10 33 AM Screen Shot 2023-03-15 at 10 38 41 AM

i see in that case we can remove the --pager option from the buildtest history query -o --pager 0 when viewing the output. For the log i think we are opening in editor so no point it paging this feature. Let's just do buildtest history list in that case.

@prathmesh4321
Copy link
Collaborator Author

Hi @shahzebsiddiqui. I have added the --pager option in terse mode for buildtest history list please review it.

@shahzebsiddiqui shahzebsiddiqui merged commit ff6de89 into devel Mar 20, 2023
@shahzebsiddiqui shahzebsiddiqui deleted the history_pagination branch March 20, 2023 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE]: add pagination support for 'buildtest history'
2 participants