Skip to content

Replace CLI import/export progress display#2286

Open
sbreker wants to merge 5 commits intoqa/2.xfrom
dev/cli-import-export-status
Open

Replace CLI import/export progress display#2286
sbreker wants to merge 5 commits intoqa/2.xfrom
dev/cli-import-export-status

Conversation

@sbreker
Copy link
Member

@sbreker sbreker commented Feb 2, 2026

  • Remove per-row dot output. renderProgressDescription() now writes a single update line to STDERR every ~5s.
  • Print a final summary to STDOUT.

@sbreker sbreker force-pushed the dev/cli-import-export-status branch 3 times, most recently from c24794a to b062a02 Compare February 10, 2026 18:57
@sbreker sbreker force-pushed the dev/cli-import-export-status branch 2 times, most recently from 7eb21eb to a9e11fe Compare February 23, 2026 21:55
- Remove per-row dot output. renderProgressDescription() now writes a
  single update line to STDERR every ~5s.
- Print a final summary to STDOUT.
@sbreker sbreker force-pushed the dev/cli-import-export-status branch from a9e11fe to df03843 Compare February 23, 2026 21:56
@sbreker sbreker marked this pull request as ready for review February 23, 2026 22:01
@sbreker sbreker requested a review from a team February 23, 2026 22:02
Copy link
Contributor

@anvit anvit left a comment

Choose a reason for hiding this comment

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

Thanks @sbreker ! I had a minor nitpick but looks good otherwise!

$this->log("\nImported ".$count.' XML/CSV files in '.$timer->elapsed().' s. '.memory_get_peak_usage().' bytes used.');
if (!empty($options['verbose'])) {
$elapsed = $timer->elapsed();
$peakMb = round(memory_get_peak_usage() / 1048576, 2);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use a constant instead 1048576? Or use 1024 * 1024 for easier comprehension and consistency like QubitFlatFileImport does?

@anvit
Copy link
Contributor

anvit commented Mar 2, 2026

Also wanted to note that the docs will need some updates. I noticed at a quick glance that items-until-update has been documented in our CLI tools docs

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