You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(marketplace): address review on the duplication flow
Polling:
- drop `pollJob` (marked DO NOT USE -- it orphans pollers on navigation) in
favour of a `pollJobRequest` interval owned by DuplicateConfirmation and torn
down by its effect cleanup
- handle a rejected duplicate request, which previously left the prompt
disabled with no job to re-enable it
Destination tab:
- keep an omitted `destination_tab_id` nil instead of coercing it to 0, so the
job falls back to the destination course's default tab
- redirect to the tab the copies actually landed in, and to that tab's own
category, rather than to `tab=0` or a tab from another course
Adoptions:
- record them before the duplicates' `after_duplicate_save` callbacks run, so a
failure rolls the transaction back before that work rather than undoing it
- move the per-copy rule onto `Course::Assessment#record_marketplace_adoption`,
next to the association and `initialize_duplicate`; the service keeps only the
sweep, which the `after_duplicate_save` hook cannot replace (it never runs
during course duplication)
Messages:
- pass `n` to the pluralised `duplicateTitle` and `duplicateFailed`, which were
formatted without it
- give `duplicateBody`'s `other` branch the count its locale strings already had
- drop an `as never` cast that disabled type-checking on the test's props
0 commit comments