lp:~robru/gwibber/dee
- Get this branch:
- bzr branch lp:~robru/gwibber/dee
Branch merges
- Ken VanDine: Pending requested
- Barry Warsaw: Pending requested
-
Diff: 2162 lines (+327/-1550)21 files modifiedgwibber/gwibber/main.py (+3/-13)
gwibber/gwibber/service/dispatcher.py (+2/-2)
gwibber/gwibber/service/messages.py (+0/-47)
gwibber/gwibber/service/searches.py (+0/-87)
gwibber/gwibber/service/streams.py (+0/-93)
gwibber/gwibber/storage/messages.py (+0/-172)
gwibber/gwibber/storage/searches.py (+0/-63)
gwibber/gwibber/storage/streams.py (+0/-68)
gwibber/gwibber/testing/com.Gwibber.Messages.service.in (+0/-3)
gwibber/gwibber/testing/com.Gwibber.Searches.service.in (+0/-3)
gwibber/gwibber/testing/com.Gwibber.Streams.service.in (+0/-3)
gwibber/gwibber/testing/dbus.py (+0/-3)
gwibber/gwibber/testing/service.py (+1/-48)
gwibber/gwibber/tests/test_account.py (+5/-12)
gwibber/gwibber/tests/test_dbus.py (+0/-237)
gwibber/gwibber/tests/test_model.py (+39/-0)
gwibber/gwibber/tests/test_protocols.py (+95/-0)
gwibber/gwibber/tests/test_storage.py (+0/-688)
gwibber/gwibber/utils/account.py (+7/-6)
gwibber/gwibber/utils/base.py (+66/-2)
gwibber/gwibber/utils/model.py (+109/-0)
Branch information
Recent revisions
- 1444. By Robert Bruce Park
-
Part two of the cleanup based on barry's review.
a) SharedModel is now mocked in the tests so that we are not dumping
test data into the live SharedModel.b) Each test is broken down into more bitesize units for easier
understanding when something goes wrong. - 1443. By Robert Bruce Park
-
Part one of cleanup based on barry's review.
a) Stop iterating over the SharedModel, because that's stupidly slow
in practise.b) cache the output of strip(), making the performance of _publish
O(1) instead of O(n) - 1441. By Robert Bruce Park
-
Add a publish_lock to avoid race conditions.
We are checking for duplicates first, and then appending new rows later,
which creates a race condition in between (eg, some other thread can easily
insert a duplicate row after we find that there are no duplicates present, but
before we get around to appending our own row).This makes duplicate checking / row appends atomic.
- 1440. By Robert Bruce Park
-
Tweak the return value logic in Base._publish.
Also stop hard-coding column index numbers.
- 1439. By Robert Bruce Park
-
Schema fixup, plus working de-duplication logic.
The de-dup logic is modelled very closely on the way libgwibber does
it in Vala, but now we're doing it right at the source before
libgwibber even gets there. Three cheers for efficiency!
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:gwibber