lp:~tealeg/landscape-client/plugins-respect-scopes
- Get this branch:
- bzr branch lp:~tealeg/landscape-client/plugins-respect-scopes
Branch merges
Branch information
Recent revisions
- 697. By Geoff Teale
-
Merged add-session-
ids-to- activity- responses [r=jseutter, free.ekanayaka] [f=1158822]. This branch implements the client side parts of a mechanism described here: https:/
/wiki.canonical .com/Landscape/ SpecRegistry/ 0047 In landscape.
broker. store.MessageSt ore I've added three methods, get_session_id, is_valid_ session_ id, and drop_session_ids, they respectively create and store a new ID (with optional scope), check for existence of a given ID in the store, and delete all IDs within a certain scope. As I write this I suspect it might be sensible to remove scope as the work that requires it is unlikely to get scheduled soon (currently it always uses the default scope, None). landscape.
broker. server. BrokerServer has a get_session_id method that essentially is a pass-through to the MessageStore method. The send_message method on the BrokerServer has been modified to always require a session_id, which it will validate. If the session_id is not known to the message store then the message will be dropped, silently. landscape.
broker. exchange. MessageExchange will now drop all session-ids when it handles a resynchronize request. This means that any messages that are sent with IDs generated before that request will simply be dropped.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:~landscape/landscape-client/trunk