-
Notifications
You must be signed in to change notification settings - Fork 19
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
New Partitioner UI based on dynamic menu-buttons #752
Merged
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
8f28560
The Edit button always edits
ancorgs 930c7c4
Allow to select the next tab by its label
ancorgs 3d245ca
Remove :short option from PartitionAddButton
ancorgs 9effec6
Actions executed from the table select the proper row at the end
ancorgs c661458
Do not open disks in the Partitions tab by default
ancorgs 950c892
Use DeviceButtonsSet in all tables except system
ancorgs ec5bf85
Use DeviceResizeButton only for resizing, not to change PVs
ancorgs f1094b8
Fix wrong memoization
ancorgs e318e56
Redefine buttons in the different pages
ancorgs bc25efc
Remove not longer used buttons
ancorgs 60aa9a4
Simplify DeviceButton, searching in table is not used
ancorgs 5ae257b
Handle StrayBlkDevice in the Hard Disks table
ancorgs efe7f98
Adapt Partitioner unit tests to the new UI
ancorgs ebe0b34
Some code improvements
ancorgs 1949922
Add some missing unit test
ancorgs 7e8e997
Do not re-document what is documented in base classes
ancorgs 47674c8
Adapt bcache table to the new UI
ancorgs a4ba9e6
Pages::DevicesTable as base class for 4 pages
ancorgs b107fc5
Avoid cyclic dependency of UIState and Pages
ancorgs e01da15
Code improvements
ancorgs 90fa0b9
Delete All button in LVs list (consistent with partitions list)
ancorgs 59a7b2c
More robust and tested DeviceMenuButton
ancorgs af5f9c1
Version and changelog
ancorgs 9c39c04
Improve method documentation
ancorgs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be nil or exception? if so, then please document it that it can also return nil.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I would never expect
#handle
to be called with no arguments (or with a nil argument) sincehandle_all_events
is used.Unfortunately, supporting that case is needed in order to be able to use
include_examples "CWM::AbstractWidget"
which always calls#handle
with no arguments, so I have to adapt the class to ignore such wrong calls.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, yeah. That is problematic, because for calls it uses arity and rspec mock basically mocks call with *args, so -1 arity and it breaks this test. Please add comment for it, as it is quite tricky.