HomeSoftware Heritage

BaseRow.unique_key: Don't crash when indexer_configuration_id is None.

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

BaseRow.unique_key: Don't crash when indexer_configuration_id is None.

This always happens when writing to Kafka, as the Kafka writer sets it
to None at the same it it injects the 'tool' data.

This was not caught by tests because they use the in-mem writer;
which did not call unique_key() at all in swh-journal<=v0.5.1
(but future versions will).

Details

Provenance
vlorentzAuthored on Nov 27 2020, 1:34 PM
vlorentzPushed on Nov 27 2020, 1:43 PM
Differential Revision
D4622: BaseRow.unique_key: Don't crash when indexer_configuration_id is None.
Build Status
Buildable 17580
Build 27180: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.