Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

[INDEX-7] Introduce webhooks #17

Merged
merged 3 commits into from
Sep 2, 2020
Merged

[INDEX-7] Introduce webhooks #17

merged 3 commits into from
Sep 2, 2020

Conversation

MarekSuchanek
Copy link
Contributor

No description provided.

@MarekSuchanek MarekSuchanek added the enhancement New feature or request label Jul 31, 2020
@MarekSuchanek MarekSuchanek self-assigned this Jul 31, 2020
@MarekSuchanek MarekSuchanek changed the title WIP: Introduce webhooks [INDEX-7] Introduce webhooks Aug 9, 2020
@MarekSuchanek MarekSuchanek requested a review from kburger August 9, 2020 16:51
Copy link
Contributor

@kburger kburger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment on logging, applicable on other logging statements too but nothing conflicting with the actual functionality.

@@ -199,7 +199,7 @@ private void resumeUnfinishedEvents() {
} else if (event.getType() == EventType.WebhookTrigger) {
webhookService.processWebhookTrigger(event);
} else {
logger.warn("Unknown event type " + event.getUuid());
logger.warn("Unknown event type " + event.getUuid() + " (" + event.getType() + ")");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slf4j loggers can use the {} placeholder syntax (which would prevent unnecessary string concatenation):

Suggested change
logger.warn("Unknown event type " + event.getUuid() + " (" + event.getType() + ")");
logger.warn("Unknown event type {} ({}) ", event.getUuid(), event.getType());

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, fixed

@MarekSuchanek MarekSuchanek merged commit 2762d1a into develop Sep 2, 2020
@MarekSuchanek MarekSuchanek deleted the feature/INDEX-7 branch September 2, 2020 11:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants