Skip to content
Snippets Groups Projects
Forked from Platform / Development / swh-journal
45 commits behind the upstream repository.
David Douard's avatar
David Douard authored
908f0154 introduced an unexpected change of behavior of the
InMemoryJournalWriter, making it always anonymize objects. This broke
tests for some dependencies (esp. swh-storage).

This fix adds an 'anonymize' (bool) argument to the class constructor
(similar to the KafkaJournalWriter).
6b05a6c9
History

swh-journal

Persistent logger of changes to the archive, with publish-subscribe support.

See the documentation for more details.

Local test

As a pre-requisite, you need a kakfa installation path. The following target will take care of this:

make install

Then, provided you are in the right virtual environment as described in the swh getting-started:

pytest

or:

tox

Running

publisher

Command:

$ swh-journal --config-file ~/.config/swh/journal/publisher.yml \
              publisher

Auto-completion

To have the completion, add the following in your ~/.virtualenvs/swh/bin/postactivate:

eval "$(_SWH_JOURNAL_COMPLETE=$autocomplete_cmd swh-journal)"