Opened 10 years ago

Closed 9 years ago

#21652 closed New feature (fixed)

Make ``loaddata`` notify about how many objects from fixture got processed

Reported by: while0pass Owned by: yitzc
Component: Core (Management commands) Version: dev
Severity: Normal Keywords:
Cc: while0pass@…, yitzc Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When fixture is not very small, it may take perceptibly a long while to load it. And currently there is no output from the command irrespective of verbosity level. It usually makes people feel anxious when script freezes for a long time without any output.

I have a basic patch for loaddata (see attached diff file), but I could try making something more informative if the idea is welcomed.

Attachments (1)

ticket.21652--r.046a8eb9c499e0281a8e263a66e05dd6305d9e4e.diff (1.1 KB ) - added by while0pass 10 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 by Simon Charette, 10 years ago

Needs documentation: set
Triage Stage: UnreviewedAccepted

comment:2 by while0pass, 10 years ago

Cc: while0pass@… added

comment:3 by while0pass, 10 years ago

Summary: responsive output of ``loaddata`` about how many objects got loadedMake ``loaddata`` notify about how many objects from fixture got processed

comment:4 by yitzc, 9 years ago

Needs documentation: unset
Owner: changed from nobody to yitzc
Status: newassigned

Converted attached patch to PR
Asking around in the sprint room people agreed that this doesn't really need its own documentation...

comment:5 by yitzc, 9 years ago

Cc: yitzc added

comment:6 by Tim Graham, 9 years ago

Triage Stage: AcceptedReady for checkin

comment:7 by Simon Charette, 9 years ago

Patch needs improvement: set
Triage Stage: Ready for checkinAccepted

I think using \r would make more sense here.

comment:8 by Tim Graham, 9 years ago

Patch needs improvement: unset

comment:9 by Simon Charette, 9 years ago

Triage Stage: AcceptedReady for checkin

comment:10 by Tim Graham <timograham@…>, 9 years ago

Resolution: fixed
Status: assignedclosed

In 188a2418:

Fixed #21652 -- Added notification when processing objects in loaddata

Added a running count of the objects processed by loaddata when
verbosity >= 3.

Note: See TracTickets for help on using tickets.
Back to Top