-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[2.2] - Add command to view mview state and queue #12122
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
Merged
magento-team
merged 18 commits into
magento:2.2-develop
from
convenient:2-2-0-mview-list
Dec 7, 2017
Merged
Changes from 15 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
9021561
Add command to view mview state and queue
convenient 1e34fde
Make indexer status mview 5.5 compatible
convenient 6d3bffa
Use factories/interfaces correctly
convenient dede2d1
Update code style
convenient fa1b310
Remove the copyright year from file headers
convenient f4857ec
Fix extends phpunit class
convenient c80710a
Add mview getListSize command
convenient 63ec3f7
Remove indexer:status:mview command
convenient d3d300b
Update indexer:status to display schedule backlog
convenient c63330f
Remove status-mview from di.xml
convenient 709f88a
Update method visibility
convenient 831000b
Correctly assert table output
convenient 62e67e1
Code style fixes
convenient 4af04b1
Add ChangelogCounterInterface
convenient 700fe22
Add command to view mview state and queue
ihor-sviziev ca50c9d
Remove backwards breaking ChangelogCounterInterface
convenient 10df2ce
Replace getListSize with getList
convenient 3d34bc8
Remove changes to Changelog
convenient 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 hidden or 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 hidden or 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
Oops, something went wrong.
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.
\Magento\Framework\Mview\ViewInterface::getChangelog
returns\Magento\Framework\Mview\View\ChangelogInterface
so methodgetListSize
cannot be used here as it is declared inChangelogCounterInterface
and is unkown in this code.Seems there is no clean and backward compatible solution to implement counting without list load. I propose in the scope of this PR implement counting as was done in the initial version with
count($changelog->getList())
and process this PR to deliver this feature to M2. Once PR will be merged new PR may be created with a refactoring of changelog and performance optimization.@convenient, @ihor-sviziev, @kandy are you agree with this plan?
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.
Thanks @vkublytskyi I was really struggling to balance out clean/backwards-compatability as you noted.
If @kandy agrees my plan of action will be
count($changelog->getList())
with associated testsSound good?
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.
Ok, looks good for me