Skip to content

Conversation

@lindseydew
Copy link
Contributor

@lindseydew lindseydew commented Dec 2, 2025

What does this change?

This adds a new dynamo access that uses the java sdk version

How to test

How can we measure success?

Have we considered potential risks?

Images

Accessibility

gu-scala-library-release bot added a commit that referenced this pull request Dec 2, 2025
… lindseydew

lindseydew published release version 8.0.0-PREVIEW.ldupgrade-dynamo.2025-12-02T1740.a6877dba
using gha-scala-library-release-workflow: https://github.com/guardian/gha-scala-library-release-workflow

Release-Version: 8.0.0-PREVIEW.ldupgrade-dynamo.2025-12-02T1740.a6877dba
Release-Initiated-By: https://github.com/lindseydew
Release-Workflow-Run: https://github.com/guardian/atom-maker/actions/runs/19868005437
Release-Notes: #133
@gu-scala-library-release
Copy link
Contributor

@lindseydew has published a preview version of this PR with release workflow run #27, based on commit a6877db:

8.0.0-PREVIEW.ldupgrade-dynamo.2025-12-02T1740.a6877dba

Want to make another preview release?

Click 'Run workflow' in the GitHub UI, specifying the ld/upgrade-dynamo branch, or use the GitHub CLI command:

gh workflow run release.yml --ref ld/upgrade-dynamo

Want to make a full release after this PR is merged?

Click 'Run workflow' in the GitHub UI, leaving the branch as the default, or use the GitHub CLI command:

gh workflow run release.yml

@lindseydew lindseydew marked this pull request as ready for review December 3, 2025 16:59

protected def scan: DataStoreResult[List[Json]] = {
Try {
table.scan().iterator().asScala.toList
Copy link
Contributor

@bryophyta bryophyta Jan 20, 2026

Choose a reason for hiding this comment

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

It looks like there's a table.scan().items() method available, which would give you a list of documents, rather than a list of pages of documents.

I wondered if there was a performance difference between the two but I can't see anything obvious about this in the docs. So just suggesting it as slight simplification of the code, but I'm happy either way :)

Suggested change
table.scan().iterator().asScala.toList
table.scan().items().iterator().asScala.toList

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah cool thanks, that's a good point. I think we will do some refactoring of this after the upgrade, so I'll have a look into doing that then 👍

Copy link
Contributor

@bryophyta bryophyta left a comment

Choose a reason for hiding this comment

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

the code changes look good to me, and I've tested with a deploy of guardian/media-atom-maker#1428 to CODE, which seems to all work as expected 👍

just one small totally-optional comment below

@lindseydew lindseydew merged commit 40b04ce into main Jan 20, 2026
4 checks passed
@lindseydew lindseydew deleted the ld/upgrade-dynamo branch January 20, 2026 15:00
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.

2 participants