Skip to content

chore(dynamodb): update waitForReplicationToFinish flag summary doc to highlight that it may cause deletion for existing replicas.#31432

Merged
mergify[bot] merged 1 commit intomainfrom
melasmar/add_warning_to_flag
Sep 12, 2024
Merged

chore(dynamodb): update waitForReplicationToFinish flag summary doc to highlight that it may cause deletion for existing replicas.#31432
mergify[bot] merged 1 commit intomainfrom
melasmar/add_warning_to_flag

Conversation

@moelasmar
Copy link
Copy Markdown
Contributor

Description of changes

Add a warning message to the summary doc of the flag waitForReplicationToFinish to highlight that misusing this flag may cause deletion for existing replicas. This change is required to resolve some internal feedback as some people may miss reading the detail documentation of that flag, and so they will may misuse it and then have some serious issues.

Description of how you validated changes

see the below image for the updated doc:

Screenshot 2024-09-12 at 3 42 22 PM

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

…o highlight that it may cause deletion for existing replicas.
@github-actions github-actions bot added the p2 label Sep 12, 2024
@aws-cdk-automation aws-cdk-automation requested a review from a team September 12, 2024 22:46
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Sep 12, 2024
readonly replicationTimeout?: Duration;

/**
* [WARNING: Use this flag with caution, misusing this flag may cause deleting existing replicas, refer to the detailed documentation for more information]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do the square brackets do something to format this in the dosctring? If not should we remove them like on like 356?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

to update the summary doc, either we need a paragraph of 20 words, or one sentence that follow this pattern https://github.com/aws/jsii/blob/37082de53576b9c807e83506af336458c6f2c6cb/packages/jsii/lib/docs.ts#L259-L261

that is why I added square brackets here to separate between the warning message, and the actual definition of this flag. I am open for better ideas :)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Discussed with @moelasmar and the updated summary line in the table looks good. This is just a workaround to ensure that the warning and the original summary line both show up without the use of any punctuation which would cause the original summary line to be cut off.

@moelasmar moelasmar requested a review from paulhcsun September 12, 2024 23:10
@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 5aa93de
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Sep 12, 2024
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Sep 12, 2024

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit ce54461 into main Sep 12, 2024
@mergify mergify bot deleted the melasmar/add_warning_to_flag branch September 12, 2024 23:51
@github-actions
Copy link
Copy Markdown
Contributor

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 12, 2024
@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Sep 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

contribution/core This is a PR that came from AWS. p2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants