Skip to content

Conversation

reakaleek
Copy link
Member

@reakaleek reakaleek commented Apr 28, 2025

  • Change link index updater lambda to react on SQS events

@reakaleek reakaleek requested a review from a team as a code owner April 28, 2025 10:29
@reakaleek reakaleek requested a review from Copilot April 28, 2025 10:30
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the link-index-updater lambda to process SQS events instead of a simple function call, refactoring the bootstrap and handler logic accordingly.

  • Updated the lambda bootstrap and handler in Program.cs to use SQS events with a typed response, removing the old string-based handler.
  • Introduced a new serializer context in SerializerContext.cs and added new provider classes (LinkReferenceProvider, LinkIndexProvider) to support the new flow.

Reviewed Changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/infra/docs-lambda-index-publisher/SerializerContext.cs Adds JSON source generation registrations for SQSEvent, S3EventNotification, and SQSBatchResponse.
src/infra/docs-lambda-index-publisher/README.md Fixes a spelling typo in the build instructions.
src/infra/docs-lambda-index-publisher/Program.cs Refactors the lambda bootstrap to process SQS events and update the link index accordingly.
src/infra/docs-lambda-index-publisher/LinkReferenceProvider.cs Provides logic to retrieve link references from S3, but the cancellation parameter type appears incorrect.
src/infra/docs-lambda-index-publisher/LinkIndexProvider.cs Implements link index update and save logic with optimistic concurrency handling.
src/Elastic.Markdown/Links/CrossLinks/CrossLinkResolver.cs Adds an UpdatedAt property to the link index entry record.
Files not reviewed (2)
  • Directory.Packages.props: Language not supported
  • src/infra/docs-lambda-index-publisher/docs-lambda-index-publisher.csproj: Language not supported

@reakaleek reakaleek merged commit 913bb19 into main Apr 28, 2025
14 checks passed
@reakaleek reakaleek deleted the feature/link-index-updater-lambda-sqs-trigger branch April 28, 2025 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants