Address Book Card Addition and Deletion Notifications now work properly (well almost)

In the address book there has been, for quite a while, various problems whilst managing addition and deletion of address book cards to and from Mailing Lists – things like cards not being removed from the display, duplicated cards displayed (but click onto a different address book and back again and it sorts itself out).

With thanks to Siva (from Spicebird), all these problems have now been fixed (with the exception of one remaining problem).

This is an excellent fix and should hopefully reduce at least some of the confusion for users have experienced whilst updating mailing lists, and ensure that we’ve got the right notifications being fired for extensions to pick up on.

The remaining issue we’ll probably take another look at once we’ve got some other back end work done. If you want to try it out then get the latest trunk nightly (at your own risk!) or wait for Shredder Alpha 2/SeaMonkey 2.0 Alpha 1.

Update: So the first time round, we didn’t quite fix everything as expected the duplicate address lists bug wasn’t actually fixed as I thought it had been, and we’d hang a crash when deleting cards/mailing lists (I’m still not sure how we missed those) however, these have now both been fixed in the latest nightlies, and we are currently investigating a fix for bug 434978 which will improve the situation further.

Review Policy for Unit Tests in MailNews and Thunderbird

Now that we have some unit test structures in place for MailNews, we want to make it easier for new tests to be added, and clearer as to the required procedure.

Therefore, we have defined a Rules and Review Policy for unit tests that are to go into the source directories mailnews/ and mail/. This policy does not affect the existing review requirements for patches on the main code.

As I’ve said before, at the moment we still do not require unit tests with every patch as the full archecture is still being developed. We do however, strongly encourage unit tests where possible. If you need help, feel free to ping me (Standard8) on irc.

Score 1 for MailNews Automated Tests

After the mailnews/ and mail/ source trees reopened yesterday, I checked in a whole bunch of patches that had been queued up during the freeze. Some of them had been in my development tree, some of them hadn’t.

A little while later the SeaMonkey unit test tinderbox was orange. This surprised me, as I was fairly sure I had run all the mailnews tests with the various patches.

It turns out one of the patches (a follow up to bug 424570) had caused a regression where deleting address book cards wouldn’t work properly. This was one of those cases where before we had unit tests I wouldn’t have been surprised if we hadn’t detected the regression for a while.

So as Dan said, score 1 for MailNews automated tests. Although we’ve already seen regressions caught many times for the core tests, its good to see that the MailNews ones are now starting to catch regressions as well.