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

UI rewrite #145

Merged
merged 305 commits into from
Nov 26, 2020
Merged

UI rewrite #145

merged 305 commits into from
Nov 26, 2020

Conversation

dlax
Copy link
Member

@dlax dlax commented Jul 16, 2020

This PR concerns the rewrite of the UI part of pg_activity using blessed. It also includes packaging improvements and introduces a modern QA setup.

@dlax dlax force-pushed the ui-rewrite branch 5 times, most recently from aaac543 to ebf88be Compare July 17, 2020 14:51
@dlax dlax force-pushed the ui-rewrite branch 11 times, most recently from dc98584 to 5a55b84 Compare August 11, 2020 15:49
@dlax dlax force-pushed the ui-rewrite branch 4 times, most recently from 2cf01f7 to 2b63a21 Compare August 14, 2020 09:14
dlax added 8 commits October 5, 2020 10:53
Since psutil_proc attribute cannot be deserialized, we make it optional
and check for this in update_processes_local().
Test data was obtained from a live session of pg_activity in local mode.
Copy/adjusted from UI.get_indent().
The ActivityBW is slightly different from Activity.
So that this matches ActivityProcess's duration field name.
@dlax
Copy link
Member Author

dlax commented Nov 20, 2020

Last commits add support for the "tag" action in interactive mode.

dlax and others added 6 commits November 21, 2020 12:59
This way, we filter out keys that would not make sense when respective
column is not shown.
We rework the column width calculation in render_footer() and possible
crop the text it it would exceed terminal width.
dlax added 6 commits November 25, 2020 14:00
We now print shortened lines in limit() decorator, using the added
shorten() helper function. The width of lines can be controlled as a
view parameter (useful in tests) and defaults to terminal width.
Following up UI rewrite.
This reverts commit 8ea35b8 because it
seems more natural to have the 'q' not to exit the program when in help
menu.
dlax added 3 commits November 26, 2020 10:52
Follow-up on 72dfcb1, but missed
because of NORMALIZE_WHITESPACE doctest flag.
This would happen *normally* upon 'cancel' or 'terminate' actions.
In order to hopefully resolve flakyness in CI.
@dlax dlax merged commit 2ceaed8 into dalibo:master Nov 26, 2020
@dlax dlax deleted the ui-rewrite branch November 26, 2020 10:11
@julmon
Copy link
Contributor

julmon commented Nov 26, 2020

Huge work @dlax! I will give it a try next week. Many thanks!

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