Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FAI-7161] Add getWebhookEvent to faros client for use by Hermes lambda worker #158

Merged
merged 2 commits into from
Aug 1, 2023

Conversation

JoshSauter
Copy link
Contributor

Description

Add getWebhookEvent to faros client for use by Hermes lambda worker when an event body is omitted from the SQS message due to being too large. getWebhookEvent needs to be exposed in Hermes API as well, that will come as part of the PR to handle large event bodies

Type of change

  • Bug fix
  • New feature
  • Breaking change

@sonarcloud
Copy link

sonarcloud bot commented Aug 1, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@JoshSauter JoshSauter merged commit c999bc7 into main Aug 1, 2023
4 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 1, 2023
@tovbinm tovbinm deleted the FAI-7161 branch August 1, 2023 19:21
let event = response.data;
event = {
...event,
createdAt: event.createdAt ? new Date(event.createdAt) : undefined,
Copy link
Contributor

Choose a reason for hiding this comment

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

@JoshSauter how come createdAt can be undefined but all other timestamp fields not?

Copy link
Contributor

Choose a reason for hiding this comment

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

also, you can simply use Utils.toDate(event.createdAt) here and below

Copy link
Contributor

Choose a reason for hiding this comment

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

ohh, createdAt is a timestamp from the source system which might not be necessarily set.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants