Merge lp:~james-w/vostok/add-sourcepackagerelease-model into lp:vostok
Proposed by
James Westby
Status: | Rejected |
---|---|
Rejected by: | James Westby |
Proposed branch: | lp:~james-w/vostok/add-sourcepackagerelease-model |
Merge into: | lp:vostok |
Prerequisite: | lp:~james-w/vostok/add-series-model |
Diff against target: |
117 lines (+73/-0) 3 files modified
vostok/archives/factory.py (+14/-0) vostok/archives/models.py (+25/-0) vostok/archives/tests.py (+34/-0) |
To merge this branch: | bzr merge lp:~james-w/vostok/add-sourcepackagerelease-model |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Registry Administrators | Pending | ||
Review via email: mp+26750@code.launchpad.net |
Commit message
Add a SourcePackageRe
Description of the change
Then the bare minimum of a SourcePackageRe
Thanks,
James
To post a comment you must log in.
Unmerged revisions
- 31. By James Westby
-
Add __unicode__ to SourcePackageRe
lease. - 30. By James Westby
-
Have the factory save SourcePackageRe
leases as they are created. - 29. By James Westby
-
Merged add-series-model into add-sourcepacka
gerelease- model. - 28. By James Westby
-
Merge add-series-model in to add-sourcepacka
gerelease- model. - 27. By James Westby
-
Add date_uploaded.
- 26. By James Westby
-
Add version to SourcePackageRe
lease. - 25. By James Westby
-
Add source_name to SourcePackageRe
lease. - 24. By James Westby
-
Merged add-series-model into add-sourcepacka
gerelease- model. - 23. By James Westby
-
Add SourcePackageRe
lease skeleton. - 22. By James Westby
-
Add status to Series.
58 + # TODO: uploader, signer
This makes me go, "hm, yes, how are we going to represent people?"
We should certainly validate the format of the package name and version number.
Is there some way to get django to generate a schema that has a default of now for date_uploaded?
+# XXX: how much should we .save() the models?
This is a fun issue too: if you're not careful you can create objects that violate database constraints because they are never flushed to the database. OTOH, you don't want to hit the database because that slows the tests down. I don't think there's a happy answer here, although maybe it's less of an issue in vostok compared Launchpad because we're using an automatically generated schema with less exotic constraints.
The code looks inoffensive enough, it just prompts some more questions :-)