-
Notifications
You must be signed in to change notification settings - Fork 699
external storage url in tidb cloud (#21058) #21134
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
external storage url in tidb cloud (#21058) #21134
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @ti-chi-bot, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
Summary of Changes
Hello! Gemini here, providing a summary of this pull request. This PR, authored by ti-chi-bot
, is an automated cherry-pick of changes from PR #21058, targeting the v8.1
branch. The primary goal is to enhance the documentation regarding external storage URIs, specifically for TiDB Cloud users. This involves adding detailed information about S3 URI parameters relevant to TiDB Cloud and adjusting existing documentation for clarity across different platforms (standard TiDB and TiDB Cloud). The changes affect documentation files related to external storage URI formats and the BACKUP
and RESTORE
SQL statements.
Highlights
- TiDB Cloud S3 URI Documentation: Adds a dedicated section within
external-storage-uri.md
detailing the specific parameters available for Amazon S3 URIs when used with TiDB Cloud. This includes parameters likeaccess-key
,secret-access-key
,session-token
,endpoint
,role-arn
, andexternal-id
, along with important notes on configuring IAM roles. - Platform-Specific Content Tagging: Utilizes
<CustomContent platform="...">
tags inexternal-storage-uri.md
to clearly delineate documentation sections that are specific to standard TiDB versus TiDB Cloud, ensuring users see only the relevant information for their platform. - Simplified External Storage Link: Removes platform-specific
<CustomContent>
wrappers around the link to the external storage URI documentation in bothsql-statement-backup.md
andsql-statement-restore.md
, making the link universal and relying on the<CustomContent>
tags within the linked page to handle platform differences. - Documentation for v8.1: This cherry-picked change is specifically applied to the
v8.1
documentation branch.
Changelog
Click here to see the changelog
- TOC-tidb-cloud.md
- Updated the Table of Contents for TiDB Cloud documentation (details not available in patch, but mentioned in PR description).
- external-storage-uri.md
- Wrapped existing Amazon S3 and GCS URI documentation examples for standard TiDB within
<CustomContent platform="tidb">
tags. - Added a new
<CustomContent platform="tidb-cloud">
section for Amazon S3, detailing parameters likeaccess-key
,secret-access-key
,session-token
,endpoint
,role-arn
, andexternal-id
specific to TiDB Cloud. - Included notes and guidance on configuring AWS IAM roles and using external IDs for TiDB Cloud S3 access.
- Updated the example S3 URI for BACKUP/RESTORE in the TiDB Cloud section to use a folder path (
testfolder
) instead of a specific file (test.csv
).
- Wrapped existing Amazon S3 and GCS URI documentation examples for standard TiDB within
- sql-statements/sql-statement-backup.md
- Removed the
<CustomContent platform="tidb">
and<CustomContent platform="tidb-cloud">
wrappers around the link to the external storage URI documentation.
- Removed the
- sql-statements/sql-statement-restore.md
- Removed the
<CustomContent platform="tidb">
and<CustomContent platform="tidb-cloud">
wrappers around the link to the external storage URI documentation.
- Removed the
Using Gemini Code Assist
The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.
Invoking Gemini
You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command>
or @gemini-code-assist <command>
. Below is a summary of the supported commands.
Feature | Command | Description |
---|---|---|
Code Review | /gemini review |
Performs a code review for the current pull request in its current state. |
Pull Request Summary | /gemini summary |
Provides a summary of the current pull request in its current state. |
Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in issue comments and review comments. |
Help | /gemini help |
Displays a list of available commands. |
Customization
To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/
folder in the base of the repository. Detailed instructions can be found here.
Limitations & Feedback
Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.
You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.
Footnotes
-
Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request effectively updates the documentation for external storage URIs, with a significant addition of S3 parameters specific to TiDB Cloud. Centralizing platform-dependent information in external-storage-uri.md
and simplifying the linking in sql-statements/sql-statement-backup.md
and sql-statements/sql-statement-restore.md
is a good approach.
The new content for TiDB Cloud S3 URI parameters is comprehensive. My review focuses on enhancing the clarity and readability of these new instructions, following the "Documentation Review Style Guide". I've provided a few suggestions below, primarily for external-storage-uri.md
, to make the documentation even more user-friendly. The changes are generally well-executed.
Summary of Findings
- Clarity of Instructions: Several complex instructions, particularly regarding IAM role creation for S3 access in
external-storage-uri.md
, could be made clearer by restructuring them into ordered lists. This aligns with style guide recommendations and improves user comprehension. - Conciseness and Wording: Some parameter descriptions and explanatory sentences in
external-storage-uri.md
can be rephrased for better conciseness and directness, removing slight redundancies. - Formatting Consistency: Minor formatting suggestions, such as the use of backticks for example URLs, were made to ensure consistency with the style guide.
- Grammar/Spelling: A minor typo ("click click") was noted in
external-storage-uri.md
.
Merge Readiness
The pull request introduces valuable updates to the external storage URI documentation, especially for TiDB Cloud. The changes are largely in good shape. The suggestions provided are aimed at further enhancing clarity and adherence to the documentation style guide. While I am not authorized to approve pull requests, I believe addressing these suggestions would improve the overall quality of the documentation. As per the style guide, I am providing these comments directly without requesting changes to avoid blocking the merge, but I encourage the author to consider these improvements.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: qiancai The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
In response to a cherrypick label: new pull request created to branch |
This is an automated cherry-pick of #21058
First-time contributors' checklist
What is changed, added or deleted? (Required)
Append external storage url document to tidb cloud.
(only for TiDB Cloud)
Which TiDB version(s) do your changes apply to? (Required)
Tips for choosing the affected version(s):
By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.
For details, see tips for choosing the affected versions.
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?