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

Prysmctl ui bug #14140

Merged
merged 2 commits into from
Jun 25, 2024
Merged

Prysmctl ui bug #14140

merged 2 commits into from
Jun 25, 2024

Conversation

saolyn
Copy link
Contributor

@saolyn saolyn commented Jun 24, 2024

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

This PR solves a bug to the prysmctl ui where given a list of 20 or more validators the user would be unable to scroll through and select the validators to exit.

This was due to setting a dynamic size of len(pubKeyStrings) in the promptui.Select statement which set the window size for the interactive selection. This meant that when someone had over 20 keys, the window would be so large that the scrolling would break.
Fixing the window size to 10 items solves the problem on all affected versions of prysm (v5+).

Which issues(s) does this PR fix?

Fixes #14092

Other notes for review

@saolyn saolyn requested a review from james-prysm June 24, 2024 23:48
@saolyn saolyn requested a review from a team as a code owner June 24, 2024 23:48
@saolyn saolyn requested review from rkapka and nisdas June 24, 2024 23:48
james-prysm
james-prysm previously approved these changes Jun 25, 2024
Copy link
Contributor

@james-prysm james-prysm left a comment

Choose a reason for hiding this comment

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

i can't believe that's the solution...

@james-prysm james-prysm dismissed their stale review June 25, 2024 03:18

pausing for discussion

@saolyn saolyn added this pull request to the merge queue Jun 25, 2024
Merged via the queue into develop with commit 5f0d607 Jun 25, 2024
16 of 17 checks passed
@saolyn saolyn deleted the prysmctl-ui-bug branch June 25, 2024 13:20
This pull request was closed.
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.

Prysmctl: Interactive UI is broken for selecting validators to exit
2 participants