We should have a registry_files table which contains the files and their MD5 checksums. If it has not changed then we can skip the rebuilding. Of course, we should lose the DELETE FROM registry query. While creating this table, we should have a 'bundle' column for the next issue. For now, it's the same as the filename.
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | registry_tests_broken.patch | 3.78 KB | recidive |
| #10 | registry_tests_2.patch | 3.8 KB | Anonymous (not verified) |
| #8 | registry_tests.patch | 3.79 KB | Anonymous (not verified) |
| #7 | registry_tests.patch | 4.52 KB | Anonymous (not verified) |
| #3 | registry_tests.patch | 1.56 KB | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) commentedfirst cut at a patch coming soon.
Comment #2
Anonymous (not verified) commentedchanging the focus of this issue. once the registry lands, we'll track writing tests for it with this issue.
Comment #3
Anonymous (not verified) commentedfirst cut at some tests for the registry.
more coming, but changing to code needs review to get feedback.
Comment #4
chx commentedJustin, thanks! Very nice trick. We can always do more but this reads OK.
Comment #5
dries commentedI've committed this. Let's write some more. :-)
Comment #6
chx commentedThere is no code currently.
Comment #7
Anonymous (not verified) commentedpatch adds tests for
_registry_parse_files.probably not the cleanest implementation - feedback welcome.
Comment #8
Anonymous (not verified) commentedchx pointed out some issues with this on #drupal, rerolled to fix.
Comment #9
chx commentedYay more registry tests! (if i want to split hairs, I would raise the issue whether fakeMd5 would not be better called fakeMD5 but I am instead happy with the test)
Comment #10
Anonymous (not verified) commentedupdated patch, Md5 --> MD5, no other changes.
Comment #11
boombatower commentedChange component is relation to http://drupal.org/node/253744.
Comment #12
dries commentedCommitted to CVS HEAD. Thanks.
Comment #13
recidive commentedPatch was commited twice. SimpleTest is broken.
See http://cvs.drupal.org/viewvc.py/drupal/drupal/includes/registry.test?r1=...
Patch to correct this attached.
Comment #14
boombatower commentedLooks great.
Comment #15
dries commentedOops. Fixed.
Comment #16
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.