diff --git a/docs/api.yaml b/docs/api.yaml index 1e4d3660e..7245bfd9b 100644 --- a/docs/api.yaml +++ b/docs/api.yaml @@ -814,7 +814,10 @@ tags: * `dataset.update` when a Dataset is updated. * `dataset.update.publish` when a Dataset is published. * `entity.create` when an Entity is created. - * `entity.error` when there is an error during entity creation process. + * `entity.error` when there is an error processing a Submission to create or update an Entity. + * `entity.update.version` when an Entity is updated. + * `entity.update.resolve` when an Entity conflict is resolved. + * `entity.delete` when an Entity is deleted. * `config.set` when a system configuration is set. * `analytics` when a Usage Report is attempted. * Deprecated: `backup` when a backup operation is attempted for Google Drive backups. diff --git a/test/integration/worker/entity.js b/test/integration/worker/entity.js index 4206d3eef..2be29e270 100644 --- a/test/integration/worker/entity.js +++ b/test/integration/worker/entity.js @@ -574,7 +574,7 @@ describe('worker: entity', () => { should.exist(subEvent.processed); subEvent.failures.should.equal(0); - // the entity creation error should be logged + // the entity processing error should be logged const event = await container.Audits.getLatestByAction('entity.error').then((o) => o.get()); event.actorId.should.equal(5); // Alice event.details.submissionId.should.equal(subEvent.details.submissionId); @@ -614,7 +614,7 @@ describe('worker: entity', () => { should.exist(subEvent.processed); subEvent.failures.should.equal(0); - // the entity creation error should be logged + // the entity processing error should be logged const event = await container.Audits.getLatestByAction('entity.error').then((o) => o.get()); event.actorId.should.equal(5); // Alice event.details.submissionId.should.equal(subEvent.details.submissionId);