Skip to content

Commit

Permalink
Updated entity actions in api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ktuite committed Oct 17, 2023
1 parent 9f59dea commit f7bf685
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion docs/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions test/integration/worker/entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f7bf685

Please sign in to comment.