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

EZP-31930: Cleaned up output of commands displaying progress bar #3070

Merged
merged 1 commit into from
Oct 23, 2020

Conversation

alongosz
Copy link
Member

@alongosz alongosz commented Oct 22, 2020

Question Answer
JIRA issue EZP-31930
Required by ezsystems/ezplatform#597
Bug/Improvement yes
New feature no
Target version 7.5, ezplatform-kernel:1.1, ezplatform-kernel:master
BC breaks no
Tests pass yes
Doc needed no

TL;DR;

Cleaned up output showing a progress bar for the following commands:

  • ezplatform:install
  • ezplatform:reindex

to resolve issues discovered in ezsystems/ezplatform#597

Summary

This is an attempt to further cleanup output of commands used by composer ezplatform-install with ANSI mode. While ANSI solves most important issues, sometimes ProgressBar gets randomly repeated after a command finishes execution and next output appears (either terminal prompt or from chained next command), as can be seen ezsystems/ezplatform#597 (comment)

The issues occurring are not deterministic and the fix is a result of trial & error approach.

Known issues

Sometimes the progress bar of ezplatform:reindex either disappears or shows 0%. Seems it's a random race issue due to small volume of data and the operation being too quick for terminal buffer to adjust.

TODO:

  • Fix a bug.
  • Implement tests. // covered implicitly by every behat scenario
  • Fix new code according to Coding Standards ($ composer fix-cs).
  • Ask for Code Review.

Cleaned up output showing a progress bar for the following commands:
* ezplatform:install
* ezplatform:reindex
@alongosz alongosz force-pushed the fix-7.5/fix-ezplatform-install-progress-bar branch from c7850ef to d53cfd4 Compare October 22, 2020 18:05
@alongosz alongosz requested a review from a team October 22, 2020 18:05
@alongosz alongosz merged commit 2d89674 into 7.5 Oct 23, 2020
@alongosz alongosz deleted the fix-7.5/fix-ezplatform-install-progress-bar branch October 23, 2020 09:31
alongosz added a commit to ezsystems/ezplatform that referenced this pull request Oct 23, 2020
Applied ANSI style to Symfony commands executed via `composer ezplatform-install`.

For more details please see ezsystems/ezpublish-kernel#3070 and #597
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

5 participants