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

Support EventBridge events in lambdas/es/indexer, test event shape #1987

Merged
merged 61 commits into from
Jan 17, 2021

Conversation

akarve
Copy link
Member

@akarve akarve commented Dec 13, 2020

Description

  • Support EventBridge events in lambdas/es/indexer
  • Use JSON Schemas to validate inbound events
  • Fix a critical bug where delete events were not sent to ElasticSearch

TODO

  • Documentation (add notes on EventBridge set up)
  • Changelog entry

@akarve akarve marked this pull request as draft December 13, 2020 02:35
@codecov-io
Copy link

codecov-io commented Dec 13, 2020

Codecov Report

Merging #1987 (fa1331f) into master (bbd44d6) will increase coverage by 0.42%.
The diff coverage is 93.06%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1987      +/-   ##
==========================================
+ Coverage   46.74%   47.16%   +0.42%     
==========================================
  Files         332      332              
  Lines       16439    16574     +135     
  Branches     2191     2214      +23     
==========================================
+ Hits         7684     7817     +133     
- Misses       7856     7858       +2     
  Partials      899      899              
Flag Coverage Δ
api-python 89.35% <ø> (ø)
catalog 7.40% <ø> (ø)
lambda 92.69% <93.06%> (+0.29%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
lambdas/es/indexer/index.py 86.15% <88.46%> (+2.22%) ⬆️
lambdas/es/indexer/document_queue.py 93.33% <90.00%> (+0.47%) ⬆️
lambdas/es/indexer/test/test_index.py 96.07% <100.00%> (+0.64%) ⬆️
lambdas/search/index.py 88.50% <100.00%> (ø)
lambdas/shared/t4_lambda_shared/utils.py 98.64% <100.00%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bbd44d6...fa1331f. Read the comment docs.

@akarve akarve requested a review from kevinemoore December 18, 2020 23:01
@akarve akarve requested a review from nl0 January 11, 2021 06:00
@akarve akarve marked this pull request as ready for review January 12, 2021 03:03
}
},
# we delete synchronously, so don't let it linger too long
timeout='20s'
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens if this times out?

Copy link
Member Author

Choose a reason for hiding this comment

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

We don't do the delete. I could do this async.

@akarve akarve merged commit f90578f into master Jan 17, 2021
@akarve akarve deleted the eventbridge branch January 17, 2021 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants