-
Notifications
You must be signed in to change notification settings - Fork 707
cloud: add doc for Data APP GitHub integration #13674
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
cloud: add doc for Data APP GitHub integration #13674
Conversation
|
[REVIEW NOTIFICATION] This pull request has not been approved. To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
| 4. Click **Create Data App**. The [**Data Service**](https://tidbcloud.com/console/data-service) details page is displayed. | ||
| 4. (Optional) To automatically deploy metadata and endpoints of the Data App to your preferred GitHub repository and branch, expand **Connect your Data App to GitHub**, and then do the following: | ||
|
|
||
| 1. Click **Install on GitHub**, and then follow the on-screen instructions to install **TiDB Cloud Data Services** as an application on your target repository. |
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.
TiDB Cloud Data Service 没有s
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.
updated in 6f89b99
| 5. Click **Create Data App**. The [**Data Service**](https://tidbcloud.com/console/data-service) details page is displayed. | ||
|
|
||
| If you have connected your Data App to GitHub, check your specified directory in GitHub. If the configuration files of the Data App have been committed to this directory by `tidb-cloud-data-services`, it indicates that your Data App is connected to GitHub successfully. For more information, see [Deploy Automatically with GitHub](/tidb-cloud/data-service-manage-github-integration.md). |
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.
tidb-cloud-data-service
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.
updated in 6f89b99
| 3. The newly created Data App is added to the top of the list. A default `untitled endpoint` is created for the new Data App. | ||
| 1. On the [**Data Service**](https://tidbcloud.com/console/data-service) page of your project, click <MDSvgIcon name="icon-create-data-app" /> **Create DataApp** in the left pane. | ||
| 2. Enter a name for the Data App, and select clusters that you want the Data App to access. | ||
| 3. (Optional) To automatically deploy metadata and endpoints of the Data App to your preferred GitHub repository and branch, expand **Connect your Data App to GitHub**, and then do the following: |
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.
“deploy metadata and endpoints” 感觉直接写 deploy endpoints 即可,不用突出metadata
|
|
||
| - Option 1: Update configuration files of your Data App on GitHub. | ||
|
|
||
| |File path | Notes for the updates | |
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.
文件的内容里字段的含义感觉可以说明一下
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.
文件的内容里字段的含义在前面 Step 1. Connect your Data App to GitHub 的最后已经说明过一遍了
| 1. Click **Install on GitHub**, and then follow the on-screen instructions to install **TiDB Cloud Data Services** as an application on your target repository. | ||
| 2. Click **Authorize** to authorize access to the application on GitHub. | ||
| 3. Specify the target repository, branch, and directory where you want to save the configuration files of your Data App. | ||
|
|
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.
- 开启 automatic deployment 开关
另外,关联不会有任何的部署动作,如果需要同步endpoint到github中,你需要在UI上进行一次部署操作。
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.
这里的信息在下面的 Step 2 和 Step 3 里
| - When it is enabled, you can review the Data App configuration changes you made in the TiDB Cloud console before the deployment. Based on the review, you can either deploy or discard the changes. | ||
| - When it is disabled, the Data App configuration changes you made in the TiDB Cloud console are deployed directly. | ||
|
|
||
| ## Step 3. Deploy your Data App configuration changes to GitHub automatically |
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.
configuration changes 感觉语义不是很明确,感觉可以是 endpoints changes
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.
endpoints changes 看起来不太全,因为 linked clusters changes 也会同步到 GitHub,要不用 Step 3. Deploy your Data App changes to GitHub automatically
|
|
||
| If **Automatic Deployment** is enabled, you can make changes to your Data App configurations either on GitHub or in the TiDB Cloud console: | ||
|
|
||
| - Option 1: Update configuration files of your Data App on GitHub. |
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.
感觉不要叫 configuration files 就叫 files 吧 或者 dataapp directory's content
| 2. Click **Authorize** to authorize access to the application on GitHub. | ||
| 3. Specify the target repository, branch, and directory where you want to save the configuration files of your Data App. | ||
|
|
||
| > **Note:** |
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.
Note里面可以提示下用户:如果用户的directory里的内容为复制的其他 dataapp 的内容,这时文件中的dataapp的app_id并不是用户当前创建的dataapp的app id,这会将用户dataapp UI 的endpoint 覆盖到用户配置的directory中。如果用户想要做的是导入github directory 里的endpoint, 请参照导入流程进行。
Oreoxmt
left a comment
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.
/lgtm
|
/lgtm cancel |
|
/lgtm |
|
/LGTM |
Co-authored-by: Aolin <aolinz@outlook.com>
|
@heibaijian: adding LGTM is restricted to approvers and reviewers in OWNERS files. In response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/lgtm |
|
/lgtm |
[LGTM Timeline notifier]Timeline:
|
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: heibaijian, hfxsd, lilin90, Oreoxmt, 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 |
First-time contributors' checklist
What is changed, added or deleted? (Required)
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?