Skip to content

Fix: repair import progress hook and emit stable stage ids#227

Merged
taylortom merged 1 commit into
masterfrom
fix/import-progress-hook
Jul 1, 2026
Merged

Fix: repair import progress hook and emit stable stage ids#227
taylortom merged 1 commit into
masterfrom
fix/import-progress-hook

Conversation

@taylortom

Copy link
Copy Markdown
Contributor

Fixes #226

Fix

  • Forward the progress payload in the module importProgressHook bridge; it was passing the importer instance, which the websocket relay serialised into an infinite loop (Maximum call stack size exceeded).

Update

  • Emit { id, labelKey } stage descriptors from the import loop instead of raw method names + step counts, so consumers render progress without hard-coding the phase list.
  • Drop the redundant per-item progress events.

Testing

  • Import a course with a client subscribed to import progress; it completes without the stack-overflow crash and reports stage transitions.

- Forward the progress payload in the module hook bridge; it was passing the importer instance, which the websocket relay serialised into an infinite loop (Maximum call stack size exceeded).
- Emit { id, labelKey } stage descriptors from the import loop instead of raw method names + step counts, and drop the redundant per-item progress events.
@taylortom
taylortom merged commit ea23ffc into master Jul 1, 2026
2 checks passed
@taylortom
taylortom deleted the fix/import-progress-hook branch July 1, 2026 14:13
github-actions Bot pushed a commit that referenced this pull request Jul 1, 2026
## [3.4.1](v3.4.0...v3.4.1) (2026-07-01)

### Docs

* Add README ([044cbc8](044cbc8))

### Fix

* repair import progress hook and emit stable stage ids (fixes #226) (#227) ([ea23ffc](ea23ffc)), closes [#226](#226) [#227](#227)
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 3.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Course import fails with 'Maximum call stack size exceeded'

1 participant