-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(PR): doc update and code generation issue (#958)
* chore(doc): update documentation --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
84bd6e1
commit f3908be
Showing
8 changed files
with
124 additions
and
47 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -245,6 +245,10 @@ project.github?.actions.set( | |
'peter-evans/create-pull-request@v6', | ||
'peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50', | ||
); | ||
project.github?.actions.set( | ||
'peter-evans/[email protected]', | ||
'peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f', | ||
); | ||
project.github?.actions.set( | ||
'aws-actions/[email protected]', | ||
'aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Deprecation process | ||
|
||
## Path 1: Graduation to AWS CDK Core | ||
|
||
In some cases, if an existing construct meets criteria and graduates to the AWS CDK core library, the following deprecation process is applied: | ||
|
||
- Mark the construct as deprecated in code using annotation. For instance, in the construct constructor, add: | ||
``` | ||
Annotations.of(scope).addWarningV2('@cdklabs/generative-ai-cdk-constructs:NAME_OF_THE_CONSTRUCT.deprecation', | ||
'This construct is deprecated and will not receive further support besides critical bug fixes. It will be removed on DATE. Please follow the documentation to migrate.'); | ||
``` | ||
- Update the construct's documentation with notice of graduation and link to the new CDK core construct | ||
- Expected end-of-support date (typically 6 months) | ||
- Create a migration guide that includes: | ||
- Step-by-step migration instructions | ||
- Code examples for both old and new implementations | ||
- Breaking changes and new features | ||
- Maintain critical bug fixes only until end-of-support date | ||
|
||
## Path 2: Low Adoption Deprecation | ||
|
||
For constructs with consistently low adoption: | ||
|
||
- The core team reviews usage metrics over 3-month period | ||
- If usage remains below threshold, mark construct as deprecated in code. For instance, in the construct constructor: | ||
``` | ||
Annotations.of(scope).addWarningV2('@cdklabs/generative-ai-cdk-constructs:NAME_OF_THE_CONSTRUCT.deprecation', | ||
'This construct is deprecated and will not receive further support besides critical bug fixes. It will be removed on DATE. Please refer to the documentation for additional information.'); | ||
``` | ||
- Document rationale for deprecation | ||
- Add sunset period: usually 3 month period | ||
- Suggest alternative approaches or constructs | ||
|
||
After sunset period, remove the code from the library and release a new version. | ||
|
||
## For both paths: | ||
|
||
- Deprecation will be announced in CHANGELOG, in the specific construct README and in the construct code | ||
- A GitHub issue will be created for tracking | ||
- Notification via release notes and discussions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.