Opened 17 years ago
Closed 10 years ago
#6066 closed New feature (wontfix)
Post-syncdb signal should include a list of done/to-be-done apps.
Reported by: | Jacob | Owned by: | floguy |
---|---|---|---|
Component: | Core (Management commands) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | yes | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
See #2453 -- sometimes you need to run code/SQL at a particular point during initialization. I'd think two params: done
and {{todo}}}, each of which contains a list of apps that have/have not yet been processed.
(Of course, other implementation ideas are welcome; that's just the first that comes to my mind.)
Attachments (2)
Change History (12)
comment:1 by , 17 years ago
Needs tests: | set |
---|
by , 17 years ago
Added done and todo as kwargs to the post_syncdb signal
comment:2 by , 17 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 17 years ago
Has patch: | set |
---|
by , 17 years ago
Attachment: | 6066-2.diff added |
---|
Updated patch to newest qs-rf revision 7260, and (potentially) fixed speed a bit. All tests pass.
comment:4 by , 17 years ago
This doesn't have anything to do with qs-rf does it? I can't see any dependency there. So it should just be applied directly to trunk (although I suspect the existing patch will apply to trunk as well, since I've only made minimal changes in that file on the branch).
comment:5 by , 17 years ago
Yeah, I just applied it to qs-rf since there were > 0 changes in sql.py in that branch. I just checked and it does in fact apply cleanly to trunk.
comment:6 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → New feature |
comment:9 by , 12 years ago
Component: | Core (Other) → Core (Management commands) |
---|
comment:10 by , 10 years ago
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
I don't think this feature request makes sense anymore after the migrations refactor.
If you want to reframe it in a way that's compatible with migrations, please open a new ticket referencing this one.
Added done and todo as kwargs to the post_syncdb signal.
todo is a set containing the apps which need to be signalled, including the current app.
done is a set containing the apps which have already been signalled, excluding the current app.