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

upgrade to scanamo v2.0.0 latest #4349

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

upgrade to scanamo v2.0.0 latest #4349

wants to merge 1 commit into from

Conversation

andrew-nowak
Copy link
Member

What does this change?

Upgrades scanamo to v2.0.0
First component switched to AWS SDK v2

How should a reviewer test this change?

How can success be measured?

Who should look at this?

Tested? Documented?

  • locally by committer
  • locally by Guardian reviewer
  • on the Guardian's TEST environment
  • relevant documentation added or amended (if needed)

Comment on lines -24 to -26
private def extractUnprocessedIds(results: List[BatchWriteItemResult]): List[String] =
results.flatMap(_.getUnprocessedItems.values().asScala.flatMap(_.asScala.map(_.getPutRequest.getItem.get("id").getS)))

Copy link
Member Author

Choose a reason for hiding this comment

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

scanamo no longer returns the list of unprocessed items; it looks like it internally will repeat until all items have been processed, so we should no longer have to care about it in our application code?!
https://github.com/scanamo/scanamo/blob/3a68697525c8dde1e1aee757d2d1f729511106b7/scanamo/src/main/scala/org/scanamo/ScanamoFree.scala#L56-L64

Copy link

github-actions bot commented Oct 8, 2024

Base automatically changed from an/rm-scalaz-2 to main October 10, 2024 15:27
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.

1 participant