Skip to content

Conversation

@aleslash
Copy link
Contributor

@aleslash aleslash commented Sep 18, 2025

Motivation

To get better experience when using localstack with ACK when using dynamodb controller.

Changes

It implements the DescribeContributorInsights function as described in issue #13165

Testing

Run localstack with ack, create any dynamodb resource by applying a manifest like

apiVersion: dynamodb.services.k8s.aws/v1alpha1
kind: Table
metadata:
  name: my-dynamodb-table
spec:
  attributeDefinitions:
    - attributeName: id
      attributeType: S
  keySchema:
    - attributeName: id
      keyType: HASH
  provisionedThroughput:
    readCapacityUnits: 5
    writeCapacityUnits: 5
  tableName: my-dynamodb-table

And verify its status by command:

kubectl get tables.dynamodb.services.k8s.aws

status:

NAME                CLASS   STATUS   SYNCED   AGE
my-dynamodb-table           ACTIVE   True     33m

Closes #13165

@localstack-bot
Copy link
Contributor

localstack-bot commented Sep 18, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

Copy link
Contributor

@localstack-bot localstack-bot left a comment

Choose a reason for hiding this comment

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

Welcome to LocalStack! Thanks for raising your first Pull Request and landing in your contributions. Our team will reach out with any reviews or feedbacks that we have shortly. We recommend joining our Slack Community and share your PR on the #community channel to share your contributions with us. Please make sure you are following our contributing guidelines and our Code of Conduct.

@aleslash aleslash marked this pull request as draft September 18, 2025 18:39
@aleslash aleslash marked this pull request as ready for review September 18, 2025 18:40
@aleslash
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

localstack-bot added a commit that referenced this pull request Sep 19, 2025
@viren-nadkarni viren-nadkarni added semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases docs: skip Pull request does not require documentation changes labels Sep 19, 2025
Copy link
Member

@viren-nadkarni viren-nadkarni left a comment

Choose a reason for hiding this comment

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

@aleslash Thanks for raising this. Could you please add an AWS-verified parity test to accompany this change? You can read more about them here.

@aleslash
Copy link
Contributor Author

@aleslash Thanks for raising this. Could you please add an AWS-verified parity test to accompany this change? You can read more about them here.

@viren-nadkarni hope that it is ready to go.

Copy link
Member

@viren-nadkarni viren-nadkarni left a comment

Choose a reason for hiding this comment

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

Just one change related to transforming, and then we're good to go.

Copy link
Member

@viren-nadkarni viren-nadkarni left a comment

Choose a reason for hiding this comment

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

Looks good @aleslash, thank you for your contribution to LocalStack!

I'll merge this once the CI run finishes.

@viren-nadkarni viren-nadkarni changed the title Feat dynamodb contributorinsights DynamoDB: Implement DescribeContributorInsights Sep 25, 2025
@viren-nadkarni viren-nadkarni added review: merge when ready Signals to the reviewer that a PR can be merged if accepted notes: needed Pull request should be mentioned in the release notes labels Sep 25, 2025
@aleslash
Copy link
Contributor Author

@viren-nadkarni can you check again?

@alexrashed alexrashed added this to the 4.10 milestone Sep 30, 2025
@aleslash
Copy link
Contributor Author

@alexrashed @viren-nadkarni since it was crashing just made a refactor on the function to be on the standard implementation
Can you check again?

@viren-nadkarni
Copy link
Member

@aleslash Sorry for the back and forth. For legacy reasons, we have two separate DynamoDB providers. To clear the tests, all you need to do is add the same handler implementation in this file: localstack-core/localstack/services/dynamodb/v2/provider.py, and we should be able to merge this.

@aleslash
Copy link
Contributor Author

aleslash commented Oct 1, 2025

@aleslash Sorry for the back and forth. For legacy reasons, we have two separate DynamoDB providers. To clear the tests, all you need to do is add the same handler implementation in this file: localstack-core/localstack/services/dynamodb/v2/provider.py, and we should be able to merge this.

No problem :)
Just did it
tks @viren-nadkarni and @alexrashed

@localstack-bot
Copy link
Contributor

Currently, only patch changes are allowed on main. Your PR labels (semver: minor, review: merge when ready, docs: skip, notes: needed) indicate that it cannot be merged into the main at this time.

@aleslash
Copy link
Contributor Author

aleslash commented Oct 1, 2025

@viren-nadkarni @alexrashed just made the corrections (and format style). Need some help with the labels.

@aleslash aleslash closed this Oct 5, 2025
@aleslash aleslash deleted the feat-dynamodb-contributorinsights branch October 5, 2025 00:42
@aleslash aleslash restored the feat-dynamodb-contributorinsights branch October 5, 2025 00:43
@alexrashed
Copy link
Member

@aleslash @viren-nadkarni it seems like this PR was closed, even though it seems like it was just close to get merged. Was that on purpose?
@aleslash Should we try to take this one over and get it over the line?

@aleslash
Copy link
Contributor Author

aleslash commented Oct 6, 2025

@alexrashed since this one was stuck I opened a new one. We can go any way you want.

@alexrashed
Copy link
Member

Okay, so you are referring to #13220, right? What do you mean with "it was stuck"? What was the issue?

@aleslash
Copy link
Contributor Author

aleslash commented Oct 6, 2025

Needed to change back to initial labels or something

@alexrashed
Copy link
Member

Okay, that's a bit vague 😅 Next time please avoid closing a PR and recreating it, as this makes it complicated to follow the review comments. Feel free to ask any questions on the PR directly. But we'll take it over to #13220 and try to get this over the line from there 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs: skip Pull request does not require documentation changes notes: needed Pull request should be mentioned in the release notes review: merge when ready Signals to the reviewer that a PR can be merged if accepted semver: minor Non-breaking changes which can be included in minor releases, but not in patch releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature request: DynamoDB DescribeContributorInsights implementation

4 participants