author
int64
658
755k
date
stringlengths
19
19
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
list
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
36,332
01.04.2022 22:35:11
-28,800
4b5c6a259ba4395fae7ce3f575dae92d6ef8a117
[Feature-8023][Document] Add example and notice about task type Python
[ { "change_type": "MODIFY", "old_path": "docs/en-us/2.0.5/user_doc/guide/task/python.md", "new_path": "docs/en-us/2.0.5/user_doc/guide/task/python.md", "diff": "-# Python\n+# Python Node\n-- Using python nodes, you can directly execute python scripts. For python nodes, workers will use `python **` to submit tasks.\n+## Overview\n-> Drag in the toolbar![PNG](https://analysys.github.io/easyscheduler_docs_cn/images/toolbar_PYTHON.png)The task node to the drawing board, as shown in the following figure:\n+Use `Python Task` to create a python-type task and execute python scripts. When the worker executes `Python Task`,\n+it will generate a temporary python script, and executes the script by the Linux user with the same name as the tenant.\n-<p align=\"center\">\n- <img src=\"/img/python-en.png\" width=\"80%\" />\n- </p>\n+## Create Task\n-- Script: Python program developed by the user\n-- Environment Name: Specific which Python interpreter would be use and run `Script`. If you want to use Python virtualenv, you should create multiply environments for each virtualenv.\n-- Resources: refers to the list of resource files that need to be called in the script\n-- User-defined parameter: It is a local user-defined parameter of Python, which will replace the content with \\${variable} in the script\n-- Note: If you import the python file under the resource directory tree, you need to add the `__init__.py` file\n+- Click Project Management-Project Name-Workflow Definition, and click the \"Create Workflow\" button to enter the DAG editing page.\n+- Drag <img src=\"/img/tasks/icons/python.png\" width=\"15\"/> from the toolbar to the canvas.\n+\n+## Task Parameter\n+\n+- Node name: The node name in a workflow definition is unique.\n+- Run flag: Identifies whether this node can be scheduled normally, if it does not need to be executed, you can turn on the prohibition switch.\n+- Descriptive information: Describe the function of the node.\n+- Task priority: When the number of worker threads is insufficient, execute in the order of priority from high to low, and tasks with the same priority will execute in a first-in first-out order.\n+- Worker grouping: Assign tasks to the machines of the worker group to execute. If `Default` is selected, randomly select a worker machine for execution.\n+- Environment Name: Configure the environment name in which to run the script.\n+- Number of failed retry attempts: The failure task resubmitting times. It supports drop-down and hand-filling.\n+- Failed retry interval: The time interval for resubmitting the task after a failed task. It supports drop-down and hand-filling.\n+- Timeout alarm: Check the timeout alarm and timeout failure. When the task exceeds the \"timeout period\", an alarm email will send and the task execution will fail.\n+- Script: Python program developed by the user.\n+- Resource: Refers to the list of resource files that need to be called in the script, and the files uploaded or created by the resource center-file management.\n+- Custom parameters: It is the user-defined parameters of Python, which will replace the content with \\${variable} in the script.\n+\n+## Task Example\n+\n+### Simply Print\n+\n+This example simulates a common task that runs by a simple command. The example is to print one line in the log file, as shown in the following figure:\n+\"This is a demo of python task\".\n+\n+![demo-python-simple](/img/tasks/demo/python.jpg)\n+\n+```python\n+print(\"This is a demo of python task\")\n+```\n+\n+### Custom Parameters\n+\n+This example simulates a custom parameter task. We use parameters for reusing existing tasks as template or coping with the dynamic task. In this case,\n+we declare a custom parameter named \"param_key\", with the value \"param_val\". Then we use echo to print the parameter \"${param_key}\" we just declared.\n+After running this example, we would see \"param_val\" print in the log.\n+\n+![demo-python-custom-param](/img/tasks/demo/python_custom_param.jpg)\n+\n+```python\n+print(\"${param_key}\")\n+```\n+\n+## Notice\n+\n+None\n" }, { "change_type": "MODIFY", "old_path": "docs/en-us/dev/user_doc/guide/task/python.md", "new_path": "docs/en-us/dev/user_doc/guide/task/python.md", "diff": "# Python Node\n-- Using python nodes, you can directly execute python scripts. For python nodes, workers use `python **` to submit tasks.\n+## Overview\n-> Drag from the toolbar ![PNG](https://analysys.github.io/easyscheduler_docs_cn/images/toolbar_PYTHON.png) task node to the canvas, as shown in the following figure:\n+Use `Python Task` to create a python-type task and execute python scripts. When the worker executes `Python Task`,\n+it will generate a temporary python script, and executes the script by the Linux user with the same name as the tenant.\n-<p align=\"center\">\n- <img src=\"/img/python-en.png\" width=\"80%\" />\n- </p>\n+## Create Task\n+- Click Project Management-Project Name-Workflow Definition, and click the \"Create Workflow\" button to enter the DAG editing page.\n+- Drag <img src=\"/img/tasks/icons/python.png\" width=\"15\"/> from the toolbar to the canvas.\n+\n+## Task Parameter\n+\n+- Node name: The node name in a workflow definition is unique.\n+- Run flag: Identifies whether this node can be scheduled normally, if it does not need to be executed, you can turn on the prohibition switch.\n+- Descriptive information: Describe the function of the node.\n+- Task priority: When the number of worker threads is insufficient, execute in the order of priority from high to low, and tasks with the same priority will execute in a first-in first-out order.\n+- Worker grouping: Assign tasks to the machines of the worker group to execute. If `Default` is selected, randomly select a worker machine for execution.\n+- Environment Name: Configure the environment name in which to run the script.\n+- Number of failed retry attempts: The failure task resubmitting times. It supports drop-down and hand-filling.\n+- Failed retry interval: The time interval for resubmitting the task after a failed task. It supports drop-down and hand-filling.\n+- Timeout alarm: Check the timeout alarm and timeout failure. When the task exceeds the \"timeout period\", an alarm email will send and the task execution will fail.\n- Script: Python program developed by the user.\n-- Environment Name: Specific Python interpreter path for running the script. If you need to use Python **virtualenv**, you should create multiply environments for each **virtualenv**.\n-- Resources: Refers to the list of resource files that need to be called in the script.\n-- User-defined parameter: It is a user-defined local parameter of Python, and will replace the content with `${variable}` in the script.\n-- Note: If you import the python file under the resource directory tree, you need to add the `__init__.py` file.\n+- Resource: Refers to the list of resource files that need to be called in the script, and the files uploaded or created by the resource center-file management.\n+- Custom parameters: It is the user-defined parameters of Python, which will replace the content with \\${variable} in the script.\n+\n+## Task Example\n+\n+### Simply Print\n+\n+This example simulates a common task that runs by a simple command. The example is to print one line in the log file, as shown in the following figure:\n+\"This is a demo of python task\".\n+\n+![demo-python-simple](/img/tasks/demo/python_ui_next.jpg)\n+\n+```python\n+print(\"This is a demo of python task\")\n+```\n+\n+### Custom Parameters\n+\n+This example simulates a custom parameter task. We use parameters for reusing existing tasks as template or coping with the dynamic task. In this case,\n+we declare a custom parameter named \"param_key\", with the value \"param_val\". Then we use echo to print the parameter \"${param_key}\" we just declared.\n+After running this example, we would see \"param_val\" print in the log.\n+\n+![demo-python-custom-param](/img/tasks/demo/python_custom_param_ui_next.jpg)\n+\n+```python\n+print(\"${param_key}\")\n+```\n+\n+## Notice\n+\n+None\n" }, { "change_type": "ADD", "old_path": "img/tasks/demo/python.jpg", "new_path": "img/tasks/demo/python.jpg", "diff": "Binary files /dev/null and b/img/tasks/demo/python.jpg differ\n" }, { "change_type": "ADD", "old_path": "img/tasks/demo/python_custom_param.jpg", "new_path": "img/tasks/demo/python_custom_param.jpg", "diff": "Binary files /dev/null and b/img/tasks/demo/python_custom_param.jpg differ\n" }, { "change_type": "ADD", "old_path": "img/tasks/demo/python_custom_param_ui_next.jpg", "new_path": "img/tasks/demo/python_custom_param_ui_next.jpg", "diff": "Binary files /dev/null and b/img/tasks/demo/python_custom_param_ui_next.jpg differ\n" }, { "change_type": "ADD", "old_path": "img/tasks/demo/python_ui_next.jpg", "new_path": "img/tasks/demo/python_ui_next.jpg", "diff": "Binary files /dev/null and b/img/tasks/demo/python_ui_next.jpg differ\n" }, { "change_type": "ADD", "old_path": "img/tasks/icons/python.png", "new_path": "img/tasks/icons/python.png", "diff": "Binary files /dev/null and b/img/tasks/icons/python.png differ\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[Feature-8023][Document] Add example and notice about task type Python (#8023) (#713)
36,284
02.04.2022 18:36:52
-28,800
0cbd219954d6d35338f89799af377b9b6cb48b78
[ci] Add CI failed when any change in docs * [ci] Add CI failed when any change in docs * Change docs check * revert this before merge * change ci * Revert "revert this before merge" This reverts commit
[ { "change_type": "MODIFY", "old_path": ".asf.yaml", "new_path": ".asf.yaml", "diff": "@@ -40,6 +40,7 @@ github:\nrequired_status_checks:\ncontexts:\n- CheckDeadLinks\n+ - docs-check\nrequired_pull_request_reviews:\ndismiss_stale_reviews: true\nrequired_approving_review_count: 1\n" }, { "change_type": "ADD", "old_path": null, "new_path": ".github/workflows/change-docs.yaml", "diff": "+# Licensed to the Apache Software Foundation (ASF) under one\n+# or more contributor license agreements. See the NOTICE file\n+# distributed with this work for additional information\n+# regarding copyright ownership. The ASF licenses this file\n+# to you under the Apache License, Version 2.0 (the\n+# \"License\"); you may not use this file except in compliance\n+# with the License. You may obtain a copy of the License at\n+#\n+# http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+name: Docs\n+\n+on:\n+ pull_request:\n+ branches:\n+ - master\n+\n+env:\n+ DOCS_FLAG: ^docs\n+\n+concurrency:\n+ group: docs-${{ github.event.pull_request.number || github.ref }}\n+ cancel-in-progress: true\n+\n+jobs:\n+ # We do not accept anyone who wants to make some change to directory `docs`, you should\n+ # consider changing the content in https://github.com/apache/dolphinscheduler-website/tree/history-docs\n+ # if you want to change the history docs before DolphinScheduler 3.0.0-alpha. Or changing the content\n+ # in https://github.com/apache/dolphinscheduler/tree/dev/docs for the latest docs.\n+ docs-check:\n+ timeout-minutes: 5\n+ runs-on: ubuntu-latest\n+ steps:\n+ - uses: actions/checkout@v3\n+ - name: Get Branch origin/dev\n+ run: |\n+ git fetch --no-tags --prune --depth=1 origin master\n+ - name: Fail When Docs Dir Change\n+ run: |\n+ if git diff --name-only origin/master HEAD | grep -q -E \"${{ env.DOCS_FLAG }}\"; then\n+ exit 1\n+ fi\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[ci] Add CI failed when any change in docs (#757) * [ci] Add CI failed when any change in docs * Change docs check * revert this before merge * change ci * Revert "revert this before merge" This reverts commit 1d8201a4
36,284
02.04.2022 22:28:01
-28,800
519841d5394dd962255680b8a8c5117a2ee798b0
[ci] Add schedule deploy and revert prohibit docs change
[ { "change_type": "MODIFY", "old_path": ".github/workflows/change-docs.yaml", "new_path": ".github/workflows/change-docs.yaml", "diff": "@@ -44,5 +44,5 @@ jobs:\n- name: Fail When Docs Dir Change\nrun: |\nif git diff --name-only origin/master HEAD | grep -q -E \"${{ env.DOCS_FLAG }}\"; then\n- echo 1\n+ exit 1\nfi\n" }, { "change_type": "MODIFY", "old_path": ".github/workflows/website.yml", "new_path": ".github/workflows/website.yml", "diff": "@@ -4,6 +4,8 @@ on:\npush:\nbranches:\n- master\n+ schedule:\n+ - cron: \"0 5 * * *\"\nenv:\nPYDS_HOME: dolphinscheduler-python/pydolphinscheduler\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[ci] Add schedule deploy and revert prohibit docs change (#760)
36,353
03.04.2022 21:49:01
-28,800
28448c5195d1af7def227719db7f25b902fc2bc3
Added banner Prompt
[ { "change_type": "MODIFY", "old_path": "src/components/header/index.scss", "new_path": "src/components/header/index.scss", "diff": "background-color: #fff;\nbox-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.08);\n}\n+ .banner-tips {\n+ display: flex;\n+ justify-content: center;\n+ align-items: center;\n+ background-color: red;\n+ width: 100%;\n+ z-index: 1000;\n+ color: #fff;\n+ font-family: monospace;\n+ font-size: 12px;\n+ padding: 6px;\n+ box-sizing: border-box;\n+ .link-tips {\n+ color: #fff;\n+ text-decoration: underline;\n+ }\n+ .banner-close {\n+ display: flex;\n+ position: absolute;\n+ right: 0;\n+ color: white;\n+ width: 24px;\n+ font-size: 12px;\n+ cursor: pointer;\n+ &::before {\n+ content: \"\\2716\";\n+ }\n+ }\n+ }\n.header-body {\nmax-width: $contentWidth;\nmargin: 0 auto;\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
Added banner Prompt (#762)
36,284
07.04.2022 11:12:45
-28,800
ec7a1d907aac2164d7db140e4e8de25feabcde5e
[ci] Add branch history-docs as protect branch Avoiding committer force push and overwrite some content
[ { "change_type": "MODIFY", "old_path": ".asf.yaml", "new_path": ".asf.yaml", "diff": "@@ -44,3 +44,8 @@ github:\nrequired_pull_request_reviews:\ndismiss_stale_reviews: true\nrequired_approving_review_count: 1\n+ history-docs:\n+ required_status_checks:\n+ contexts:\n+ - CheckDeadLinks\n+ - img-check\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[ci] Add branch history-docs as protect branch (#767) Avoiding committer force push and overwrite some content
36,284
07.04.2022 11:17:55
-28,800
61fb51e07fb17be3c76f430327b9b7951dca7bec
Add some missing change files
[ { "change_type": "ADD", "old_path": "img/alert/agentid.png", "new_path": "img/alert/agentid.png", "diff": "Binary files /dev/null and b/img/alert/agentid.png differ\n" }, { "change_type": "ADD", "old_path": "img/alert/corpid.png", "new_path": "img/alert/corpid.png", "diff": "Binary files /dev/null and b/img/alert/corpid.png differ\n" }, { "change_type": "ADD", "old_path": "img/alert/secret.png", "new_path": "img/alert/secret.png", "diff": "Binary files /dev/null and b/img/alert/secret.png differ\n" }, { "change_type": "ADD", "old_path": "img/alert/userid.png", "new_path": "img/alert/userid.png", "diff": "Binary files /dev/null and b/img/alert/userid.png differ\n" }, { "change_type": "DELETE", "old_path": "src/pages/docs/index.md.jsx", "new_path": null, "diff": "-import React from 'react';\n-import ReactDOM from 'react-dom';\n-import cookie from 'js-cookie';\n-import Language from '../../components/language';\n-import Header from '../../components/header';\n-import Footer from '../../components/footer';\n-import Md2Html from '../../components/md2html';\n-import Sidemenu from '../../components/sidemenu';\n-import siteConfig from '../../../site_config/site';\n-import docs120Config from '../../../site_config/docs1-2-0';\n-import docs121Config from '../../../site_config/docs1-2-1';\n-import docs131Config from '../../../site_config/docs1-3-1';\n-import docs132Config from '../../../site_config/docs1-3-2';\n-import docs133Config from '../../../site_config/docs1-3-3';\n-import docs134Config from '../../../site_config/docs1-3-4';\n-import docs135Config from '../../../site_config/docs1-3-5';\n-import docs136Config from '../../../site_config/docs1-3-6';\n-import docs138Config from '../../../site_config/docs1-3-8';\n-import docs139Config from '../../../site_config/docs1-3-9';\n-import docs200Config from '../../../site_config/docs2-0-0';\n-import docs201Config from '../../../site_config/docs2-0-1';\n-import docs202Config from '../../../site_config/docs2-0-2';\n-import docs203Config from '../../../site_config/docs2-0-3';\n-import docs205Config from '../../../site_config/docs2-0-5';\n-import docsDevConfig from '../../../site_config/docsdev';\n-\n-const docsSource = {\n- '1.2.0': docs120Config,\n- '1.2.1': docs121Config,\n- '1.3.1': docs131Config,\n- '1.3.2': docs132Config,\n- '1.3.3': docs133Config,\n- '1.3.4': docs134Config,\n- '1.3.5': docs135Config,\n- '1.3.6': docs136Config,\n- '1.3.8': docs138Config,\n- '1.3.9': docs139Config,\n- '2.0.0': docs200Config,\n- '2.0.1': docs201Config,\n- '2.0.2': docs202Config,\n- '2.0.3': docs203Config,\n- '2.0.5': docs205Config,\n- dev: docsDevConfig,\n-};\n-\n-const isValidVersion = version => version && docsSource.hasOwnProperty(version);\n-\n-class Docs extends Md2Html(Language) {\n- render() {\n- const language = this.getLanguage();\n- let dataSource = {};\n- // from location path\n- let version = window.location.pathname.split('/')[3];\n- if (isValidVersion(version) || version === 'latest') {\n- cookie.set('docs_version', version);\n- }\n- // from rendering html\n- if (!version && this.props.subdir) {\n- version = this.props.subdir.split('/')[0];\n- }\n- if (isValidVersion(version)) {\n- dataSource = docsSource[version][language];\n- } else if (isValidVersion(cookie.get('docs_version'))) {\n- dataSource = docsSource[cookie.get('docs_version')][language];\n- } else if (isValidVersion(siteConfig.docsLatest)) {\n- dataSource = docsSource[siteConfig.docsLatest][language];\n- dataSource.sidemenu.forEach((menu) => {\n- menu.children.forEach((submenu) => {\n- if (!submenu.children) {\n- submenu.link = submenu.link.replace(`docs/${siteConfig.docsLatest}`, 'docs/latest');\n- } else {\n- submenu.children.forEach((menuLevel3) => {\n- menuLevel3.link = menuLevel3.link.replace(`docs/${siteConfig.docsLatest}`, 'docs/latest');\n- });\n- }\n- });\n- });\n- } else {\n- return null;\n- }\n- const __html = this.props.__html || this.state.__html;\n- return (\n- <div className=\"md2html docs-page\">\n- <Header\n- currentKey=\"docs\"\n- type=\"dark\"\n- logo=\"/img/hlogo_white.svg\"\n- language={language}\n- onLanguageChange={this.onLanguageChange}\n- />\n- <section className=\"content-section\">\n- <Sidemenu dataSource={dataSource.sidemenu} />\n- <div\n- className=\"doc-content markdown-body\"\n- ref={(node) => { this.markdownContainer = node; }}\n- dangerouslySetInnerHTML={{ __html }}\n- />\n- </section>\n- <Footer logo=\"/img/ds_gray.svg\" language={language} />\n- </div>\n- );\n- }\n-}\n-\n-document.getElementById('root') && ReactDOM.render(<Docs />, document.getElementById('root'));\n-\n-export default Docs;\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
Add some missing change files (#764)
36,284
07.04.2022 11:18:20
-28,800
6c25a3df35c21777dc60985fa8640871c797b3dd
Update prepare script in readme
[ { "change_type": "ADD", "old_path": null, "new_path": "HOW_PREPARE_WOKR.md", "diff": "+# How Prepare Script Work\n+\n+## Background\n+\n+Our latest documents are in directory `docs` DolphinScheduler [main repository](https://github.com/apache/dolphinscheduler.git),\n+and the history documents before version 3.0.0-alpha is in branch [history-docs](https://github.com/apache/dolphinscheduler-website/tree/history-docs)\n+in [website repository](https://github.com/apache/dolphinscheduler-website). In this case, you have to collect them from\n+above repository into current working path before you compile them to HTML.\n+\n+Of course, you could collect all content manually, but we already provider convenience script to do that, all you have to\n+do is run a single command in this project root directory:\n+\n+```shell\n+./scripts/prepare_docs.sh\n+```\n+\n+It would do all prepare things for you.\n+\n+> Note: When you failed to run the command and see some log like \"unable to access\" in your terminal, you can set and\n+> environment variable `export PROTOCOL_MODE=ssh` and then run command `./scripts/prepare_docs.sh` again. After setting the\n+> variable will clone source code in SSH protocol instead of HTTPS protocol, and it will stable and fast in some cases like\n+> local development.\n" }, { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "# Apache DolphinScheduler Official Website\n-This project keeps all sources used for building up DolphinScheduler official website which is served at https://dolphinscheduler.apache.org/.\n+This project keeps all sources used for building up DolphinScheduler's official website which is served at https://dolphinscheduler.apache.org/.\n## Prerequisite\n-DolphinScheduler website is powered by [docsite](https://github.com/chengshiwen/docsite-ext).\n+DolphinScheduler website is powered by [docsite](https://github.com/chengshiwen/docsite-ext). Please also make sure your\n+node version is 10+, version lower than 10.x is not supported yet.\n-Please also make sure your node version is 10+, version lower than 10.x is not supported yet.\n-\n-## Prepare All Related Resource\n-\n-Our latest documents are in DolphinScheduler [main repository](https://github.com/apache/dolphinscheduler.git) directory\n-`docs`, and the history documents is in branch [history-docs](https://github.com/apache/dolphinscheduler-website/tree/history-docs)\n-in this repository. In this case, you have to collect them from somewhere to current working path before you compile\n-them to HTML format.\n-\n-Of course, you could collect all content manually, but we already provider convenience script to do that, all you have to\n-do is run a single command:\n-\n-```shell\n-./scripts/prepare_docs.sh\n-```\n-\n-It would do all prepare things for you.\n-\n-> Note: When you failed to run the command and see some log like \"unable to access\" in your terminal, you can set and\n-> environment variable `export DEV_MODE=true` and then run command `./scripts/prepare_docs.sh` again. After setting the\n-> variable will clone source code in SSH instead of HTTPS, it will stable and fast in some cases.\n-\n-## Build instruction\n+## Build Website Locally\n1. Run `npm install` in the root directory to install the dependencies.\n-2. Run `npm run start` in the root directory to start a local server, you will see the website in 'http://localhost:8080'.\n+2. Run `./scripts/prepare_docs.sh` prepare all related resources, for more information you could see [how prepare script work](HOW_PREPARE_WOKR.md)\n+3. Run `npm run start` in the root directory to start a local server, you will see the website in 'http://localhost:8080'.\n+\n```\n-Note: if you clone the code in Windows, not Mac. Please read the details below.\n+Note: if you clone the code in Windows, not Mac or Linux. Please read the details below.\nIf you execute the commands like the two steps above, you will get the exception \"UnhandledPromiseRejectionWarning: Error: EPERM: operation not permitted, symlink '2.0.3' -> 'latest'\".\nWhen meeting this problem. You can run two steps in the cmd.exe as an ADMINISTRATOR MEMBER.\n```\n+\n3. Run `npm run build` to build source code into dist directory.\n4. Verify your change locally: `python -m SimpleHTTPServer 8000`, when your python version is 3 use :`python3 -m http.server 8000` instead.\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
Update prepare script in readme (#763)
36,285
07.04.2022 11:33:57
-28,800
e856cf0cf4d531cd5ebc57df588126d94ae905cf
update compile command
[ { "change_type": "MODIFY", "old_path": "development/en-us/development-environment-setup.md", "new_path": "development/en-us/development-environment-setup.md", "diff": "@@ -23,7 +23,7 @@ git clone git@github.com:apache/dolphinscheduler.git\ni. If you use MySQL database, pay attention to modify pom.xml in the root project, and change the scope of the mysql-connector-java dependency to compile.\n-ii. Run `mvn -U install package -Prelease -Dmaven.test.skip=true `\n+ii. Run `mvn clean install -Prelease -Dmaven.test.skip=true`\n## Notice\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
update compile command (#768) Co-authored-by: Jiajie Zhong <zhongjiajie955@gmail.com>
36,284
18.04.2022 19:07:47
-28,800
84ed993d869ba19da1d148e327e73b63c755b3fa
[release] Change release docs * [release] Change release docs * revert before merge * Fix quick start link * Correct docker link * Correct docker link * Revert "revert before merge" This reverts commit * Add download link for 3.0.0-alpha
[ { "change_type": "MODIFY", "old_path": "blog/en-us/Apache-DolphinScheduler-2.0.1.md", "new_path": "blog/en-us/Apache-DolphinScheduler-2.0.1.md", "diff": "@@ -135,7 +135,7 @@ For detailed usage documentation, please refer to:\nhttps://dolphinscheduler.apache.org/en-us/docs/latest/user_doc/guide/installation/standalone.html\nOr use Docker to deploy all services with one\n-click: https://dolphinscheduler.apache.org/en-us/docs/latest/user_doc/guide/installation/docker.html\n+click: https://dolphinscheduler.apache.org/en-us/docs/2.0.1/user_doc/guide/installation/docker.html\n### 2 Task parameter transfer function\n" }, { "change_type": "MODIFY", "old_path": "community/en-us/release-post.md", "new_path": "community/en-us/release-post.md", "diff": "For example, after the release of `x.y.z`, the following updates are required:\n- - `docs/en-us/x.y.z` and `docs/zh-cn/x.y.z`: copy the old directory to the new version x.y.z\n- - The reference links of the included documents keep same with x.y.z, especially pay attention to the following file updates:\n- - `architecture-design.md`\n- - `cluster-deployment.md`\n- - `docker-deployment.md`\n- - `expansion-reduction.md`\n- - `kubernetes-deployment.md`\n- - `standalone-deployment.md`\n- - `upgrade.md`\n- - `docs/en-us/release/history-versions.md` and `docs/zh-cn/release/history-versions.md`: Add the new version and link for x.y.z\n- `download/en-us/download.md` and `download/zh-cn/download.md`: add the download of the x.y.z release package\n- - `site_config/docsx-y-z.js`: copy the old configuration file to the new version, and keep the content link same with x.y.z\n- - `site_config/site.js`:\n- - `docsLatest`: update to x.y.z\n- - `docs0`: The `text` of two places of `en-us/zh-cn` needs to be updated to `latest(x.y.z)`\n- - `docsxyz`: Add a drop-down menu with `key` as `docsxyz` and `text` as `x.y.z` in `children` of two places of `en-us/zh-cn`\n- - `src/pages/docs/index.md.jsx`: Add `'x.y.z': docsxyzConfig,`\n## Add New Version To GitHub's bug-report.yml\n@@ -30,7 +14,7 @@ bug-report.yml\n## Publish Image\n-Build docker image first, please refer to [How to build a Docker image?](https://dolphinscheduler.apache.org/en-us/docs/latest/user_doc/guide/installation/docker.html)\n+Build docker image first, please refer to [How to build a Docker image?](https://dolphinscheduler.apache.org/en-us/docs/latest/user_doc/guide/start/docker.html)\nAnd then publish image\n" }, { "change_type": "MODIFY", "old_path": "community/en-us/release.md", "new_path": "community/en-us/release.md", "diff": "@@ -243,8 +243,10 @@ cp -f ~/dolphinscheduler/dolphinscheduler-dist/target/python/* ~/ds_svn/dev/dolp\n```shell\nshasum -a 512 apache-dolphinscheduler-${RELEASE.VERSION}-src.tar.gz >> apache-dolphinscheduler-${RELEASE.VERSION}-src.tar.gz.sha512\nshasum -b -a 512 apache-dolphinscheduler-${RELEASE.VERSION}-bin.tar.gz >> apache-dolphinscheduler-${RELEASE.VERSION}-bin.tar.gz.sha512\n-shasum -a 512 python/apache-dolphinscheduler-${RELEASE.VERSION}.tar.gz >> python/apache-dolphinscheduler-${RELEASE.VERSION}.tar.gz.sha512\n-shasum -b -a 512 python/apache_dolphinscheduler-${RELEASE.VERSION}-py3-none-any.whl >> python/apache_dolphinscheduler-${RELEASE.VERSION}-py3-none-any.whl.sha512\n+cd python\n+shasum -a 512 apache-dolphinscheduler-${RELEASE.VERSION}.tar.gz >> apache-dolphinscheduler-${RELEASE.VERSION}.tar.gz.sha512\n+shasum -b -a 512 apache_dolphinscheduler-${RELEASE.VERSION}-py3-none-any.whl >> apache_dolphinscheduler-${RELEASE.VERSION}-py3-none-any.whl.sha512\n+cd ../\n```\n### Commit to Apache SVN\n@@ -260,8 +262,10 @@ svn --username=${APACHE LDAP username} commit -m \"release ${RELEASE.VERSION}\"\n```shell\nshasum -c apache-dolphinscheduler-${RELEASE.VERSION}-src.tar.gz.sha512\nshasum -c apache-dolphinscheduler-${RELEASE.VERSION}-bin.tar.gz.sha512\n+cd python\nshasum -c python/apache-dolphinscheduler-${RELEASE.VERSION}.tar.gz.sha512\nshasum -c python/apache_dolphinscheduler-${RELEASE.VERSION}-py3-none-any.whl.sha512\n+cd ../\n```\n### Check gpg Signature\n" }, { "change_type": "MODIFY", "old_path": "download/en-us/download.md", "new_path": "download/en-us/download.md", "diff": "@@ -7,6 +7,8 @@ Use the links below to download the Apache DolphinScheduler from one of our mirr\n## DolphinScheduler\n| Date | Version| | Downloads |\n|:---:|:--:|:--:|:--:|\n+| Apr. 18th, 2022 | 3.0.0-alpha | Total Source Code| [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.0-alpha/apache-dolphinscheduler-3.0.0-alpha-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.0-alpha/apache-dolphinscheduler-3.0.0-alpha-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.0-alpha/apache-dolphinscheduler-3.0.0-alpha-src.tar.gz.sha512)|\n+| | | Total Binary Distribution| [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.0-alpha/apache-dolphinscheduler-3.0.0-alpha-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.0-alpha/apache-dolphinscheduler-3.0.0-alpha-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.0-alpha/apache-dolphinscheduler-3.0.0-alpha-bin.tar.gz.sha512)|\n| Mar. 7th, 2022 | 2.0.5 | Total Source Code| [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/2.0.5/apache-dolphinscheduler-2.0.5-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/2.0.5/apache-dolphinscheduler-2.0.5-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/2.0.5/apache-dolphinscheduler-2.0.5-src.tar.gz.sha512)|\n| | | Total Binary Distribution| [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/2.0.5/apache-dolphinscheduler-2.0.5-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/2.0.5/apache-dolphinscheduler-2.0.5-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/2.0.5/apache-dolphinscheduler-2.0.5-bin.tar.gz.sha512)|\n| Jan. 20th, 2022 | 2.0.3 | Source code| [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/2.0.3/apache-dolphinscheduler-2.0.3-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/2.0.3/apache-dolphinscheduler-2.0.3-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/2.0.3/apache-dolphinscheduler-2.0.3-src.tar.gz.sha512)|\n" }, { "change_type": "MODIFY", "old_path": "site_config/home.jsx", "new_path": "site_config/home.jsx", "diff": "@@ -304,7 +304,7 @@ export default {\nbuttons: [\n{\ntext: 'Quick Start',\n- link: '/en-us/docs/latest/user_doc/guide/quick-start.html',\n+ link: '/en-us/docs/latest/user_doc/guide/start/quick-start.html',\ntype: 'primary',\n},\n{\n" }, { "change_type": "MODIFY", "old_path": "sitemap.xml", "new_path": "sitemap.xml", "diff": "<priority>0.80</priority>\n</url>\n<url>\n- <loc>https://dolphinscheduler.apache.org/en-us/docs/latest/user_doc/guide/quick-start.html</loc>\n+ <loc>https://dolphinscheduler.apache.org/en-us/docs/latest/user_doc/guide/start/quick-start.html</loc>\n<lastmod>2021-11-18T03:50:27+00:00</lastmod>\n<priority>0.80</priority>\n</url>\n<priority>0.51</priority>\n</url>\n<url>\n- <loc>https://dolphinscheduler.apache.org/en-us/docs/latest/user_doc/guide/installation/docker.html</loc>\n+ <loc>https://dolphinscheduler.apache.org/en-us/docs/latest/user_doc/guide/start/docker.html</loc>\n<lastmod>2021-11-18T11:33:40+00:00</lastmod>\n<priority>0.51</priority>\n</url>\n<priority>0.51</priority>\n</url>\n<url>\n- <loc>https://dolphinscheduler.apache.org/zh-cn/docs/latest/user_doc/guide/installation/docker.html</loc>\n+ <loc>https://dolphinscheduler.apache.org/zh-cn/docs/latest/user_doc/guide/start/docker.html</loc>\n<lastmod>2021-11-18T11:33:40+00:00</lastmod>\n<priority>0.51</priority>\n</url>\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[release] Change release docs (#778) * [release] Change release docs * revert before merge * Fix quick start link * Correct docker link * Correct docker link * Revert "revert before merge" This reverts commit 2a2c5c12 * Add download link for 3.0.0-alpha
36,353
22.04.2022 16:43:15
-28,800
e381484eaf198bd26e31abd497ccd0020facfa49
Added Baidu Statistics
[ { "change_type": "MODIFY", "old_path": "redirect.ejs", "new_path": "redirect.ejs", "diff": "var _hmt = _hmt || [];\n(function() {\nvar hm = document.createElement(\"script\");\n- hm.src = \"https://hm.baidu.com/hm.js?4e7b4b400dd31fa015018a435c64d06f\";\n+ hm.src = \"https://hm.baidu.com/hm.js?d6bc736fd9885d9a5dc938425ac062ad\";\nvar s = document.getElementsByTagName(\"script\")[0];\ns.parentNode.insertBefore(hm, s);\n})();\n" }, { "change_type": "MODIFY", "old_path": "template.ejs", "new_path": "template.ejs", "diff": "var _hmt = _hmt || [];\n(function() {\nvar hm = document.createElement(\"script\");\n- hm.src = \"https://hm.baidu.com/hm.js?4e7b4b400dd31fa015018a435c64d06f\";\n+ hm.src = \"https://hm.baidu.com/hm.js?d6bc736fd9885d9a5dc938425ac062ad\";\nvar s = document.getElementsByTagName(\"script\")[0];\ns.parentNode.insertBefore(hm, s);\n})();\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
Added Baidu Statistics (#780)
36,284
12.05.2022 14:49:20
-28,800
bd5d4b4eadf206439824a437649690f6710ca0d8
[team] Add new committer and PMC
[ { "change_type": "MODIFY", "old_path": "community/en-us/team.md", "new_path": "community/en-us/team.md", "diff": "@@ -22,6 +22,10 @@ The DolphinScheduler team is comprised of Members and Contributors. Members have\n| Xiaochun Liu | liuxiaochun | [@khadgarmage](https://github.com/khadgarmage) |\n| ZijJian Gong | millionfor | [@millionfor](https://github.com/millionfor) |\n| Calvin Kirs | kirs | [@CalvinKirs](https://github.com/CalvinKirs) |\n+| Chong Zhuang | kerwin | [@zhuangchong](https://github.com/zhuangchong) |\n+| ShunFeng Cai | caishunfeng | [@caishunfeng](https://github.com/caishunfeng) |\n+| Jiajie Zhong | zhongjiajie | [@zhongjiajie](https://github.com/zhongjiajie) |\n+| Zhenxu Ke | kezhenxu94 | [@kezhenxu94](https://github.com/kezhenxu94) |\n### Committer\n@@ -29,7 +33,6 @@ The DolphinScheduler team is comprised of Members and Contributors. Members have\n| ------------- | ------------ | -------------------------------------------------------- |\n| BoYi Zhang | zhangboyi | [@BoYiZhang](https://github.com/BoYiZhang) |\n| Caibiao Xiang | break60 | [@break60](https://github.com/break60) |\n-| Chong Zhuang | kerwin | [@zhuangchong](https://github.com/zhuangchong) |\n| Cong Huang | chongchongzi | [@chongchongzi](https://github.com/chongchongzi) |\n| Hemin Wen | wenhemin | [@wen-hemin](https://github.com/wen-hemin) |\n| Kai Zhu | zhukai | [@nauu](https://github.com/nauu) |\n@@ -43,17 +46,18 @@ The DolphinScheduler team is comprised of Members and Contributors. Members have\n| Xingchun Chen | chenxingchun | [@xingchun-chen](https://github.com/xingchun-chen) |\n| Yichao Yang | yangyichao | [@yangyichao-mango](https://github.com/yangyichao-mango) |\n| Zongyao Zhang | lfyee | [@lfyee](https://github.com/lfyee) |\n-| Zhenxu Ke | kezhenxu94 | [@kezhenxu94](https://github.com/kezhenxu94) |\n-| Jiajie Zhong | zhongjiajie | [@zhongjiajie](https://github.com/zhongjiajie) |\n-| Yizhi Wang | wangyizhi | [@Wangyizhi1](https://github.com/Wangyizhi1) |\n-| ShunFeng Cai | caishunfeng | [@caishunfeng](https://github.com/caishunfeng) |\n+| JinyLeeChina | jinyleechina | [@JinyLeeChina](https://github.com/JinyLeeChina) |\n| Wenjun Ruan | wenjun | [@ruanwenjun](https://github.com/ruanwenjun) |\n+| Wang Xingjie | wangxj | [@wangxj3](https://github.com/wangxj3) |\n+| Yizhi Wang | wangyizhi | [@Wangyizhi1](https://github.com/Wangyizhi1) |\n| Jian Song | songjian | [@songjianet](https://github.com/songjianet) |\n| Zhaohe Sun | zixi0825 | [@zixi0825](https://github.com/zixi0825) |\n| Tianqi Yan | tianqiyan | [@Tianqi-Dotes](https://github.com/Tianqi-Dotes) |\n| Dongkai Liu | liudongkai | [@devosend](https://github.com/devosend) |\n| Hua Jiang | huajiang | [@calvinjiang](https://github.com/calvinjiang) |\n| Zihao Xiang | zihaoxiang | [@SbloodyS](https://github.com/SbloodyS) |\n+| Amy Wang | wanggenhua | [@Amy0104](https://github.com/Amy0104) |\n+| JunJie Xu | xujunjie | [@labbomb](https://github.com/labbomb) |\n## Contributors\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[team] Add new committer and PMC (#785)
36,284
29.05.2022 22:10:07
-28,800
ddb5a7a320de7b4900ddfad7fb5562c18ef2f1c5
[chore] Change local js resource path
[ { "change_type": "RENAME", "old_path": "js/npm/js.cookie.min.js", "new_path": "asset/js/npm/js.cookie.min.js", "diff": "" }, { "change_type": "RENAME", "old_path": "js/react/react-dom.min.js", "new_path": "asset/js/react/react-dom.min.js", "diff": "" }, { "change_type": "RENAME", "old_path": "js/react/react-with-addons.min.js", "new_path": "asset/js/react/react-with-addons.min.js", "diff": "" }, { "change_type": "MODIFY", "old_path": "redirect.ejs", "new_path": "redirect.ejs", "diff": "<link rel=\"shortcut icon\" href=\"<%= rootPath %>/img/favicon.ico\">\n</head>\n<body>\n- <script src=\"/js/npm/js.cookie.min.js\"></script>\n+ <script src=\"/asset/js/npm/js.cookie.min.js\"></script>\n<script>\nwindow.rootPath = '<%= rootPath %>';\nwindow.defaultLanguage = '<%= defaultLanguage %>';\n" }, { "change_type": "MODIFY", "old_path": "template.ejs", "new_path": "template.ejs", "diff": "</head>\n<body>\n<div id=\"root\"><%- __html %></div>\n- <script src=\"/js/react/react-with-addons.min.js\"></script>\n- <script src=\"/js/react/react-dom.min.js\"></script>\n+ <script src=\"/asset/js/react/react-with-addons.min.js\"></script>\n+ <script src=\"/asset/js/react/react-dom.min.js\"></script>\n<script>window.rootPath = '<%= rootPath %>';</script>\n<%_ if (vendorJsPath) { _%>\n<script src=\"<%= rootPath %>/build/<%= vendorJsPath %>\"></script>\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[chore] Change local js resource path (#793)
36,284
30.05.2022 23:09:44
-28,800
5411a08f51bd019fe74ae08ec4ccdbd0a4f16003
[release] New download link
[ { "change_type": "MODIFY", "old_path": "download/en-us/download.md", "new_path": "download/en-us/download.md", "diff": "@@ -7,6 +7,8 @@ Use the links below to download the Apache DolphinScheduler from one of our mirr\n## DolphinScheduler\n| Date | Version| | Downloads |\n|:---:|:--:|:--:|:--:|\n+| May. 30th, 2022 | 3.0.0-beta-1 | Total Source Code| [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.0-beta-1/apache-dolphinscheduler-3.0.0-beta-1-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.0-beta-1/apache-dolphinscheduler-3.0.0-beta-1-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.0-beta-1/apache-dolphinscheduler-3.0.0-beta-1-src.tar.gz.sha512)|\n+| | | Total Binary Distribution| [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.0-beta-1/apache-dolphinscheduler-3.0.0-beta-1-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.0-beta-1/apache-dolphinscheduler-3.0.0-beta-1-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.0-beta-1/apache-dolphinscheduler-3.0.0-beta-1-bin.tar.gz.sha512)|\n| Apr. 18th, 2022 | 3.0.0-alpha | Total Source Code| [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.0-alpha/apache-dolphinscheduler-3.0.0-alpha-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.0-alpha/apache-dolphinscheduler-3.0.0-alpha-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.0-alpha/apache-dolphinscheduler-3.0.0-alpha-src.tar.gz.sha512)|\n| | | Total Binary Distribution| [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.0-alpha/apache-dolphinscheduler-3.0.0-alpha-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.0-alpha/apache-dolphinscheduler-3.0.0-alpha-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.0-alpha/apache-dolphinscheduler-3.0.0-alpha-bin.tar.gz.sha512)|\n| Mar. 7th, 2022 | 2.0.5 | Total Source Code| [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/2.0.5/apache-dolphinscheduler-2.0.5-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/2.0.5/apache-dolphinscheduler-2.0.5-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/2.0.5/apache-dolphinscheduler-2.0.5-src.tar.gz.sha512)|\n" }, { "change_type": "MODIFY", "old_path": "scripts/conf.sh", "new_path": "scripts/conf.sh", "diff": "@@ -42,5 +42,5 @@ declare -a HISTORY_DOCS_VERSIONS=(\nDEV_RELEASE_DOCS_VERSIONS=(\n# The key value is represents of, `key` for document version and `val` for source branch apache/dolphinscheduler.\n# example: \"key:val\"\n- \"3.0.0:3.0.0-alpha-release\"\n+ \"3.0.0:3.0.0-beta-1-release\"\n)\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[release] New download link (#794)
36,354
31.05.2022 15:00:58
-28,800
0beba7d022bbfbdc764b27f44300d99000184643
[fix][scripts]: prepare_docs.sh supports image path conversion.
[ { "change_type": "MODIFY", "old_path": "blog/en-us/Apache_dolphinScheduler_3.0.0_alpha.md", "new_path": "blog/en-us/Apache_dolphinScheduler_3.0.0_alpha.md", "diff": "@@ -88,7 +88,7 @@ Amazon EMR Task Definition\nAmazon Redshift support\n-* For **Amazon S3**, we have extended the Apache DolphinScheduler's resource center to support not only local resources, HDFS resource storage but also Amazon S3 as a resource centre for storage. Details can be found at: [https://dolphinscheduler.apache.org/zh-cn/docs/latest/user_doc/guide/resource.html](https://dolphinscheduler.apache.org/zh-cn/docs/latest/user_doc/guide/resource.html) in\n+* For **Amazon S3**, we have extended the Apache DolphinScheduler's resource center to support not only local resources, HDFS resource storage but also Amazon S3 as a resource centre for storage. Details can be found at: [https://dolphinscheduler.apache.org/zh-cn/docs/3.0.0/user_doc/guide/resource/configuration.html](https://dolphinscheduler.apache.org/zh-cn/docs/3.0.0/user_doc/guide/resource/configuration.html) in\n```plain\n`resource.storage.type`\n```\n@@ -135,7 +135,7 @@ Data quality verification is now natively supported in 3.0.0-alpha, with support\nTask groups are used to control the concurrency of task instances and to define the priority of the group. When creating a new task definition, the user can configure the task group corresponding to the current task and configure the priority of the task to run within the task group. When a task is configured with a task group, the task can be executed only meeting the condition that all upstream tasks run successfully but also the task currently running in the task group is smaller than the size of the resource pool. When it is greater than or equal to the size of the resource pool, the task will wait until the next check. When multiple tasks in a task group are in the pending queue at the same time, the task with the highest priority will be run first.\n-See the link for details: [https://dolphinscheduler.apache.org/zh-cn/docs/3.0.0/user_doc/guide/resource.html](https://dolphinscheduler.apache.org/zh-cn/docs/3.0.0/user_doc/guide/resource.html)\n+See the link for details: [https://dolphinscheduler.apache.org/zh-cn/docs/3.0.0/user_doc/guide/resource/configuration.html](https://dolphinscheduler.apache.org/zh-cn/docs/3.0.0/user_doc/guide/resource/configuration.html)\n<div align=center>\n" }, { "change_type": "MODIFY", "old_path": "scripts/prepare_docs.sh", "new_path": "scripts/prepare_docs.sh", "diff": "@@ -93,8 +93,8 @@ function clone_repo() {\n##############################################################\n#\n# Replace images path in markdown documents, the source path\n-# in repo `apache/incubator-seatunnel` is like `images/<name>.png`\n-# and we should replace it to `images_en/<name>.png`\n+# in repo `apache/dolphinscheduler` is like `../../img/<name>.png`\n+# and we should replace it to `/img/<name>.png`\n#\n# Arguments:\n#\n@@ -106,11 +106,11 @@ function replace_images_path(){\nfor file_path in \"${replace_dir}\"/*; do\nif test -f \"${file_path}\"; then\nif [ \"${file_path##*.}\"x = \"md\"x ] || [ \"${file_path##*.}\"x = \"mdx\"x ]; then\n- echo \" ---> Replace images path to /doc/image_en in ${file_path}\"\n+ echo \" ---> Replace images path to /image in ${file_path}\"\nif [[ \"$OSTYPE\" == \"darwin\"* ]]; then\n- sed -E -i '' \"s/(\\.\\.\\/)*images/\\/image_en/g\" \"${file_path}\"\n+ sed -E -i '' \"s/(\\.\\.\\/)+img/\\/img/g\" \"${file_path}\"\nelse\n- sed -E -i \"s/(\\.\\.\\/)*images/\\/image_en/g\" \"${file_path}\"\n+ sed -E -i \"s/(\\.\\.\\/)+img/\\/img/g\" \"${file_path}\"\nfi\nfi\nelse\n@@ -148,6 +148,9 @@ function prepare_docs() {\necho \" ---> Sync latest document in dev branch.\"\nrsync_latest_docs\n+ echo \"===>>>: Replace images path in ${PROJECT_SITE_DOC_DIR}\"\n+ replace_images_path \"${PROJECT_SITE_DOC_DIR}\"\n+\necho \"===>>> End prepare document.\"\n}\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[fix][scripts]: prepare_docs.sh supports image path conversion. (#789) Co-authored-by: Jiajie Zhong <zhongjiajie955@gmail.com>
36,284
07.06.2022 17:44:08
-28,800
be7398a944f78359283a43958b7a88ce9dbfd621
[ci] fix development img path
[ { "change_type": "MODIFY", "old_path": "scripts/prepare_docs.sh", "new_path": "scripts/prepare_docs.sh", "diff": "@@ -148,8 +148,9 @@ function prepare_docs() {\necho \" ---> Sync latest document in dev branch.\"\nrsync_latest_docs\n- echo \"===>>>: Replace images path in ${PROJECT_SITE_DOC_DIR}\"\n+ echo \"===>>>: Replace images path in ${PROJECT_SITE_DOC_DIR} and ${PROJECT_SITE_DEVELOP_DIR}\"\nreplace_images_path \"${PROJECT_SITE_DOC_DIR}\"\n+ replace_images_path \"${PROJECT_SITE_DEVELOP_DIR}\"\necho \"===>>> End prepare document.\"\n}\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[ci] fix development img path (#796)
36,343
27.06.2022 21:33:33
-28,800
30fc92e97f0a2feadcad302fdcdbedc289906a7f
[comunity] Add new users yili
[ { "change_type": "ADD", "old_path": "img/ourusers/yili.png", "new_path": "img/ourusers/yili.png", "diff": "Binary files /dev/null and b/img/ourusers/yili.png differ\n" }, { "change_type": "MODIFY", "old_path": "site_config/home.jsx", "new_path": "site_config/home.jsx", "diff": "@@ -269,6 +269,9 @@ export default {\n{\nimg: '/img/ourusers/sutpc.png',\n},\n+ {\n+ img: '/img/ourusers/yili.png',\n+ },\n],\n},\nuserreview: {\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[comunity] Add new users yili (#803)
36,284
08.07.2022 18:42:47
-28,800
ba65349457b4277064213a02dc8cd4dfbc3a569b
impv: add keys to release KEYS
[ { "change_type": "MODIFY", "old_path": ".dlc.json", "new_path": ".dlc.json", "diff": "},\n{\n\"pattern\": \"^http://192\"\n+ },\n+ {\n+ \"pattern\": \"https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami\"\n}\n],\n\"replacementPatterns\": [\n" }, { "change_type": "MODIFY", "old_path": "community/en-us/release.md", "new_path": "community/en-us/release.md", "diff": "@@ -463,12 +463,25 @@ Thanks everyone for taking time to check this release and help us.\n## Finish the Release\n-### Move source packages, binary packages and KEYS from the `dev` directory to `release` directory\n+### Move source packages, binary packages from the `dev` directory to `release` directory\n```shell\nsvn mv https://dist.apache.org/repos/dist/dev/dolphinscheduler/\"${VERSION}\" https://dist.apache.org/repos/dist/release/dolphinscheduler/\n```\n+### Export you new gpg KEYS from dev to release(optional)\n+\n+Only if the first time you release with this gpg KEY, including it is you first release or you change your KEY\n+\n+```shell\n+mkdir -p ~/ds_svn/release/\n+cd ~/ds_svn/release/\n+svn --username=\"${A_USERNAME}\" co https://dist.apache.org/repos/dist/release/dolphinscheduler\n+gpg -a --export <YOUR-GPG-KEY-ID> >> KEYS\n+svn add *\n+svn --username=\"${A_USERNAME}\" commit -m \"new key <YOUR-GPG-KEY-ID> add\"\n+```\n+\n### Update Document\nWebsite should be present before you send the announce mail this section will tell you how to change the website. For example,\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
impv: add keys to release KEYS (#807)
36,284
08.07.2022 19:01:50
-28,800
50679e11d0cb8d9ecb32acbfc24bd62be7f61b94
release: version 2.0.6
[ { "change_type": "MODIFY", "old_path": "download/en-us/download.md", "new_path": "download/en-us/download.md", "diff": "@@ -7,6 +7,8 @@ Use the links below to download the Apache DolphinScheduler from one of our mirr\n## DolphinScheduler\n| Date | Version| | Downloads |\n|:---:|:--:|:--:|:--:|\n+| Jul. 8th, 2022 | 2.0.6 | Total Source Code| [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/2.0.6/apache-dolphinscheduler-2.0.6-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/2.0.6/apache-dolphinscheduler-2.0.6-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/2.0.6/apache-dolphinscheduler-2.0.6-src.tar.gz.sha512)|\n+| | | Total Binary Distribution| [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/2.0.6/apache-dolphinscheduler-2.0.6-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/2.0.6/apache-dolphinscheduler-2.0.6-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/2.0.6/apache-dolphinscheduler-2.0.6-bin.tar.gz.sha512)|\n| Jul. 2th, 2022 | 3.0.0-beta-2 | Total Source Code| [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.0-beta-2/apache-dolphinscheduler-3.0.0-beta-2-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.0-beta-2/apache-dolphinscheduler-3.0.0-beta-2-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.0-beta-2/apache-dolphinscheduler-3.0.0-beta-2-src.tar.gz.sha512)|\n| | | Total Binary Distribution| [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.0-beta-2/apache-dolphinscheduler-3.0.0-beta-2-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.0-beta-2/apache-dolphinscheduler-3.0.0-beta-2-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.0-beta-2/apache-dolphinscheduler-3.0.0-beta-2-bin.tar.gz.sha512)|\n| May. 30th, 2022 | 3.0.0-beta-1 | Total Source Code| [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.0-beta-1/apache-dolphinscheduler-3.0.0-beta-1-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.0-beta-1/apache-dolphinscheduler-3.0.0-beta-1-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.0-beta-1/apache-dolphinscheduler-3.0.0-beta-1-src.tar.gz.sha512)|\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
release: version 2.0.6 (#809)
36,332
14.07.2022 18:01:44
-28,800
e7af5671a2302db7cbf01f5608fc216ddec7931e
[team] Add a new teammate - Chufeng Gao
[ { "change_type": "MODIFY", "old_path": "community/en-us/team.md", "new_path": "community/en-us/team.md", "diff": "@@ -58,6 +58,7 @@ The DolphinScheduler team is comprised of Members and Contributors. Members have\n| Zihao Xiang | zihaoxiang | [@SbloodyS](https://github.com/SbloodyS) |\n| Amy Wang | wanggenhua | [@Amy0104](https://github.com/Amy0104) |\n| JunJie Xu | xujunjie | [@labbomb](https://github.com/labbomb) |\n+| Chufeng Gao | chufenggao | [@EricGao888](https://github.com/EricGao888) |\n## Contributors\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[team] Add a new teammate - Chufeng Gao (#812)
36,284
04.08.2022 11:07:32
-28,800
d92d5f83288b036206a4c05b360845711487f14c
[team] New PMC jinyong and new committer
[ { "change_type": "MODIFY", "old_path": "community/en-us/team.md", "new_path": "community/en-us/team.md", "diff": "@@ -28,6 +28,7 @@ The DolphinScheduler team is comprised of Members and Contributors. Members have\n| Zhenxu Ke | kezhenxu94 | [@kezhenxu94](https://github.com/kezhenxu94) |\n| Wenjun Ruan | wenjun | [@ruanwenjun](https://github.com/ruanwenjun) |\n| Zihao Xiang | zihaoxiang | [@SbloodyS](https://github.com/SbloodyS) |\n+| JinyLeeChina | jinyleechina | [@JinyLeeChina](https://github.com/JinyLeeChina) |\n### Committer\n@@ -48,7 +49,6 @@ The DolphinScheduler team is comprised of Members and Contributors. Members have\n| Xingchun Chen | chenxingchun | [@xingchun-chen](https://github.com/xingchun-chen) |\n| Yichao Yang | yangyichao | [@yangyichao-mango](https://github.com/yangyichao-mango) |\n| Zongyao Zhang | lfyee | [@lfyee](https://github.com/lfyee) |\n-| JinyLeeChina | jinyleechina | [@JinyLeeChina](https://github.com/JinyLeeChina) |\n| Wang Xingjie | wangxj | [@wangxj3](https://github.com/wangxj3) |\n| Yizhi Wang | wangyizhi | [@Wangyizhi1](https://github.com/Wangyizhi1) |\n| Jian Song | songjian | [@songjianet](https://github.com/songjianet) |\n@@ -59,6 +59,7 @@ The DolphinScheduler team is comprised of Members and Contributors. Members have\n| Amy Wang | wanggenhua | [@Amy0104](https://github.com/Amy0104) |\n| JunJie Xu | xujunjie | [@labbomb](https://github.com/labbomb) |\n| Chufeng Gao | chufenggao | [@EricGao888](https://github.com/EricGao888) |\n+| JiPeng Wang | wangjipeng | [@WangJPLeo](https://github.com/WangJPLeo) |\n## Contributors\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[team] New PMC jinyong and new committer (#816)
36,284
10.08.2022 16:17:53
-28,800
8ca3548ff4cd7ae2977eabc04c9367c64c2ca009
[impv] Allow change config by env variable run prepare_docs.sh This patch allows user change the default setting from environment variable, which make change easier
[ { "change_type": "MODIFY", "old_path": "HOW_PREPARE_WOKR.md", "new_path": "HOW_PREPARE_WOKR.md", "diff": "@@ -52,3 +52,24 @@ declare -A DEV_RELEASE_DOCS_VERSIONS=(\n...\n)\n```\n+\n+## How to Change Document Build Configuration Like Organization or Branch\n+\n+All the configurations is in [conf.sh](./scripts/conf.sh), and their can be change by environment variable. For example, you can point\n+documentation source file to your fork of [apache/dolphinscheudler](https://github.com/apache/dolphinscheduler) when you add some change\n+and want to start website locally for testing, you can run below command to change `./script/prepare_docs.sh` behavior.\n+\n+```shell\n+# your github id already fork apache/dolphinscheduler\n+export PROJECT_ORG=\"<YOUR-GITHUB-ID>\"\n+# the branch name you want to fetch and deploy website's document\n+export PROJECT_BRANCH_NAME=\"<DEPLOY-BRANCH-OF-FORK>\"\n+```\n+\n+After you export the environment, you can fetch the document source markdown file from `<YOUR-GITHUB-ID>/dolphinscheduler` branch\n+`<DEPLOY-BRANCH-OF-FORK>`. it is useful when you try to test your local change before merging to apache/dolphinscheudler. For all\n+parameter can set from environment you can see in [conf.sh](./scripts/conf.sh)\n+\n+> NOTE: You have to make sure the branch config named with `DEV_RELEASE_DOCS_VERSIONS` in [conf.sh](./scripts/conf.sh) exist in your\n+> fork, when you try to deploy or test base on your fork instead of official repo. You can rebase to apache/dolphinscheduler and then\n+> run `git push <REMOTE> --all` to push all barnacles to your fork.\n" }, { "change_type": "MODIFY", "old_path": "scripts/conf.sh", "new_path": "scripts/conf.sh", "diff": "# under the License.\n# Codebase Repository\n-PROJECT_NAME=\"dolphinscheduler\"\n-PROJECT_BRANCH_NAME=\"dev\"\n-PROJECT_WEBSITE_NAME=\"${PROJECT_NAME}-website\"\n-PROJECT_WEBSITE_BRANCH_NAME=\"history-docs\"\n+PROJECT_ORG=${PROJECT_ORG:-apache}\n+PROJECT_NAME=${PROJECT_NAME:-dolphinscheduler}\n+PROJECT_BRANCH_NAME=${PROJECT_BRANCH_NAME:-dev}\n+PROJECT_WEBSITE_ORG=${PROJECT_WEBSITE_ORG:-apache}\n+PROJECT_WEBSITE_NAME=${PROJECT_WEBSITE_NAME:-${PROJECT_NAME}-website}\n+PROJECT_WEBSITE_BRANCH_NAME=${PROJECT_WEBSITE_BRANCH_NAME:-history-docs}\n# Repository Website(current) Directory And Files\n-SWAP_DIR=\"${SOURCE_PATH}/swap\"\n-PROJECT_SITE_DOC_DIR=\"${SOURCE_PATH}/docs\"\n-PROJECT_DIR=\"${SWAP_DIR}/${PROJECT_NAME}\"\n-PROJECT_WEBSITE_DIR=\"${SWAP_DIR}/${PROJECT_WEBSITE_NAME}\"\n+SWAP_DIR=${SWAP_DIR:-${SOURCE_PATH}/swap}\n+PROJECT_SITE_DOC_DIR=${PROJECT_SITE_DOC_DIR:-${SOURCE_PATH}/docs}\n+PROJECT_DIR=${PROJECT_DIR:-${SWAP_DIR}/${PROJECT_NAME}}\n+PROJECT_WEBSITE_DIR=${PROJECT_WEBSITE_DIR:-${SWAP_DIR}/${PROJECT_WEBSITE_NAME}}\n# docs in apache/dolphinscheduler-webstie branch `history-docs`\ndeclare -a HISTORY_DOCS_VERSIONS=(\n" }, { "change_type": "MODIFY", "old_path": "scripts/prepare_docs.sh", "new_path": "scripts/prepare_docs.sh", "diff": "@@ -27,11 +27,11 @@ source \"${SOURCE_PATH}/scripts/conf.sh\"\n# run command `export PROTOCOL_MODE=ssh` in terminal change protocol to SSH which in is faster and stable in many cases,\n# such as local development where we already have RSA public key.\nif [ \"${PROTOCOL_MODE:-HTTP}\" == \"ssh\" ]; then\n- PROJECT_REPO=\"git@github.com:apache/${PROJECT_NAME}.git\"\n- PROJECT_WEBSITE_REPO=\"git@github.com:apache/${PROJECT_WEBSITE_NAME}.git\"\n+ PROJECT_REPO=\"git@github.com:${PROJECT_ORG}/${PROJECT_NAME}.git\"\n+ PROJECT_WEBSITE_REPO=\"git@github.com:${PROJECT_WEBSITE_ORG}/${PROJECT_WEBSITE_NAME}.git\"\nelse\n- PROJECT_REPO=\"https://github.com/apache/${PROJECT_NAME}.git\"\n- PROJECT_WEBSITE_REPO=\"https://github.com/apache/${PROJECT_WEBSITE_NAME}.git\"\n+ PROJECT_REPO=\"https://github.com/${PROJECT_ORG}/${PROJECT_NAME}.git\"\n+ PROJECT_WEBSITE_REPO=\"https://github.com/${PROJECT_WEBSITE_ORG}/${PROJECT_WEBSITE_NAME}.git\"\nfi\n##############################################################\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[impv] Allow change config by env variable run prepare_docs.sh (#818) This patch allows user change the default setting from environment variable, which make change easier
36,284
11.08.2022 12:04:56
-28,800
cbfa058b762ae1f90982edf7f434088987fd22eb
feat: Support python multiple version documents
[ { "change_type": "MODIFY", "old_path": ".github/workflows/website.yml", "new_path": ".github/workflows/website.yml", "diff": "@@ -8,38 +8,13 @@ on:\n- cron: \"0 5 * * *\"\nenv:\n- PYDS_HOME: dolphinscheduler-python/pydolphinscheduler\n+ # We use the repo in swap/dolphinscheduler to build all python versions docs\n+ PYDS_HOME: swap/dolphinscheduler/dolphinscheduler-python/pydolphinscheduler\n+ DEPENDENCES: pip setuptools wheel tox\njobs:\n- build-py-doc:\n- name: Build Python Doc\n- runs-on: ubuntu-latest\n- steps:\n- - name: Checkout apache/dolphinscheduler\n- uses: actions/checkout@v2\n- with:\n- repository: apache/dolphinscheduler\n- - name: Set up Python 3.7\n- uses: actions/setup-python@v2\n- with:\n- python-version: 3.7\n- - name: Install Development Dependences\n- working-directory: ${{ env.PYDS_HOME }}\n- run: |\n- pip install -e .[doc]\n- - name: Test Build Document\n- working-directory: ${{ env.PYDS_HOME }}/docs\n- run: make clean && make html\n- - uses: actions/upload-artifact@v2\n- name: Upload Python API Dist Doc\n- with:\n- name: python-dist-doc\n- path: ${{ env.PYDS_HOME }}/docs/build/html\n- retention-days: 1\n-\nbuild-website-deploy:\nruns-on: ubuntu-latest\n- needs: [ build-py-doc ]\nsteps:\n- name: Checkout\nuses: actions/checkout@master\n@@ -51,14 +26,20 @@ jobs:\nuses: actions/setup-node@v1\nwith:\nnode-version: 10.23.1\n- - name: Build\n+\n+ - name: Build Main Document\nrun: npm install && npm run build\n- - uses: actions/download-artifact@v2\n- name: Download Python API Dist Document\n+ - name: Set up Python 3.7\n+ uses: actions/setup-python@v2\nwith:\n- name: python-dist-doc\n- path: dist/python\n+ python-version: 3.7\n+ - name: Build Python Multiple Version Document\n+ working-directory: ${{ env.PYDS_HOME }}\n+ run: |\n+ python -m pip install --upgrade ${{ env.DEPENDENCES }}\n+ python -m tox -vv -e doc-build-multi\n+ cp -r docs/build/html/versions ${GITHUB_WORKSPACE}/dist/python\n- name: Deploy\nuses: peaceiris/actions-gh-pages@v3\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
feat: Support python multiple version documents (#822)
36,327
26.09.2022 19:20:48
-28,800
b6f9bcbef818e0a0582298874c46b215524aa377
[release]add 3.0.1 release
[ { "change_type": "MODIFY", "old_path": "download/en-us/download.md", "new_path": "download/en-us/download.md", "diff": "@@ -7,6 +7,8 @@ Use the links below to download the Apache DolphinScheduler from one of our mirr\n## DolphinScheduler\n| Date | Version| | Downloads |\n|:---:|:--:|:--:|:--:|\n+| Sep. 26th, 2022 | 3.0.1 | Total Source Code| [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.1/apache-dolphinscheduler-3.0.1-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.1/apache-dolphinscheduler-3.0.1-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.1/apache-dolphinscheduler-3.0.1-src.tar.gz.sha512)|\n+| | | Total Binary Distribution| [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.1/apache-dolphinscheduler-3.0.1-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.1/apache-dolphinscheduler-3.0.1-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.1/apache-dolphinscheduler-3.0.1-bin.tar.gz.sha512)|\n| Aug. 9th, 2022 | 3.0.0 | Total Source Code| [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.0/apache-dolphinscheduler-3.0.0-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.0/apache-dolphinscheduler-3.0.0-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.0/apache-dolphinscheduler-3.0.0-src.tar.gz.sha512)|\n| | | Total Binary Distribution| [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.0/apache-dolphinscheduler-3.0.0-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.0/apache-dolphinscheduler-3.0.0-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.0/apache-dolphinscheduler-3.0.0-bin.tar.gz.sha512)|\n| Jul. 8th, 2022 | 2.0.6 | Total Source Code| [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/2.0.6/apache-dolphinscheduler-2.0.6-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/2.0.6/apache-dolphinscheduler-2.0.6-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/2.0.6/apache-dolphinscheduler-2.0.6-src.tar.gz.sha512)|\n" }, { "change_type": "MODIFY", "old_path": "scripts/conf.sh", "new_path": "scripts/conf.sh", "diff": "@@ -44,4 +44,5 @@ DEV_RELEASE_DOCS_VERSIONS=(\n# The key value is represents of, `key` for document version and `val` for source branch apache/dolphinscheduler.\n# example: \"key:val\"\n\"3.0.0:3.0.0-release\"\n+ \"3.0.1:3.0.1-release\"\n)\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[release]add 3.0.1 release (#829)
36,297
30.09.2022 12:14:57
-28,800
415fdbcf53ff7f4fc18a63f1b5eb3310a1b58c7e
[Release] Add release 3.1.0
[ { "change_type": "MODIFY", "old_path": "download/en-us/download.md", "new_path": "download/en-us/download.md", "diff": "@@ -7,6 +7,8 @@ Use the links below to download the Apache DolphinScheduler from one of our mirr\n## DolphinScheduler\n| Date | Version| | Downloads |\n|:---:|:--:|:--:|:--:|\n+| Sep. 30th, 2022 | 3.1.0 | Total Source Code | [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.1.0/apache-dolphinscheduler-3.1.0-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.1.0/apache-dolphinscheduler-3.1.0-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.1.0/apache-dolphinscheduler-3.1.0-src.tar.gz.sha512) |\n+| | | Total Binary Distribution | [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.1.0/apache-dolphinscheduler-3.1.0-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.1.0/apache-dolphinscheduler-3.1.0-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.1.0/apache-dolphinscheduler-3.1.0-bin.tar.gz.sha512) |\n| Sep. 26th, 2022 | 3.0.1 | Total Source Code| [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.1/apache-dolphinscheduler-3.0.1-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.1/apache-dolphinscheduler-3.0.1-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.1/apache-dolphinscheduler-3.0.1-src.tar.gz.sha512)|\n| | | Total Binary Distribution| [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.1/apache-dolphinscheduler-3.0.1-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.1/apache-dolphinscheduler-3.0.1-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.1/apache-dolphinscheduler-3.0.1-bin.tar.gz.sha512)|\n| Aug. 9th, 2022 | 3.0.0 | Total Source Code| [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.0/apache-dolphinscheduler-3.0.0-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.0/apache-dolphinscheduler-3.0.0-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.0/apache-dolphinscheduler-3.0.0-src.tar.gz.sha512)|\n" }, { "change_type": "MODIFY", "old_path": "scripts/conf.sh", "new_path": "scripts/conf.sh", "diff": "@@ -45,4 +45,5 @@ DEV_RELEASE_DOCS_VERSIONS=(\n# example: \"key:val\"\n\"3.0.0:3.0.0-release\"\n\"3.0.1:3.0.1-release\"\n+ \"3.1.0:3.1.0-release\"\n)\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[Release] Add release 3.1.0 (#830)
36,284
06.10.2022 12:43:59
-28,800
1b2fd7da28bd2ebb6489f734d95cb10235df222e
[community] Update team member
[ { "change_type": "MODIFY", "old_path": "blog/en-us/Apache-DolphinScheduler-2.0.1.md", "new_path": "blog/en-us/Apache-DolphinScheduler-2.0.1.md", "diff": "@@ -25,7 +25,7 @@ Start process activity diagram\nVersion 2.0.1 enhanced the system's processing capabilities by optimizing the kernel, thereby greatly improving\nperformance. The new UI interface also greatly improved the user experience. More importantly, there are two major\nchanges in version 2.0.1: plug-in and refactoring.\n-https://dolphinscheduler.apache.org/en-us/docs/latest/user_doc/guide/upgrade.html\n+https://dolphinscheduler.apache.org/en-us/docs/2.0.1/user_doc/guide/upgrade.html\n## 01 Plug-in\nPreviously, some users had feedback that they hoped that Apache DolphinScheduler could be optimized for plug-inization.\n@@ -111,7 +111,7 @@ sh ./script/create-dolphinscheduler.sh\nFor specific upgrade documentation, please refer to:\n-https://dolphinscheduler.apache.org/en-us/docs/latest/user_doc/guide/upgrade.html\n+https://dolphinscheduler.apache.org/en-us/docs/2.0.1/user_doc/guide/upgrade.html\nIn addition, future versions of Apache DolphinScheduler can be automatically upgraded, saving the trouble of manual\nupgrades.\n" }, { "change_type": "MODIFY", "old_path": "community/en-us/community.md", "new_path": "community/en-us/community.md", "diff": "@@ -43,11 +43,12 @@ The DolphinScheduler team is comprised of Members and Contributors. Members have\n| Wenjun Ruan | wenjun | [@ruanwenjun](https://github.com/ruanwenjun) |\n| Zihao Xiang | zihaoxiang | [@SbloodyS](https://github.com/SbloodyS) |\n| JinyLeeChina | jinyleechina | [@JinyLeeChina](https://github.com/JinyLeeChina) |\n+| Jian Song | songjian | [@songjianet](https://github.com/songjianet) |\n### Committer\n| Public Name | Apache ID | GitHub ID |\n-| ------------- | ------------ | -------------------------------------------------------- |\n+| ------------- | ------------ |----------------------------------------------------------|\n| BoYi Zhang | zhangboyi | [@BoYiZhang](https://github.com/BoYiZhang) |\n| Caibiao Xiang | break60 | [@break60](https://github.com/break60) |\n| Cong Huang | chongchongzi | [@chongchongzi](https://github.com/chongchongzi) |\n@@ -65,7 +66,6 @@ The DolphinScheduler team is comprised of Members and Contributors. Members have\n| Zongyao Zhang | lfyee | [@lfyee](https://github.com/lfyee) |\n| Wang Xingjie | wangxj | [@wangxj3](https://github.com/wangxj3) |\n| Yizhi Wang | wangyizhi | [@Wangyizhi1](https://github.com/Wangyizhi1) |\n-| Jian Song | songjian | [@songjianet](https://github.com/songjianet) |\n| Zhaohe Sun | zixi0825 | [@zixi0825](https://github.com/zixi0825) |\n| Tianqi Yan | tianqiyan | [@Tianqi-Dotes](https://github.com/Tianqi-Dotes) |\n| Dongkai Liu | liudongkai | [@devosend](https://github.com/devosend) |\n@@ -74,6 +74,9 @@ The DolphinScheduler team is comprised of Members and Contributors. Members have\n| JunJie Xu | xujunjie | [@labbomb](https://github.com/labbomb) |\n| Chufeng Gao | chufenggao | [@EricGao888](https://github.com/EricGao888) |\n| JiPeng Wang | wangjipeng | [@WangJPLeo](https://github.com/WangJPLeo) |\n+| Lifeng Nie | nielifeng | [@nielifeng](https://github.com/nielifeng) |\n+| WenCheng Dai | nobolity | [@nobolity](https://github.com/nobolity) |\n+| Jieguang Zhou | zhoujieguang | [@zhoujieguang](https://github.com/jieguangzhou) |\n### Contributors\n" }, { "change_type": "MODIFY", "old_path": "sitemap.xml", "new_path": "sitemap.xml", "diff": "<lastmod>2022-05-21T05:06:04+00:00</lastmod>\n<priority>0.64</priority>\n</url>\n-<url>\n- <loc>https://dolphinscheduler.apache.org/en-us/docs/latest/user_doc/guide/upgrade.html</loc>\n- <lastmod>2022-05-21T05:06:04+00:00</lastmod>\n- <priority>0.64</priority>\n-</url>\n<url>\n<loc>https://dolphinscheduler.apache.org/en-us/docs/latest/user_doc/guide/expansion-reduction.html</loc>\n<lastmod>2022-05-21T05:06:04+00:00</lastmod>\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[community] Update team member (#831)
36,284
24.10.2022 13:36:32
-28,800
05307d61d8df6810c670fdcd5414b606dcb806c1
new release version 207
[ { "change_type": "MODIFY", "old_path": "scripts/conf.sh", "new_path": "scripts/conf.sh", "diff": "@@ -34,7 +34,7 @@ PROJECT_WEBSITE_DIR=${PROJECT_WEBSITE_DIR:-${SWAP_DIR}/${PROJECT_WEBSITE_NAME}}\n# docs in apache/dolphinscheduler-webstie branch `history-docs`\ndeclare -a HISTORY_DOCS_VERSIONS=(\n\"1.2.0\" \"1.2.1\" \"1.3.1\" \"1.3.2\" \"1.3.3\" \"1.3.4\" \"1.3.5\" \"1.3.6\" \"1.3.8\" \"1.3.9\"\n-\"2.0.0\" \"2.0.1\" \"2.0.2\" \"2.0.3\" \"2.0.5\" \"2.0.6\"\n+\"2.0.0\" \"2.0.1\" \"2.0.2\" \"2.0.3\" \"2.0.5\" \"2.0.6\" \"2.0.7\"\n)\n# NOTE: We should avoid use syntax `declare -A DEV_RELEASE_DOCS_VERSIONS=([\"3.0.0\"]=\"3.0.0-alpha-release\")` because\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
new release version 207 (#834)
36,284
24.10.2022 15:13:23
-28,800
05acaa1b586fcef4f3057f6677b33f94160d1d53
[fix] Add missing download link for 207
[ { "change_type": "MODIFY", "old_path": "download/en-us/download.md", "new_path": "download/en-us/download.md", "diff": "@@ -7,6 +7,8 @@ Use the links below to download the Apache DolphinScheduler from one of our mirr\n## DolphinScheduler\n| Date | Version| | Downloads |\n|:---:|:--:|:--:|:--:|\n+| Oct. 24th, 2022 | 2.0.7 | Total Source Code | [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/2.0.7/apache-dolphinscheduler-2.0.7-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/2.0.7/apache-dolphinscheduler-2.0.7-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/2.0.7/apache-dolphinscheduler-2.0.7-src.tar.gz.sha512) |\n+| | | Total Binary Distribution | [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/2.0.7/apache-dolphinscheduler-2.0.7-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/2.0.7/apache-dolphinscheduler-2.0.7-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/2.0.7/apache-dolphinscheduler-2.0.7-bin.tar.gz.sha512) |\n| Sep. 30th, 2022 | 3.1.0 | Total Source Code | [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.1.0/apache-dolphinscheduler-3.1.0-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.1.0/apache-dolphinscheduler-3.1.0-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.1.0/apache-dolphinscheduler-3.1.0-src.tar.gz.sha512) |\n| | | Total Binary Distribution | [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.1.0/apache-dolphinscheduler-3.1.0-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.1.0/apache-dolphinscheduler-3.1.0-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.1.0/apache-dolphinscheduler-3.1.0-bin.tar.gz.sha512) |\n| Sep. 26th, 2022 | 3.0.1 | Total Source Code| [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.1/apache-dolphinscheduler-3.0.1-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.1/apache-dolphinscheduler-3.0.1-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.1/apache-dolphinscheduler-3.0.1-src.tar.gz.sha512)|\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[fix] Add missing download link for 207 (#835)
36,284
09.11.2022 21:41:43
-28,800
9f1eb39808ea9e1ecdbf8b4300cd8ff07c87ee42
[feat] Only check all docs dead link in schedule event
[ { "change_type": "MODIFY", "old_path": ".github/workflows/dead-link-checker.yaml", "new_path": ".github/workflows/dead-link-checker.yaml", "diff": "name: Dead Link Checker\non:\n+ push:\n+ branches:\n+ - master\npull_request:\n+ schedule:\n+ - cron: \"0 5 * * *\"\nconcurrency:\ngroup: dlc-${{ github.event.pull_request.number || github.ref }}\n@@ -30,6 +35,7 @@ jobs:\nsteps:\n- uses: actions/checkout@v2\n- name: Prepare Related Resource\n+ if: github.event_name == 'push' && github.ref == 'refs/heads/master' || github.event_name == 'schedule'\nrun: ./scripts/prepare_docs.sh\n- run: sudo npm install -g markdown-link-check@3.10.0\n# We need to delete directory swap before markdown checker\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[feat] Only check all docs dead link in schedule event (#840)
36,284
09.11.2022 21:42:37
-28,800
fa430c680740f26086cac08f2e0147141a18159c
[feat] Change python API into other repo ref:
[ { "change_type": "MODIFY", "old_path": ".github/workflows/website.yml", "new_path": ".github/workflows/website.yml", "diff": "@@ -9,13 +9,14 @@ on:\nenv:\n# We use the repo in swap/dolphinscheduler to build all python versions docs\n- PYDS_HOME: swap/dolphinscheduler/dolphinscheduler-python/pydolphinscheduler\n+ PYDS_HOME: swap/dolphinscheduler-sdk-python\nDEPENDENCES: pip setuptools wheel tox\njobs:\nbuild-website-deploy:\nruns-on: ubuntu-latest\nsteps:\n+ # Build main document: DolphinScheduler documentation\n- name: Checkout\nuses: actions/checkout@master\n@@ -30,6 +31,7 @@ jobs:\n- name: Build Main Document\nrun: npm install && npm run build\n+ # Build Python API document: from https://github.com/apache/dolphinscheduler-sdk-python\n- name: Set up Python 3.7\nuses: actions/setup-python@v2\nwith:\n" }, { "change_type": "MODIFY", "old_path": "scripts/conf.sh", "new_path": "scripts/conf.sh", "diff": "PROJECT_ORG=${PROJECT_ORG:-apache}\nPROJECT_NAME=${PROJECT_NAME:-dolphinscheduler}\nPROJECT_BRANCH_NAME=${PROJECT_BRANCH_NAME:-dev}\n+\n+PROJECT_PYTHON_ORG=${PROJECT_PYTHON_ORG:-apache}\n+PROJECT_PYTHON_NAME=${PROJECT_PYTHON_NAME:-${PROJECT_NAME}-sdk-python}\n+PROJECT_PYTHON_BRANCH_NAME=${PROJECT_PYTHON_BRANCH_NAME:-main}\n+\nPROJECT_WEBSITE_ORG=${PROJECT_WEBSITE_ORG:-apache}\nPROJECT_WEBSITE_NAME=${PROJECT_WEBSITE_NAME:-${PROJECT_NAME}-website}\nPROJECT_WEBSITE_BRANCH_NAME=${PROJECT_WEBSITE_BRANCH_NAME:-history-docs}\n@@ -29,6 +34,7 @@ PROJECT_WEBSITE_BRANCH_NAME=${PROJECT_WEBSITE_BRANCH_NAME:-history-docs}\nSWAP_DIR=${SWAP_DIR:-${SOURCE_PATH}/swap}\nPROJECT_SITE_DOC_DIR=${PROJECT_SITE_DOC_DIR:-${SOURCE_PATH}/docs}\nPROJECT_DIR=${PROJECT_DIR:-${SWAP_DIR}/${PROJECT_NAME}}\n+PROJECT_PYTHON_DIR=${PROJECT_PYTHON_DIR:-${SWAP_DIR}/${PROJECT_PYTHON_NAME}}\nPROJECT_WEBSITE_DIR=${PROJECT_WEBSITE_DIR:-${SWAP_DIR}/${PROJECT_WEBSITE_NAME}}\n# docs in apache/dolphinscheduler-webstie branch `history-docs`\n" }, { "change_type": "MODIFY", "old_path": "scripts/prepare_docs.sh", "new_path": "scripts/prepare_docs.sh", "diff": "@@ -29,9 +29,11 @@ source \"${SOURCE_PATH}/scripts/conf.sh\"\nif [ \"${PROTOCOL_MODE:-HTTP}\" == \"ssh\" ]; then\nPROJECT_REPO=\"git@github.com:${PROJECT_ORG}/${PROJECT_NAME}.git\"\nPROJECT_WEBSITE_REPO=\"git@github.com:${PROJECT_WEBSITE_ORG}/${PROJECT_WEBSITE_NAME}.git\"\n+ PROJECT_PYTHON_REPO=\"git@github.com:${PROJECT_PYTHON_ORG}/${PROJECT_PYTHON_NAME}.git\"\nelse\nPROJECT_REPO=\"https://github.com/${PROJECT_ORG}/${PROJECT_NAME}.git\"\nPROJECT_WEBSITE_REPO=\"https://github.com/${PROJECT_WEBSITE_ORG}/${PROJECT_WEBSITE_NAME}.git\"\n+ PROJECT_PYTHON_REPO=\"https://github.com/${PROJECT_PYTHON_ORG}/${PROJECT_PYTHON_NAME}.git\"\nfi\n##############################################################\n@@ -134,8 +136,10 @@ function prepare_docs() {\necho \"===>>> Clone repository.\"\necho \" ---> Clone history documents from ${PROJECT_WEBSITE_REPO} branch ${PROJECT_WEBSITE_BRANCH_NAME}.\"\nclone_repo \"${PROJECT_WEBSITE_REPO}\" \"${PROJECT_WEBSITE_BRANCH_NAME}\" \"${PROJECT_WEBSITE_DIR}\"\n- echo \" ---> Clone dev documents from ${PROJECT_REPO} branch ${PROJECT_BRANCH_NAME}.\"\n+ echo \" ---> Clone DolphinScheduler latest documents from ${PROJECT_REPO} branch ${PROJECT_BRANCH_NAME}.\"\nclone_repo \"${PROJECT_REPO}\" \"${PROJECT_BRANCH_NAME}\" \"${PROJECT_DIR}\"\n+ echo \" ---> Clone Python API latest documents from ${PROJECT_PYTHON_REPO} branch ${PROJECT_PYTHON_BRANCH_NAME}.\"\n+ clone_repo \"${PROJECT_PYTHON_REPO}\" \"${PROJECT_PYTHON_BRANCH_NAME}\" \"${PROJECT_PYTHON_DIR}\"\nsource \"${SOURCE_PATH}/scripts/rsync_content.sh\"\necho \"===>>> Sync content from cloned repository.\"\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[feat] Change python API into other repo (#839) ref: https://github.com/apache/dolphinscheduler/pull/12779 https://github.com/apache/dolphinscheduler-sdk-python/pull/1
36,327
11.11.2022 15:39:33
-28,800
51bf2662bd486d3968c8bee9708da7a73168f510
add 3.1.1 release
[ { "change_type": "MODIFY", "old_path": "download/en-us/download.md", "new_path": "download/en-us/download.md", "diff": "@@ -7,6 +7,8 @@ Use the links below to download the Apache DolphinScheduler from one of our mirr\n## DolphinScheduler\n| Date | Version| | Downloads |\n|:---:|:--:|:--:|:--:|\n+| Nov. 11th, 2022 | 3.1.1 | Total Source Code | [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.1.1/apache-dolphinscheduler-3.1.1-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.1.1/apache-dolphinscheduler-3.1.1-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.1.1/apache-dolphinscheduler-3.1.1-src.tar.gz.sha512) |\n+| | | Total Binary Distribution | [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.1.1/apache-dolphinscheduler-3.1.1-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.1.1/apache-dolphinscheduler-3.1.1-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.1.1/apache-dolphinscheduler-3.1.1-bin.tar.gz.sha512) |\n| Oct. 24th, 2022 | 2.0.7 | Total Source Code | [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/2.0.7/apache-dolphinscheduler-2.0.7-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/2.0.7/apache-dolphinscheduler-2.0.7-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/2.0.7/apache-dolphinscheduler-2.0.7-src.tar.gz.sha512) |\n| | | Total Binary Distribution | [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/2.0.7/apache-dolphinscheduler-2.0.7-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/2.0.7/apache-dolphinscheduler-2.0.7-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/2.0.7/apache-dolphinscheduler-2.0.7-bin.tar.gz.sha512) |\n| Sep. 30th, 2022 | 3.1.0 | Total Source Code | [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.1.0/apache-dolphinscheduler-3.1.0-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.1.0/apache-dolphinscheduler-3.1.0-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.1.0/apache-dolphinscheduler-3.1.0-src.tar.gz.sha512) |\n" }, { "change_type": "MODIFY", "old_path": "scripts/conf.sh", "new_path": "scripts/conf.sh", "diff": "@@ -52,4 +52,5 @@ DEV_RELEASE_DOCS_VERSIONS=(\n\"3.0.0:3.0.0-release\"\n\"3.0.1:3.0.1-release\"\n\"3.1.0:3.1.0-release\"\n+ \"3.1.1:3.1.1-release\"\n)\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
add 3.1.1 release (#841)
36,332
22.11.2022 10:30:33
-28,800
b36385405ff6a666bd6b2df25ae2daef2bb8c2a5
Update docs for 3.0.2 release
[ { "change_type": "MODIFY", "old_path": "download/en-us/download.md", "new_path": "download/en-us/download.md", "diff": "@@ -7,7 +7,9 @@ Use the links below to download the Apache DolphinScheduler from one of our mirr\n## DolphinScheduler\n| Date | Version| | Downloads |\n|:---:|:--:|:--:|:--:|\n-| Nov. 11th, 2022 | 3.1.1 | Total Source Code | [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.1.1/apache-dolphinscheduler-3.1.1-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.1.1/apache-dolphinscheduler-3.1.1-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.1.1/apache-dolphinscheduler-3.1.1-src.tar.gz.sha512) |\n+| Nov. 21st, 2022 | 3.0.2 | Total Source Code | [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.2/apache-dolphinscheduler-3.0.2-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.2/apache-dolphinscheduler-3.0.2-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.2/apache-dolphinscheduler-3.0.2-src.tar.gz.sha512) |\n+| | | Total Binary Distribution | [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.2/apache-dolphinscheduler-3.0.2-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.2/apache-dolphinscheduler-3.0.2-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.2/apache-dolphinscheduler-3.0.2-bin.tar.gz.sha512) |\n+| Nov. 11st, 2022 | 3.1.1 | Total Source Code | [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.1.1/apache-dolphinscheduler-3.1.1-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.1.1/apache-dolphinscheduler-3.1.1-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.1.1/apache-dolphinscheduler-3.1.1-src.tar.gz.sha512) |\n| | | Total Binary Distribution | [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.1.1/apache-dolphinscheduler-3.1.1-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.1.1/apache-dolphinscheduler-3.1.1-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.1.1/apache-dolphinscheduler-3.1.1-bin.tar.gz.sha512) |\n| Oct. 24th, 2022 | 2.0.7 | Total Source Code | [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/2.0.7/apache-dolphinscheduler-2.0.7-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/2.0.7/apache-dolphinscheduler-2.0.7-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/2.0.7/apache-dolphinscheduler-2.0.7-src.tar.gz.sha512) |\n| | | Total Binary Distribution | [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/2.0.7/apache-dolphinscheduler-2.0.7-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/2.0.7/apache-dolphinscheduler-2.0.7-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/2.0.7/apache-dolphinscheduler-2.0.7-bin.tar.gz.sha512) |\n@@ -19,7 +21,7 @@ Use the links below to download the Apache DolphinScheduler from one of our mirr\n| | | Total Binary Distribution| [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.0/apache-dolphinscheduler-3.0.0-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.0/apache-dolphinscheduler-3.0.0-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.0/apache-dolphinscheduler-3.0.0-bin.tar.gz.sha512)|\n| Jul. 8th, 2022 | 2.0.6 | Total Source Code| [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/2.0.6/apache-dolphinscheduler-2.0.6-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/2.0.6/apache-dolphinscheduler-2.0.6-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/2.0.6/apache-dolphinscheduler-2.0.6-src.tar.gz.sha512)|\n| | | Total Binary Distribution| [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/2.0.6/apache-dolphinscheduler-2.0.6-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/2.0.6/apache-dolphinscheduler-2.0.6-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/2.0.6/apache-dolphinscheduler-2.0.6-bin.tar.gz.sha512)|\n-| Jul. 2th, 2022 | 3.0.0-beta-2 | Total Source Code| [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.0-beta-2/apache-dolphinscheduler-3.0.0-beta-2-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.0-beta-2/apache-dolphinscheduler-3.0.0-beta-2-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.0-beta-2/apache-dolphinscheduler-3.0.0-beta-2-src.tar.gz.sha512)|\n+| Jul. 2nd, 2022 | 3.0.0-beta-2 | Total Source Code| [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.0-beta-2/apache-dolphinscheduler-3.0.0-beta-2-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.0-beta-2/apache-dolphinscheduler-3.0.0-beta-2-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.0-beta-2/apache-dolphinscheduler-3.0.0-beta-2-src.tar.gz.sha512)|\n| | | Total Binary Distribution| [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.0-beta-2/apache-dolphinscheduler-3.0.0-beta-2-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.0-beta-2/apache-dolphinscheduler-3.0.0-beta-2-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.0-beta-2/apache-dolphinscheduler-3.0.0-beta-2-bin.tar.gz.sha512)|\n| May. 30th, 2022 | 3.0.0-beta-1 | Total Source Code| [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.0-beta-1/apache-dolphinscheduler-3.0.0-beta-1-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.0-beta-1/apache-dolphinscheduler-3.0.0-beta-1-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.0-beta-1/apache-dolphinscheduler-3.0.0-beta-1-src.tar.gz.sha512)|\n| | | Total Binary Distribution| [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.0-beta-1/apache-dolphinscheduler-3.0.0-beta-1-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.0-beta-1/apache-dolphinscheduler-3.0.0-beta-1-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.0-beta-1/apache-dolphinscheduler-3.0.0-beta-1-bin.tar.gz.sha512)|\n@@ -35,7 +37,7 @@ Use the links below to download the Apache DolphinScheduler from one of our mirr\n| | | Binary Distribution| [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/2.0.1/apache-dolphinscheduler-2.0.1-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/2.0.1/apache-dolphinscheduler-2.0.1-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/2.0.1/apache-dolphinscheduler-2.0.1-bin.tar.gz.sha512)|\n| Nov. 25th, 2021 | 2.0.0 | Source code| [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/2.0.0/apache-dolphinscheduler-2.0.0-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/2.0.0/apache-dolphinscheduler-2.0.0-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/2.0.0/apache-dolphinscheduler-2.0.0-src.tar.gz.sha512)|\n| | | Binary Distribution| [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/2.0.0/apache-dolphinscheduler-2.0.0-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/2.0.0/apache-dolphinscheduler-2.0.0-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/2.0.0/apache-dolphinscheduler-2.0.0-bin.tar.gz.sha512)|\n-| Oct. 22th, 2021 | 1.3.9 | Source code| [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/1.3.9/apache-dolphinscheduler-1.3.9-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/1.3.9/apache-dolphinscheduler-1.3.9-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/1.3.9/apache-dolphinscheduler-1.3.9-src.tar.gz.sha512)|\n+| Oct. 22nd, 2021 | 1.3.9 | Source code| [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/1.3.9/apache-dolphinscheduler-1.3.9-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/1.3.9/apache-dolphinscheduler-1.3.9-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/1.3.9/apache-dolphinscheduler-1.3.9-src.tar.gz.sha512)|\n| | | Binary Distribution| [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/1.3.9/apache-dolphinscheduler-1.3.9-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/1.3.9/apache-dolphinscheduler-1.3.9-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/1.3.9/apache-dolphinscheduler-1.3.9-bin.tar.gz.sha512)|\n| Sep. 7th, 2021 | 1.3.8 | Source code| [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/1.3.8/apache-dolphinscheduler-1.3.8-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/1.3.8/apache-dolphinscheduler-1.3.8-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/1.3.8/apache-dolphinscheduler-1.3.8-src.tar.gz.sha512)|\n| | | Binary Distribution| [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/1.3.8/apache-dolphinscheduler-1.3.8-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/1.3.8/apache-dolphinscheduler-1.3.8-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/1.3.8/apache-dolphinscheduler-1.3.8-bin.tar.gz.sha512)|\n" }, { "change_type": "MODIFY", "old_path": "scripts/conf.sh", "new_path": "scripts/conf.sh", "diff": "@@ -51,6 +51,7 @@ DEV_RELEASE_DOCS_VERSIONS=(\n# example: \"key:val\"\n\"3.0.0:3.0.0-release\"\n\"3.0.1:3.0.1-release\"\n+ \"3.0.2:3.0.2-release\"\n\"3.1.0:3.1.0-release\"\n\"3.1.1:3.1.1-release\"\n)\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
Update docs for 3.0.2 release (#842)
36,284
28.11.2022 10:41:37
-28,800
1ffb88fa93c1d4a22edbe9dd919efabe5bca710b
[ci] Add timeout threshold to schedule dead link check
[ { "change_type": "MODIFY", "old_path": ".github/workflows/dead-link-checker.yaml", "new_path": ".github/workflows/dead-link-checker.yaml", "diff": "@@ -31,11 +31,12 @@ concurrency:\njobs:\nCheckDeadLinks:\nruns-on: ubuntu-latest\n- timeout-minutes: 30\n+ # Will check all history docs when event is schedule, will cost many times in this case, so we need more time\n+ timeout-minutes: 120\nsteps:\n- uses: actions/checkout@v2\n- name: Prepare Related Resource\n- if: github.event_name == 'push' && github.ref == 'refs/heads/master' || github.event_name == 'schedule'\n+ if: github.event_name == 'schedule'\nrun: ./scripts/prepare_docs.sh\n- run: sudo npm install -g markdown-link-check@3.10.0\n# We need to delete directory swap before markdown checker\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[ci] Add timeout threshold to schedule dead link check (#844)
36,284
08.12.2022 16:58:02
-28,800
450ed73020fe8e316de07fe935ee73d8aa3177ab
[feat] new release version 303
[ { "change_type": "MODIFY", "old_path": "download/en-us/download.md", "new_path": "download/en-us/download.md", "diff": "@@ -7,6 +7,8 @@ Use the links below to download the Apache DolphinScheduler from one of our mirr\n## DolphinScheduler\n| Date | Version| | Downloads |\n|:---:|:--:|:--:|:--:|\n+| Dec. 8th, 2022 | 3.0.3 | Total Source Code | [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.3/apache-dolphinscheduler-3.0.3-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.3/apache-dolphinscheduler-3.0.3-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.3/apache-dolphinscheduler-3.0.3-src.tar.gz.sha512) |\n+| | | Total Binary Distribution | [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.3/apache-dolphinscheduler-3.0.3-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.3/apache-dolphinscheduler-3.0.3-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.3/apache-dolphinscheduler-3.0.3-bin.tar.gz.sha512) |\n| Nov. 21st, 2022 | 3.0.2 | Total Source Code | [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.2/apache-dolphinscheduler-3.0.2-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.2/apache-dolphinscheduler-3.0.2-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.2/apache-dolphinscheduler-3.0.2-src.tar.gz.sha512) |\n| | | Total Binary Distribution | [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.2/apache-dolphinscheduler-3.0.2-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.2/apache-dolphinscheduler-3.0.2-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.2/apache-dolphinscheduler-3.0.2-bin.tar.gz.sha512) |\n| Nov. 11st, 2022 | 3.1.1 | Total Source Code | [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.1.1/apache-dolphinscheduler-3.1.1-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.1.1/apache-dolphinscheduler-3.1.1-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.1.1/apache-dolphinscheduler-3.1.1-src.tar.gz.sha512) |\n" }, { "change_type": "MODIFY", "old_path": "scripts/conf.sh", "new_path": "scripts/conf.sh", "diff": "@@ -52,6 +52,7 @@ DEV_RELEASE_DOCS_VERSIONS=(\n\"3.0.0:3.0.0-release\"\n\"3.0.1:3.0.1-release\"\n\"3.0.2:3.0.2-release\"\n+ \"3.0.3:3.0.3-release\"\n\"3.1.0:3.1.0-release\"\n\"3.1.1:3.1.1-release\"\n)\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[feat] new release version 303 (#846)
36,327
11.12.2022 14:28:10
-28,800
ec765dc6cc412490d75cecb270a4654336c2ae12
[feat] new release version 312
[ { "change_type": "MODIFY", "old_path": "blog/en-us/DolphinScheduler_Kubernetes_Technology_in_action.md", "new_path": "blog/en-us/DolphinScheduler_Kubernetes_Technology_in_action.md", "diff": "@@ -75,7 +75,7 @@ Official website document address\nhttps://dolphinscheduler.apache.org/en-us/docs/1.3.9/user_doc/kubernetes-deployment.html\nGitHub folder address\n-https://github.com/apache/dolphinscheduler/tree/1.3.9-release/docker/kubernetes/dolphinscheduler\n+https://github.com/apache/dolphinscheduler/tree/1.3.9/docker/kubernetes/dolphinscheduler\nModify the image in the value.yaml file for offline installation (air-gap install);\n@@ -107,7 +107,7 @@ tag: \"1.3.9\"\npullPolicy: \"Always\"\n```\n-Copy the entire directory of https://github.com/apache/dolphinscheduler/tree/1.3.9-release/docker/kubernetes/dolphinscheduler to a host that can execute the Helm command, and then execute\n+Copy the entire directory of https://github.com/apache/dolphinscheduler/tree/1.3.9/docker/kubernetes/dolphinscheduler to a host that can execute the Helm command, and then execute\n```\nkubectl create ns ds139\nhelm install dolphinscheduler . -n ds139 following the official website instruction to install offline.\n" }, { "change_type": "MODIFY", "old_path": "download/en-us/download.md", "new_path": "download/en-us/download.md", "diff": "Use the links below to download the Apache DolphinScheduler from one of our mirrors.\n-**Only source code releases are official Apache releases: Windows and Linux binary distributions are just for end user convenience.**\n+**Only source coqde releases are official Apache releases: Windows and Linux binary distributions are just for end user convenience.**\n## DolphinScheduler\n| Date | Version| | Downloads |\n|:---:|:--:|:--:|:--:|\n+| Dec. 11st, 2022 | 3.1.2 | Total Source Code | [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.1.2/apache-dolphinscheduler-3.1.2-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.1.2/apache-dolphinscheduler-3.1.2-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.1.2/apache-dolphinscheduler-3.1.2-src.tar.gz.sha512) |\n+| | | Total Binary Distribution | [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.1.2/apache-dolphinscheduler-3.1.2-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.1.2/apache-dolphinscheduler-3.1.2-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.1.2/apache-dolphinscheduler-3.1.2-bin.tar.gz.sha512) |\n| Dec. 8th, 2022 | 3.0.3 | Total Source Code | [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.3/apache-dolphinscheduler-3.0.3-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.3/apache-dolphinscheduler-3.0.3-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.3/apache-dolphinscheduler-3.0.3-src.tar.gz.sha512) |\n| | | Total Binary Distribution | [[bin]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.3/apache-dolphinscheduler-3.0.3-bin.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.3/apache-dolphinscheduler-3.0.3-bin.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.3/apache-dolphinscheduler-3.0.3-bin.tar.gz.sha512) |\n| Nov. 21st, 2022 | 3.0.2 | Total Source Code | [[src]](https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.2/apache-dolphinscheduler-3.0.2-src.tar.gz) [[asc]](https://downloads.apache.org/dolphinscheduler/3.0.2/apache-dolphinscheduler-3.0.2-src.tar.gz.asc) [[sha512]](https://downloads.apache.org/dolphinscheduler/3.0.2/apache-dolphinscheduler-3.0.2-src.tar.gz.sha512) |\n" }, { "change_type": "MODIFY", "old_path": "scripts/conf.sh", "new_path": "scripts/conf.sh", "diff": "@@ -55,4 +55,5 @@ DEV_RELEASE_DOCS_VERSIONS=(\n\"3.0.3:3.0.3-release\"\n\"3.1.0:3.1.0-release\"\n\"3.1.1:3.1.1-release\"\n+ \"3.1.2:3.1.2-release\"\n)\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[feat] new release version 312 (#848)
36,326
12.12.2022 18:09:51
-28,800
b1b8e477b4141ca311ffd5c531e64cd1e36ec752
[Fix] Add LICENSE and .asf.yaml(#851)
[ { "change_type": "MODIFY", "old_path": ".gitignore", "new_path": ".gitignore", "diff": "@@ -32,3 +32,5 @@ public/img\npublic/fetch\npublic/pages\npublic/user\n+public/.asf.yaml\n+public/LICENSE\n" }, { "change_type": "MODIFY", "old_path": "scripts/generate.js", "new_path": "scripts/generate.js", "diff": "@@ -15,6 +15,9 @@ const generate = () => {\ngenerateDocs();\ngenerateUser();\ngenerateFaq();\n+\n+ fs.copySync(`${BASE}/LICENSE`, `${BASE}/public/LICENSE`);\n+ fs.copySync(`${BASE}/.asf.yaml`, `${BASE}/public/.asf.yaml`);\n};\ngenerate();\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[Fix] Add LICENSE and .asf.yaml(#851)
36,326
13.12.2022 19:55:19
-28,800
647b7e9d9b502397e89e8dabd92bcef6d6104b32
[Improvement] Some improvements. added 404 page replaced banner images on the home page added not found component
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -14,7 +14,7 @@ node version is 10+, version lower than 10.x is not supported yet.\n2.1. Run `export PROTOCOL_MODE=ssh` tells Git clone resource via SSH protocol instead of HTTPS protocol\n2.2. Run `./scripts/prepare_docs.sh` prepare all related resources, for more information you could see [how prepare script work](HOW_PREPARE_WOKR.md)\n3. Run `yarn generate` in the root directory to format and perpare the data.\n-4. Run `yarn start` in the root directory to start a local server, you will see the website in 'http://localhost:8080'.\n+4. Run `yarn dev` in the root directory to start a local server, you will see the website in 'http://localhost:8080'.\n```\nNote: if you clone the code in Windows, not Mac or Linux. Please read the details below.\n" }, { "change_type": "ADD", "old_path": null, "new_path": "public/404.html", "diff": "+<!DOCTYPE html>\n+<html lang=\"en\">\n+ <head>\n+ <meta charset=\"utf-8\" />\n+ <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n+ <meta name=\"theme-color\" content=\"#000000\" />\n+ <meta\n+ name=\"description\"\n+ content=\"Apache DolphinScheduler is a distributed and easy-to-extend visual workflow scheduler system, dedicated to solving the complex task dependencies in data processing, making the scheduling system out of the box for data processing.\"\n+ />\n+ <!--\n+ manifest.json provides metadata used when your web app is installed on a\n+ user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/\n+ -->\n+ <!--\n+ Notice the use of %PUBLIC_URL% in the tags above.\n+ It will be replaced with the URL of the `public` folder during the build.\n+ Only files inside the `public` folder can be referenced from the HTML.\n+\n+ Unlike \"/favicon.ico\" or \"favicon.ico\", \"%PUBLIC_URL%/favicon.ico\" will\n+ work correctly both with client-side routing and a non-root public URL.\n+ Learn how to configure a non-root public URL by running `npm run build`.\n+ -->\n+ <title>Apache DolphinScheduler</title>\n+ </head>\n+ <body>\n+ <script>\n+ window.location.href = \"/\";\n+ </script>\n+ <!--\n+ This HTML file is a template.\n+ If you open it directly in the browser, you will see an empty page.\n+\n+ You can add webfonts, meta tags, or analytics to this file.\n+ The build step will place the bundled scripts into the <body> tag.\n+\n+ To begin the development, run `npm start` or `yarn start`.\n+ To create a production bundle, use `npm run build` or `yarn build`.\n+ -->\n+ </body>\n+</html>\n" }, { "change_type": "DELETE", "old_path": "public/favicon.ico", "new_path": "public/favicon.ico", "diff": "Binary files a/public/favicon.ico and /dev/null differ\n" }, { "change_type": "MODIFY", "old_path": "public/images/home/home-1-1.png", "new_path": "public/images/home/home-1-1.png", "diff": "Binary files a/public/images/home/home-1-1.png and b/public/images/home/home-1-1.png differ\n" }, { "change_type": "MODIFY", "old_path": "public/images/home/home-1-2.png", "new_path": "public/images/home/home-1-2.png", "diff": "Binary files a/public/images/home/home-1-2.png and b/public/images/home/home-1-2.png differ\n" }, { "change_type": "MODIFY", "old_path": "public/images/home/home-1-3.png", "new_path": "public/images/home/home-1-3.png", "diff": "Binary files a/public/images/home/home-1-3.png and b/public/images/home/home-1-3.png differ\n" }, { "change_type": "MODIFY", "old_path": "public/images/home/home-1-4.png", "new_path": "public/images/home/home-1-4.png", "diff": "Binary files a/public/images/home/home-1-4.png and b/public/images/home/home-1-4.png differ\n" }, { "change_type": "MODIFY", "old_path": "public/images/home/home-3-3.png", "new_path": "public/images/home/home-3-3.png", "diff": "Binary files a/public/images/home/home-3-3.png and b/public/images/home/home-3-3.png differ\n" }, { "change_type": "MODIFY", "old_path": "src/App.jsx", "new_path": "src/App.jsx", "diff": "@@ -15,7 +15,7 @@ import Download, { Deployment, Version } from \"./views/Download\";\nimport Blog, { BlogDetail } from \"./views/Blog\";\nimport Event, { EventDetail } from \"./views/Event\";\nimport Support from \"./views/Support\";\n-import NotFound from \"./views/404\";\n+import NotFound from \"./views/NotFound\";\nimport getLocales from \"./api/getLocales\";\nimport getVersions from \"./api/getVersions\";\n" }, { "change_type": "MODIFY", "old_path": "src/components/NavBar/useMenu.jsx", "new_path": "src/components/NavBar/useMenu.jsx", "diff": "@@ -49,7 +49,7 @@ export const useMenu = (t) => {\nchildren: [\n{\nlabel: (\n- <a href=\"https://www.apache.org/\" target=\"_blank\">\n+ <a href=\"https://www.apache.org/\" target=\"_blank\" rel=\"noreferrer\">\nFoundation\n</a>\n),\n@@ -57,7 +57,11 @@ export const useMenu = (t) => {\n},\n{\nlabel: (\n- <a href=\"https://www.apache.org/licenses/\" target=\"_blank\">\n+ <a\n+ href=\"https://www.apache.org/licenses/\"\n+ target=\"_blank\"\n+ rel=\"noreferrer\"\n+ >\nLicense\n</a>\n),\n" }, { "change_type": "DELETE", "old_path": "src/views/404.jsx", "new_path": null, "diff": "-const NotFound = () => {\n- return <div>404</div>;\n-};\n-\n-export default NotFound;\n" }, { "change_type": "ADD", "old_path": null, "new_path": "src/views/NotFound.jsx", "diff": "+import { Result, Button } from \"antd\";\n+import { useParams, useNavigate } from \"react-router-dom\";\n+\n+const NotFound = () => {\n+ const params = useParams();\n+ const navigate = useNavigate();\n+ return (\n+ <Result\n+ status=\"404\"\n+ title=\"404\"\n+ subTitle=\"Sorry, the page you visited does not exist.\"\n+ extra={\n+ <Button\n+ type=\"primary\"\n+ onClick={() => {\n+ navigate(`/${params.locale || \"en-us\"}`);\n+ }}\n+ shape=\"round\"\n+ >\n+ Back Home\n+ </Button>\n+ }\n+ />\n+ );\n+};\n+\n+export default NotFound;\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[Improvement] Some improvements. (#855) - added 404 page - replaced banner images on the home page - added not found component
36,326
13.12.2022 20:18:14
-28,800
1d1738d00881288fa8f424e454b53adc1e86fe91
[Feature] Added `.htaccess`
[ { "change_type": "ADD", "old_path": null, "new_path": "public/.htaccess", "diff": "+ErrorDocument 404 /\n" }, { "change_type": "DELETE", "old_path": "public/404.html", "new_path": null, "diff": "-<!DOCTYPE html>\n-<html lang=\"en\">\n- <head>\n- <meta charset=\"utf-8\" />\n- <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n- <meta name=\"theme-color\" content=\"#000000\" />\n- <meta\n- name=\"description\"\n- content=\"Apache DolphinScheduler is a distributed and easy-to-extend visual workflow scheduler system, dedicated to solving the complex task dependencies in data processing, making the scheduling system out of the box for data processing.\"\n- />\n- <!--\n- manifest.json provides metadata used when your web app is installed on a\n- user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/\n- -->\n- <!--\n- Notice the use of %PUBLIC_URL% in the tags above.\n- It will be replaced with the URL of the `public` folder during the build.\n- Only files inside the `public` folder can be referenced from the HTML.\n-\n- Unlike \"/favicon.ico\" or \"favicon.ico\", \"%PUBLIC_URL%/favicon.ico\" will\n- work correctly both with client-side routing and a non-root public URL.\n- Learn how to configure a non-root public URL by running `npm run build`.\n- -->\n- <title>Apache DolphinScheduler</title>\n- </head>\n- <body>\n- <script>\n- window.location.href = \"/\";\n- </script>\n- <!--\n- This HTML file is a template.\n- If you open it directly in the browser, you will see an empty page.\n-\n- You can add webfonts, meta tags, or analytics to this file.\n- The build step will place the bundled scripts into the <body> tag.\n-\n- To begin the development, run `npm start` or `yarn start`.\n- To create a production bundle, use `npm run build` or `yarn build`.\n- -->\n- </body>\n-</html>\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[Feature] Added `.htaccess` (#856)
36,326
13.12.2022 20:35:29
-28,800
3e7c0e83fa69a5518c1c3d3b40170a17fc13262e
[Feature] Added 404 page.
[ { "change_type": "MODIFY", "old_path": "public/.htaccess", "new_path": "public/.htaccess", "diff": "-ErrorDocument 404 /\n+ErrorDocument 404 /404.html\n" }, { "change_type": "ADD", "old_path": null, "new_path": "public/404.html", "diff": "+<!DOCTYPE html>\n+<html lang=\"en\">\n+ <head>\n+ <meta charset=\"utf-8\" />\n+ <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n+ <meta name=\"theme-color\" content=\"#000000\" />\n+ <meta\n+ name=\"description\"\n+ content=\"Apache DolphinScheduler is a distributed and easy-to-extend visual workflow scheduler system, dedicated to solving the complex task dependencies in data processing, making the scheduling system out of the box for data processing.\"\n+ />\n+ <!--\n+ manifest.json provides metadata used when your web app is installed on a\n+ user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/\n+ -->\n+ <!--\n+ Notice the use of %PUBLIC_URL% in the tags above.\n+ It will be replaced with the URL of the `public` folder during the build.\n+ Only files inside the `public` folder can be referenced from the HTML.\n+\n+ Unlike \"/favicon.ico\" or \"favicon.ico\", \"%PUBLIC_URL%/favicon.ico\" will\n+ work correctly both with client-side routing and a non-root public URL.\n+ Learn how to configure a non-root public URL by running `npm run build`.\n+ -->\n+ <title>Apache DolphinScheduler</title>\n+ </head>\n+ <body>\n+ <script>\n+ window.location.href = \"/\";\n+ </script>\n+ <!--\n+ This HTML file is a template.\n+ If you open it directly in the browser, you will see an empty page.\n+\n+ You can add webfonts, meta tags, or analytics to this file.\n+ The build step will place the bundled scripts into the <body> tag.\n+\n+ To begin the development, run `npm start` or `yarn start`.\n+ To create a production bundle, use `npm run build` or `yarn build`.\n+ -->\n+ </body>\n+</html>\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[Feature] Added 404 page. (#857)
36,326
15.12.2022 10:33:23
-28,800
ad7490895fbb1b067bbe5bc155de2b9352f5c5ef
[Fix] Fix links and connent UI.
[ { "change_type": "MODIFY", "old_path": "scripts/generate_docs.js", "new_path": "scripts/generate_docs.js", "diff": "@@ -120,7 +120,7 @@ const getMenu = (list, data, version, lang, isDeployment, location) => {\n\".md\"\n)}`;\n- const mdInfo = parseMd(mdPath);\n+ const mdInfo = parseMd(mdPath, lang, version);\nconst onlyText = mdInfo[\"__html\"].replace(/<.*?>/g, \"\");\nconst structure = [];\n@@ -224,7 +224,7 @@ const wirteVersion = () => {\n};\nconst wirteSearchDocData = () => {\n- [\"en-us\", \"zh-cn\"].forEach((lang) => {\n+ [(\"en-us\", \"zh-cn\")].forEach((lang) => {\nconst targetSearchPath = `${BASE}/public/data/doc/${lang}.json`;\nfs.ensureFileSync(targetSearchPath);\nfs.writeFileSync(\n" }, { "change_type": "MODIFY", "old_path": "scripts/parse_md.js", "new_path": "scripts/parse_md.js", "diff": "@@ -4,6 +4,7 @@ const path = require(\"path\");\nconst fs = require(\"fs-extra\");\nconst MarkdownIt = require(\"markdown-it\");\nconst hljs = require(\"highlight.js\");\n+const replaceDeadLinks = require(\"./replace_links.js\");\nconst MD = new MarkdownIt({\nhtml: true,\n@@ -39,7 +40,7 @@ function splitMetaAndContent(str) {\nreturn result;\n}\n-const parseMd = (filePath) => {\n+const parseMd = (filePath, lang, version) => {\nconst result = {\nmeta: {},\n__html: \"\",\n@@ -64,7 +65,12 @@ const parseMd = (filePath) => {\nresult.meta[key] = value;\n});\n- result.__html = MD.render(splitContent.content);\n+\n+ let content = splitContent.content;\n+ if (lang && version) {\n+ content = replaceDeadLinks(content, lang, version);\n+ }\n+ result.__html = MD.render(content);\n} catch (err) {}\nreturn result;\n" }, { "change_type": "ADD", "old_path": null, "new_path": "scripts/replace_links.js", "diff": "+const replaceDeadLinks = (content, lang, version) => {\n+ return content\n+ .replaceAll(\n+ `https://dolphinscheduler.apache.org/${lang}/download/download.html`,\n+ `/#/${lang}/download`\n+ )\n+ .replaceAll(\n+ `pseudo-cluster.md`,\n+ `/#/${lang}/docs/${version}/guide/installation/pseudo-cluster`\n+ )\n+ .replaceAll(\n+ `standalone.md`,\n+ `/#/${lang}/docs/${version}/guide/installation/standalone`\n+ )\n+ .replaceAll(\n+ `kubernetes.md`,\n+ `/#/${lang}/docs/${version}/guide/installation/kubernetes`\n+ )\n+ .replaceAll(\n+ `cluster.md`,\n+ `/#/${lang}/docs/${version}/guide/installation/cluster`\n+ )\n+ .replaceAll(\n+ `../howto/datasource-setting.md`,\n+ `https://github.com/apache/dolphinscheduler/blob/${version}-release/docs/docs/${\n+ lang === \"en-us\" ? \"en\" : \"zh\"\n+ }/guide/howto/datasource-setting.md`\n+ )\n+ .replaceAll(\n+ `general-setting.md`,\n+ `https://github.com/apache/dolphinscheduler/blob/${version}-release/docs/docs/${\n+ lang === \"en-us\" ? \"en\" : \"zh\"\n+ }/guide/howto/general-setting.md`\n+ )\n+ .replaceAll(\n+ `../en/guide/alert/email.md`,\n+ `/#/en-us/docs/${version}/guide/alert/email`\n+ )\n+ .replaceAll(\n+ `../guide/homepage.md`,\n+ `/#/${lang}/docs/${version}/guide/homepage`\n+ )\n+ .replaceAll(\n+ `./development-environment-setup.md`,\n+ `https://github.com/apache/dolphinscheduler/blob/${version}-release/docs/docs/${\n+ lang === \"en-us\" ? \"en\" : \"zh\"\n+ }/contribute/development-environment-setup.md`\n+ )\n+ .replaceAll(\n+ `./frontend-development.md`,\n+ `https://github.com/apache/dolphinscheduler/blob/${version}-release/docs/docs/${\n+ lang === \"en-us\" ? \"en\" : \"zh\"\n+ }/contribute/frontend-development.md`\n+ )\n+ .replaceAll(\n+ `../guide/homepage.md`,\n+ `/#/${lang}/docs/${version}/guide/homepage`\n+ )\n+ .replaceAll(`./security.md`, `/#/${lang}/docs/${version}/guide/security`)\n+ .replaceAll(\n+ `../start/quick-start.md`,\n+ `/#/${lang}/docs/${version}/guide/start/quick-start`\n+ )\n+ .replaceAll(\n+ `priority.md`,\n+ `/#/${lang}/docs/${version}/guide/parameter/priority`\n+ )\n+ .replaceAll(\n+ `global.md`,\n+ `/#/${lang}/docs/${version}/guide/parameter/global`\n+ )\n+ .replaceAll(`local.md`, `/#/${lang}/docs/${version}/guide/parameter/local`)\n+ .replaceAll(\n+ `../task/shell.md`,\n+ `/#/${lang}/docs/${version}/guide/task/shell`\n+ )\n+ .replaceAll(`../task/sql.md`, `/#/${lang}/docs/${version}/guide/task/sql`)\n+ .replaceAll(\n+ `../task/stored-procedure.md`,\n+ `/#/${lang}/docs/${version}/guide/task/stored-procedure`\n+ )\n+ .replaceAll(\n+ `../task/python.md`,\n+ `/#/${lang}/docs/${version}/guide/task/python`\n+ )\n+ .replaceAll(\n+ `../resource/configuration.md`,\n+ `/#/${lang}/docs/${version}/guide/resource/configuration`\n+ )\n+ .replaceAll(`../open-api.md`, `/#/${lang}/docs/${version}/guide/open-api`)\n+ .replaceAll(\n+ `context.md`,\n+ `/#/${lang}/docs/${version}/guide/parameter/context`\n+ )\n+ .replaceAll(\n+ `workflow-definition.md`,\n+ `/#/${lang}/docs/${version}/guide/project/workflow-definition`\n+ )\n+ .replaceAll(\n+ `../parameter/global.md`,\n+ `/#/${lang}/docs/${version}/guide/parameter/global`\n+ )\n+ .replaceAll(\n+ `./task-instance.md`,\n+ `/#/${lang}/docs/${version}/guide/project/task-instance`\n+ )\n+ .replaceAll(\n+ `../installation/standalone.md`,\n+ `/#/${lang}/docs/${version}/guide/installation/standalone`\n+ )\n+ .replaceAll(\n+ `../../architecture/configuration.md`,\n+ `/#/${lang}/docs/${version}/architecture/configuration`\n+ )\n+ .replaceAll(`appendix.md`, `/#/${lang}/docs/${version}/guide/task/appendix`)\n+ .replaceAll(`switch.md`, `/#/${lang}/docs/${version}/guide/task/switch`)\n+ .replaceAll(`shell.md`, `/#/${lang}/docs/${version}/guide/task/shell`)\n+ .replaceAll(`./python.md`, `/#/${lang}/docs/${version}/guide/task/python`)\n+ .replaceAll(`../security.md`, `/#/${lang}/docs/${version}/guide/security`)\n+ .replaceAll(\n+ `../resource/file-manage.md`,\n+ `/#/${lang}/docs/${version}/guide/resource/file-manage`\n+ )\n+ .replaceAll(\n+ `./hive-cli.md`,\n+ `/#/${lang}/docs/${version}/guide/task/hive-cli`\n+ )\n+ .replaceAll(\n+ `./incompatible.md`,\n+ `/#/${lang}/docs/${version}/guide/upgrade/incompatible`\n+ )\n+ .replaceAll(\n+ `../installation/cluster.md`,\n+ `/#/${lang}/docs/${version}/guide/installation/cluster`\n+ )\n+ .replaceAll(\n+ `../installation/pseudo-cluster.md`,\n+ `/#/${lang}/docs/${version}/guide/installation/pseudo-cluster`\n+ )\n+ .replaceAll(\n+ `../zh/guide/alert/email.md`,\n+ `/#/zh-cn/docs/${version}/guide/alert/email`\n+ )\n+ .replaceAll(\n+ `installation/cluster.md`,\n+ `/#/${lang}/docs/${version}/guide/installation/cluster`\n+ )\n+ .replaceAll(\n+ `howto/datasource-setting.md`,\n+ `https://github.com/apache/dolphinscheduler/blob/${version}-release/docs/docs/${\n+ lang === \"en-us\" ? \"en\" : \"zh\"\n+ }/guide/howto/datasource-setting.md`\n+ )\n+ .replaceAll(\n+ `start/quick-start.md`,\n+ `/#/${lang}/docs/${version}/guide/start/quick-start`\n+ )\n+ .replaceAll(\n+ `datasource-setting.md`,\n+ `https://github.com/apache/dolphinscheduler/blob/${version}-release/docs/docs/${\n+ lang === \"en-us\" ? \"en\" : \"zh\"\n+ }/guide/howto/datasource-setting.md`\n+ );\n+};\n+\n+module.exports = replaceDeadLinks;\n" }, { "change_type": "MODIFY", "old_path": "src/components/Connect/index.scss", "new_path": "src/components/Connect/index.scss", "diff": ".connect {\n- height: 420px;\n+ height: 380px;\nbackground-color: #0097e0;\ntext-align: center;\nwidth: 100%;\n+ display: flex;\n+ flex-direction: column;\n+ align-items: center;\n+ justify-content: center;\n&-title {\nfont-weight: 700;\ncolor: #ffffff;\n- font-size: 60px;\n- padding: 40px;\n+ font-size: 50px;\n+ line-height: 50px;\n+ padding: 0px 40px 40px;\n@media screen and (max-width: 640px) {\nfont-size: 7vw;\n&-desc {\ncolor: #ffffff;\nfont-size: 18px;\n- line-height: 48px;\n+ line-height: 18px;\n+ padding-top: 20px;\n@media screen and (max-width: 640px) {\nfont-size: 14px;\nfont-weight: 700;\ncolor: #0097e0;\nfont-size: 18px;\n- margin-top: 80px;\n+ margin-top: 60px;\nvertical-align: middle;\n@media screen and (max-width: 640px) {\n" }, { "change_type": "MODIFY", "old_path": "src/views/Documentation/detail.scss", "new_path": "src/views/Documentation/detail.scss", "diff": "border: 1px solid gray;\n}\n}\n+ code {\n+ white-space: break-spaces;\n+ }\n}\n&-title {\nfont-weight: 700;\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[Fix] Fix links and connent UI. (#858)
36,326
16.12.2022 11:25:35
-28,800
e4b9715a67d104b11f0857555ffeca391df0e55e
[Improve] Added redirects on the 404 page.
[ { "change_type": "MODIFY", "old_path": "public/404.html", "new_path": "public/404.html", "diff": "</head>\n<body>\n<script>\n- window.location.href = \"/\";\n+ (() => {\n+ const href = window.location.href;\n+ const lang = href.includes(\"zh-cn\") ? \"zh-cn\" : \"en-us\";\n+ if (href.includes(\"download.html\")) {\n+ window.location.replace(`/#/${lang}/download`);\n+ return;\n+ }\n+ if (href.includes(\"blog\")) {\n+ const matchedName = /blog\\/(.*?).html/.exec(href);\n+ window.location.replace(\n+ `/#/${lang}/blog${matchedName ? \"/\" + matchedName[1] : \"\"}`\n+ );\n+ return;\n+ }\n+ if (href.includes(\"docs\")) {\n+ const url = href\n+ .replace(/.html/, \"\")\n+ .replace(/\\/user_doc/, \"\")\n+ .replace(lang, `#/${lang}`);\n+ window.location.replace(url);\n+ return;\n+ }\n+ if (href.includes(\"community.html\")) {\n+ window.location.replace(`/#/${lang}/community`);\n+ return;\n+ }\n+ if (href.includes(\"user/index.html\")) {\n+ window.location.replace(`/#/${lang}/use_case`);\n+ return;\n+ }\n+ window.location.replace(`/#/${lang}`);\n+ })();\n</script>\n<!--\nThis HTML file is a template.\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[Improve] Added redirects on the 404 page. (#861)
36,284
19.12.2022 15:28:59
-28,800
65c3a509d3b988b71ba6faa21ecd50cc54c18baa
feat: python docs rsync all files in expect .doctrees
[ { "change_type": "MODIFY", "old_path": ".github/workflows/website.yml", "new_path": ".github/workflows/website.yml", "diff": "@@ -38,10 +38,11 @@ jobs:\npython-version: 3.7\n- name: Build Python Multiple Version Document\nworking-directory: ${{ env.PYDS_HOME }}\n+ # rsync all files in directory docs/build/html/versions expect .doctrees have sensitive data, so we need to delete it\nrun: |\npython -m pip install --upgrade ${{ env.DEPENDENCES }}\npython -m tox -vv -e doc-build-multi\n- cp -r docs/build/html/versions ${GITHUB_WORKSPACE}/build/python\n+ rsync -av --progress --exclude .doctrees docs/build/html/versions ${GITHUB_WORKSPACE}/build/python\n- name: Deploy\nuses: peaceiris/actions-gh-pages@v3\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
feat: python docs rsync all files in expect .doctrees (#863)
36,284
19.12.2022 15:53:47
-28,800
7603d9e11909f01fbbc9c9119cd9d112689bbc0c
fix: python docs level error
[ { "change_type": "MODIFY", "old_path": ".github/workflows/website.yml", "new_path": ".github/workflows/website.yml", "diff": "@@ -42,7 +42,7 @@ jobs:\nrun: |\npython -m pip install --upgrade ${{ env.DEPENDENCES }}\npython -m tox -vv -e doc-build-multi\n- rsync -av --progress --exclude .doctrees docs/build/html/versions ${GITHUB_WORKSPACE}/build/python\n+ rsync -av --progress --exclude .doctrees docs/build/html/versions/* ${GITHUB_WORKSPACE}/build/python\n- name: Deploy\nuses: peaceiris/actions-gh-pages@v3\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
fix: python docs level error (#864)
36,284
21.12.2022 10:43:23
-28,800
4ffeacc0f8a624ed5950928a45559d83eeb0d57c
fix: download link error
[ { "change_type": "MODIFY", "old_path": "src/views/Download/Version.jsx", "new_path": "src/views/Download/Version.jsx", "diff": "@@ -140,7 +140,7 @@ export const Version = () => {\n{t(\"download\")}\n</div>\n<Button type=\"link\" href={detail.bin.src}>\n- {detail.bin.bin?.split(\"/\").at(-1)}\n+ {detail.bin.src?.split(\"/\").at(-1)}\n</Button>\n</div>\n<div className=\"download-version-item\">\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
fix: download link error (#866)
36,326
26.12.2022 10:12:33
-28,800
f8484d7ddca0e1a82d96a77aacb6d8195c2d5943
[Feature] Changed hash router to history router.
[ { "change_type": "MODIFY", "old_path": "public/.htaccess", "new_path": "public/.htaccess", "diff": "-ErrorDocument 404 /404.html\n+ErrorDocument 404 /index.html\n" }, { "change_type": "MODIFY", "old_path": "src/App.jsx", "new_path": "src/App.jsx", "diff": "import {\n- createHashRouter,\n+ createBrowserRouter,\ncreateRoutesFromElements,\njson,\nRoute,\n@@ -19,7 +19,7 @@ import NotFound from \"./views/NotFound\";\nimport getLocales from \"./api/getLocales\";\nimport getVersions from \"./api/getVersions\";\n-const router = createHashRouter(\n+const router = createBrowserRouter(\ncreateRoutesFromElements(\n<Route>\n<Route path=\"/\" element={<Layout />} />\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[Feature] Changed hash router to history router. (#867)
36,326
26.12.2022 10:33:44
-28,800
53bd10cd313c8f6a9e546d9ce38954b706b0c965
[Feature] Changed the homepage.
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"name\": \"ds-home\",\n\"version\": \"0.1.0\",\n\"private\": true,\n- \"homepage\": \".\",\n+ \"homepage\": \"/\",\n\"scripts\": {\n\"dev\": \"react-scripts start\",\n\"build\": \"node ./scripts/generate && react-scripts build\",\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[Feature] Changed the homepage. (#868)
36,326
26.12.2022 17:50:49
-28,800
169638743f92e95b410308e833b714e51115a10f
[Fix] Removed hash.
[ { "change_type": "MODIFY", "old_path": "public/404.html", "new_path": "public/404.html", "diff": "const url = href\n.replace(/.html/, \"\")\n.replace(/\\/user_doc/, \"\")\n- .replace(lang, `#/${lang}`);\n+ .replace(lang, `/${lang}`);\nwindow.location.replace(url);\nreturn;\n}\n" }, { "change_type": "MODIFY", "old_path": "src/views/Blog/Detail.jsx", "new_path": "src/views/Blog/Detail.jsx", "diff": "@@ -17,7 +17,7 @@ export const BlogDetail = () => {\n<>\n<Breadcrumb>\n<Breadcrumb.Item>\n- <a href={`#/${locale}/blog`}>Blog</a>\n+ <a href={`/${locale}/blog`}>Blog</a>\n</Breadcrumb.Item>\n<Breadcrumb.Item>{detail.title}</Breadcrumb.Item>\n</Breadcrumb>\n" }, { "change_type": "MODIFY", "old_path": "src/views/Documentation/Detail.jsx", "new_path": "src/views/Documentation/Detail.jsx", "diff": "-import { Breadcrumb, Spin, Empty, Space, Button } from 'antd';\n-import { LinkOutlined } from '@ant-design/icons';\n-import { useParams, useNavigate } from 'react-router-dom';\n-import { useDocumentationDetail } from './useDocumentationDetail';\n-import { useTranslation } from '../../hooks';\n-import { formatDate } from '../../utils/formatDate';\n-import { getLinkFromLocation } from './helpers';\n-import './detail.scss';\n+import { Breadcrumb, Spin, Empty, Space, Button } from \"antd\";\n+import { LinkOutlined } from \"@ant-design/icons\";\n+import { useParams, useNavigate } from \"react-router-dom\";\n+import { useDocumentationDetail } from \"./useDocumentationDetail\";\n+import { useTranslation } from \"../../hooks\";\n+import { formatDate } from \"../../utils/formatDate\";\n+import { getLinkFromLocation } from \"./helpers\";\n+import \"./detail.scss\";\nexport const DocumentationDetail = () => {\nconst params = useParams();\n@@ -18,7 +18,7 @@ export const DocumentationDetail = () => {\n<>\n<Breadcrumb>\n<Breadcrumb.Item>\n- <a href={`#/${params.locale}/docs/${params.version}`}>\n+ <a href={`/${params.locale}/docs/${params.version}`}>\nVersion {params.version}\n</a>\n</Breadcrumb.Item>\n@@ -27,7 +27,7 @@ export const DocumentationDetail = () => {\n<Breadcrumb.Item key={i}>\n{i < detail.location.length - 1 ? (\n<a\n- href={`#/${params.locale}/docs/${\n+ href={`/${params.locale}/docs/${\nparams.version\n}${getLinkFromLocation(detail.location, i)}`}\n>\n@@ -42,18 +42,18 @@ export const DocumentationDetail = () => {\n<div className=\"documentation-detail-title\">{detail.title}</div>\n<div className=\"documentation-detail-desc\">\n<Space className=\"documentation-detail-time\">\n- <span>{t('last_updated')}</span>\n+ <span>{t(\"last_updated\")}</span>\n<span>{formatDate(detail.time, locale)}</span>\n</Space>\n<Space className=\"documentation-detail-support\">\n- <span>{t('not_helpful')}</span>\n+ <span>{t(\"not_helpful\")}</span>\n<Button\ntype=\"link\"\nonClick={() => {\nnavigate(`/${params.locale}/support`);\n}}\n>\n- {t('get_support')} <LinkOutlined />\n+ {t(\"get_support\")} <LinkOutlined />\n</Button>\n</Space>\n</div>\n" }, { "change_type": "MODIFY", "old_path": "src/views/Documentation/SearchModal.jsx", "new_path": "src/views/Documentation/SearchModal.jsx", "diff": "@@ -52,7 +52,7 @@ const SearchModal = ({ open, list, value, onClose, loading, handleSearch }) => {\n>\n<Breadcrumb>\n<Breadcrumb.Item>\n- <a href={`#/${params.locale}/docs/${params.version}`}>\n+ <a href={`/${params.locale}/docs/${params.version}`}>\nVersion {params.version}\n</a>\n</Breadcrumb.Item>\n@@ -60,7 +60,7 @@ const SearchModal = ({ open, list, value, onClose, loading, handleSearch }) => {\nitem.location.map((slip, i) => (\n<Breadcrumb.Item key={i}>\n<a\n- href={`#/${params.locale}/docs/${\n+ href={`/${params.locale}/docs/${\nparams.version\n}${getLinkFromLocation(item.location, i)}`}\n>\n" }, { "change_type": "MODIFY", "old_path": "src/views/Documentation/index.jsx", "new_path": "src/views/Documentation/index.jsx", "diff": "@@ -145,7 +145,7 @@ const Documentation = () => {\n<>\n<Breadcrumb>\n<Breadcrumb.Item>\n- <a href={`#/${params.locale}/docs/${params.version}`}>\n+ <a href={`/${params.locale}/docs/${params.version}`}>\nVersion {params.version}\n</a>\n</Breadcrumb.Item>\n@@ -153,7 +153,7 @@ const Documentation = () => {\nchild.location.map((item, i) => (\n<Breadcrumb.Item key={i}>\n<a\n- href={`#/${params.locale}/docs/${\n+ href={`/${params.locale}/docs/${\nparams.version\n}${getLinkFromLocation(child.location, i)}`}\n>\n" }, { "change_type": "MODIFY", "old_path": "src/views/Download/Deployment.jsx", "new_path": "src/views/Download/Deployment.jsx", "diff": "@@ -28,7 +28,7 @@ export const Deployment = () => {\n<div className=\"deployment-box\">\n<Breadcrumb>\n<Breadcrumb.Item>\n- <a href={`#/${locale}/download`}>{t(\"download\")}</a>\n+ <a href={`/${locale}/download`}>{t(\"download\")}</a>\n</Breadcrumb.Item>\n<Breadcrumb.Item>{deployments[current].type}</Breadcrumb.Item>\n</Breadcrumb>\n" }, { "change_type": "MODIFY", "old_path": "src/views/Download/Version.jsx", "new_path": "src/views/Download/Version.jsx", "diff": "@@ -26,7 +26,7 @@ export const Version = () => {\n<section className=\"download-version\">\n<Breadcrumb>\n<Breadcrumb.Item>\n- <a href={`#/${params.locale}/download`}>{t(\"download\")}</a>\n+ <a href={`/${params.locale}/download`}>{t(\"download\")}</a>\n</Breadcrumb.Item>\n<Breadcrumb.Item>{params.version}</Breadcrumb.Item>\n</Breadcrumb>\n" }, { "change_type": "MODIFY", "old_path": "src/views/Event/Detail.jsx", "new_path": "src/views/Event/Detail.jsx", "diff": "@@ -19,7 +19,7 @@ export const EventDetail = () => {\n<>\n<Breadcrumb>\n<Breadcrumb.Item>\n- <a href={`#/${locale}/events`}>Event</a>\n+ <a href={`/${locale}/events`}>Event</a>\n</Breadcrumb.Item>\n<Breadcrumb.Item>{detail.title}</Breadcrumb.Item>\n</Breadcrumb>\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[Fix] Removed hash. (#872)
36,284
03.01.2023 15:17:35
-28,800
2dbc91f8c5b568b52f09b3dfea0818fe7632a60e
feat: Release version 3.0.4
[ { "change_type": "MODIFY", "old_path": "config/download.json", "new_path": "config/download.json", "diff": "\"sha512\": \"https://downloads.apache.org/dolphinscheduler/3.1.2/apache-dolphinscheduler-3.1.2-bin.tar.gz.sha512\"\n}\n},\n+ \"3.0.4\": {\n+ \"time\": \"2023-1-3\",\n+ \"src\": {\n+ \"src\": \"https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.4/apache-dolphinscheduler-3.0.4-src.tar.gz\",\n+ \"asc\": \"https://downloads.apache.org/dolphinscheduler/3.0.4/apache-dolphinscheduler-3.0.4-src.tar.gz.asc\",\n+ \"sha512\": \"https://downloads.apache.org/dolphinscheduler/3.0.4/apache-dolphinscheduler-3.0.4-src.tar.gz.sha512\"\n+ },\n+ \"bin\": {\n+ \"src\": \"https://www.apache.org/dyn/closer.lua/dolphinscheduler/3.0.4/apache-dolphinscheduler-3.0.4-bin.tar.gz\",\n+ \"asc\": \"https://downloads.apache.org/dolphinscheduler/3.0.4/apache-dolphinscheduler-3.0.4-bin.tar.gz.asc\",\n+ \"sha512\": \"https://downloads.apache.org/dolphinscheduler/3.0.4/apache-dolphinscheduler-3.0.4-bin.tar.gz.sha512\"\n+ }\n+ },\n\"3.0.3\": {\n\"time\": \"2022-12-08\",\n\"src\": {\n" }, { "change_type": "MODIFY", "old_path": "scripts/conf.sh", "new_path": "scripts/conf.sh", "diff": "@@ -53,6 +53,7 @@ DEV_RELEASE_DOCS_VERSIONS=(\n\"3.0.1:3.0.1-release\"\n\"3.0.2:3.0.2-release\"\n\"3.0.3:3.0.3-release\"\n+ \"3.0.4:3.0.4-release\"\n\"3.1.0:3.1.0-release\"\n\"3.1.1:3.1.1-release\"\n\"3.1.2:3.1.2-release\"\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
feat: Release version 3.0.4 (#874)
36,284
11.01.2023 16:55:29
-28,800
47107ccdccf2606c64016f16d01313ec72adfa2e
fix: Regexp replace all datasource-setting hyper link
[ { "change_type": "MODIFY", "old_path": "scripts/replace_links.js", "new_path": "scripts/replace_links.js", "diff": "@@ -20,12 +20,6 @@ const replaceDeadLinks = (content, lang, version) => {\n`cluster.md`,\n`/${lang}/docs/${version}/guide/installation/cluster`\n)\n- .replaceAll(\n- `../howto/datasource-setting.md`,\n- `https://github.com/apache/dolphinscheduler/blob/${version}-release/docs/docs/${\n- lang === \"en-us\" ? \"en\" : \"zh\"\n- }/guide/howto/datasource-setting.md`\n- )\n.replaceAll(\n`general-setting.md`,\n`https://github.com/apache/dolphinscheduler/blob/${version}-release/docs/docs/${\n@@ -137,7 +131,7 @@ const replaceDeadLinks = (content, lang, version) => {\n`/${lang}/docs/${version}/guide/installation/cluster`\n)\n.replaceAll(\n- `howto/datasource-setting.md`,\n+ /((\\.\\.\\/)*(howto\\/)?)datasource-setting.md/g,\n`https://github.com/apache/dolphinscheduler/blob/${version}-release/docs/docs/${\nlang === \"en-us\" ? \"en\" : \"zh\"\n}/guide/howto/datasource-setting.md`\n@@ -145,12 +139,6 @@ const replaceDeadLinks = (content, lang, version) => {\n.replaceAll(\n`start/quick-start.md`,\n`/${lang}/docs/${version}/guide/start/quick-start`\n- )\n- .replaceAll(\n- `datasource-setting.md`,\n- `https://github.com/apache/dolphinscheduler/blob/${version}-release/docs/docs/${\n- lang === \"en-us\" ? \"en\" : \"zh\"\n- }/guide/howto/datasource-setting.md`\n);\n};\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
fix: Regexp replace all datasource-setting hyper link (#877)
36,326
12.01.2023 14:34:18
-28,800
1a243a26a87fc472508f6b2775396269e1b2f582
[Fix] Fix anchor jumping in documents.
[ { "change_type": "RENAME", "old_path": "public/images/tasks/data_quality.png", "new_path": "public/images/tasks/data-quality.png", "diff": "" }, { "change_type": "RENAME", "old_path": "public/images/tasks/flink_stream.png", "new_path": "public/images/tasks/flink-stream.png", "diff": "" }, { "change_type": "RENAME", "old_path": "public/images/tasks/sub_process.png", "new_path": "public/images/tasks/sub-process.png", "diff": "" }, { "change_type": "MODIFY", "old_path": "scripts/generate_docs.js", "new_path": "scripts/generate_docs.js", "diff": "@@ -61,7 +61,7 @@ const parseStructure = (html, index, parent) => {\n}\n};\n-const getAnchor = (name) => name.toLowerCase().replace(/\\s/g, \"_\");\n+const getAnchor = (name) => name.toLowerCase().replace(/\\s/g, \"-\");\nconst addAnchors = (html) => {\nlet index = 1;\n" }, { "change_type": "MODIFY", "old_path": "src/utils/formatName.js", "new_path": "src/utils/formatName.js", "diff": "export const formatName = (name) => {\nif (!name || typeof name !== \"string\") return \"\";\n- return name.toLowerCase().replace(/\\s/g, \"_\");\n+ return name.toLowerCase().replace(/\\s/g, \"-\");\n};\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[Fix] Fix anchor jumping in documents. (#878)
36,326
06.02.2023 10:55:20
-28,800
0873db03ea7c62194d4790b459d0d40153903f2b
[Feature] Add titles.
[ { "change_type": "MODIFY", "old_path": "public/locales/en-us.json", "new_path": "public/locales/en-us.json", "diff": "\"source_code_download\": \"Source code download\",\n\"binary_download\": \"Binary download\",\n\"join_our_slack\": \"Join our Slack\",\n- \"contact_emails\": \" Contact Emails\"\n+ \"contact_emails\": \" Contact Emails\",\n+ \"documentation_title\": \"DophinScheduler | DolphinsScheduler Documentation\",\n+ \"community_title\": \"DophinScheduler | DolphinScheduler Community\",\n+ \"event_title\": \"DophinScheduler | DolphinScheduler Event\",\n+ \"blog_title\": \"DophinScheduler | DolphinScheduler Blog\",\n+ \"cases_title\": \"DophinScheduler | DolphinScheduler Use Cases\",\n+ \"support_title\": \"DophinScheduler | DolphinScheduler Support\",\n+ \"download_title\": \"DophinScheduler | DolphinScheduler Download\"\n}\n" }, { "change_type": "MODIFY", "old_path": "src/views/Layout/index.jsx", "new_path": "src/views/Layout/index.jsx", "diff": "@@ -3,8 +3,19 @@ import { useParams, Navigate, Outlet } from \"react-router-dom\";\nimport { NavBar, Footer } from \"../../components\";\nimport { getLanguageCodeFromLS } from \"../../utils/getLanguageCodeFromLS\";\nimport { LocaleContext } from \"../../LocaleContext\";\n+import { useTitle } from \"./useTitle\";\nimport \"./index.scss\";\n+const Content = () => {\n+ useTitle();\n+\n+ return (\n+ <section className=\"ds-content\">\n+ <Outlet />\n+ </section>\n+ );\n+};\n+\nconst Layout = () => {\nconst params = useParams();\nif (params.locale && [\"en-us\", \"zh-cn\"].includes(params.locale)) {\n@@ -30,9 +41,7 @@ const Layout = () => {\n>\n<NavBar />\n<article className=\"ds-main\" id=\"ds-scroll-content\">\n- <section className=\"ds-content\">\n- <Outlet />\n- </section>\n+ <Content />\n<FloatButton.BackTop\ntarget={() => document.getElementById(\"ds-scroll-content\")}\n/>\n" }, { "change_type": "ADD", "old_path": null, "new_path": "src/views/Layout/useTitle.js", "diff": "+import { useEffect } from \"react\";\n+import { useLocation } from \"react-router-dom\";\n+import { useTranslation } from \"../../hooks\";\n+\n+export function useTitle() {\n+ const location = useLocation();\n+ const { t } = useTranslation();\n+\n+ useEffect(() => {\n+ if (location.pathname.includes(\"docs\")) {\n+ document.title = t(\"documentation_title\");\n+ return;\n+ }\n+ if (location.pathname.includes(\"community\")) {\n+ document.title = t(\"community_title\");\n+ return;\n+ }\n+ if (location.pathname.includes(\"events\")) {\n+ document.title = t(\"event_title\");\n+ return;\n+ }\n+ if (location.pathname.includes(\"blog\")) {\n+ document.title = t(\"blog_title\");\n+ return;\n+ }\n+ if (location.pathname.includes(\"use_case\")) {\n+ document.title = t(\"cases_title\");\n+ return;\n+ }\n+ if (location.pathname.includes(\"support\")) {\n+ document.title = t(\"support_title\");\n+ return;\n+ }\n+ if (location.pathname.includes(\"download\")) {\n+ document.title = t(\"download_title\");\n+ return;\n+ }\n+ }, [location, t]);\n+}\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
[Feature] Add titles. (#879)
36,284
09.02.2023 09:59:20
-28,800
4db9581bdc3cf42b87e327b4f5cd185e9ac1e4e4
feat: Add 208 doc configuration
[ { "change_type": "MODIFY", "old_path": "config/download.json", "new_path": "config/download.json", "diff": "\"sha512\": \"https://downloads.apache.org/dolphinscheduler/3.1.1/apache-dolphinscheduler-3.1.1-bin.tar.gz.sha512\"\n}\n},\n+ \"2.0.8\": {\n+ \"time\": \"2023-02-08\",\n+ \"src\": {\n+ \"src\": \"https://www.apache.org/dyn/closer.lua/dolphinscheduler/2.0.8/apache-dolphinscheduler-2.0.8-src.tar.gz\",\n+ \"asc\": \"https://downloads.apache.org/dolphinscheduler/2.0.8/apache-dolphinscheduler-2.0.8-src.tar.gz.asc\",\n+ \"sha512\": \"https://downloads.apache.org/dolphinscheduler/2.0.8/apache-dolphinscheduler-2.0.8-src.tar.gz.sha512\"\n+ },\n+ \"bin\": {\n+ \"src\": \"https://www.apache.org/dyn/closer.lua/dolphinscheduler/2.0.8/apache-dolphinscheduler-2.0.8-bin.tar.gz\",\n+ \"asc\": \"https://downloads.apache.org/dolphinscheduler/2.0.8/apache-dolphinscheduler-2.0.8-bin.tar.gz.asc\",\n+ \"sha512\": \"https://downloads.apache.org/dolphinscheduler/2.0.8/apache-dolphinscheduler-2.0.8-bin.tar.gz.sha512\"\n+ }\n+ },\n\"2.0.7\": {\n\"time\": \"2022-10-24\",\n\"src\": {\n" }, { "change_type": "MODIFY", "old_path": "scripts/conf.sh", "new_path": "scripts/conf.sh", "diff": "@@ -40,7 +40,7 @@ PROJECT_WEBSITE_DIR=${PROJECT_WEBSITE_DIR:-${SWAP_DIR}/${PROJECT_WEBSITE_NAME}}\n# docs in apache/dolphinscheduler-webstie branch `history-docs`\ndeclare -a HISTORY_DOCS_VERSIONS=(\n\"1.2.0\" \"1.2.1\" \"1.3.1\" \"1.3.2\" \"1.3.3\" \"1.3.4\" \"1.3.5\" \"1.3.6\" \"1.3.8\" \"1.3.9\"\n-\"2.0.0\" \"2.0.1\" \"2.0.2\" \"2.0.3\" \"2.0.5\" \"2.0.6\" \"2.0.7\"\n+\"2.0.0\" \"2.0.1\" \"2.0.2\" \"2.0.3\" \"2.0.5\" \"2.0.6\" \"2.0.7\" \"2.0.8\"\n)\n# NOTE: We should avoid use syntax `declare -A DEV_RELEASE_DOCS_VERSIONS=([\"3.0.0\"]=\"3.0.0-alpha-release\")` because\n" } ]
JavaScript
Apache License 2.0
apache/dolphinscheduler-website
feat: Add 208 doc configuration (#883)
305,164
23.01.2019 13:52:25
28,800
0e521a2ef154739e1f85f527f41c464610a790b9
Add tasks wrapper
[ { "change_type": "ADD", "old_path": null, "new_path": "src/index.ts", "diff": "+import Tasks from \"./wrappers/tasks\"\n+import Auth from \"./wrappers/auth\"\n+import Links from \"./wrappers/links\"\n+\n+export default class Client {\n+ public links: Links\n+ public tasks: Tasks\n+ public auth: Auth\n+\n+ constructor(basePath: string) {\n+ this.tasks = new Tasks(basePath)\n+ this.auth = new Auth(basePath)\n+ this.links = new Links(basePath)\n+ }\n+}\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "src/wrappers/auth.ts", "diff": "+import { DefaultApi } from \"../api\";\n+\n+export default class {\n+ private service: DefaultApi\n+\n+ constructor(basePath: string) {\n+ this.service = new DefaultApi({ basePath })\n+ }\n+\n+ public async signout(): Promise<Response> {\n+ const {data} = await this.service.signoutPost()\n+\n+ return data\n+ }\n+\n+ public async signin(username: string, password: string): Promise<Response> {\n+ const {data} = await this.service.signinPost({ auth: { username, password }})\n+\n+ return data\n+ }\n+}\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "src/wrappers/links.ts", "diff": "+import { DefaultApi, Routes } from \"../api\";\n+\n+export default class {\n+ private service: DefaultApi\n+\n+ constructor(basePath: string) {\n+ this.service = new DefaultApi({ basePath })\n+ }\n+\n+ public async getAll(): Promise<Routes> {\n+ const {data} = await this.service.rootGet()\n+\n+ return data\n+ }\n+}\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "src/wrappers/tasks.ts", "diff": "+import { TasksApi, Task, LabelResponse, User, Label } from \"../api\";\n+\n+export default class {\n+ private service: TasksApi\n+\n+ constructor(basePath: string) {\n+ this.service = new TasksApi({ basePath })\n+ }\n+\n+ public async create(org: string, script: string): Promise<Task> {\n+ const {data} = await this.service.tasksPost({orgID: org, flux: script})\n+\n+ return data\n+ }\n+\n+ public async getByID(id: string): Promise<Task> {\n+ const {data} = await this.service.tasksTaskIDGet(id)\n+\n+ return data\n+ }\n+\n+ public async getAllByUser(user: User): Promise<Task[]> {\n+ const after = ''\n+ const { data } = await this.service.tasksGet(after, user.id)\n+\n+ return data.tasks || []\n+ }\n+\n+ public async update(id: string, updates: Partial<Task>) {\n+ const original = await this.getByID(id)\n+ const {data: updated} = await this.service.tasksTaskIDPatch(id, {...original, ...updates})\n+\n+ return updated\n+ }\n+\n+ public updateStatus(id: string, status: Task.StatusEnum): Promise<Task> {\n+ return this.update(id, {status})\n+ }\n+\n+ public updateScript(id: string, script: string): Promise<Task> {\n+ return this.update(id, {flux: script})\n+ }\n+\n+ public async addLabel(taskID: string, label: Label): Promise<LabelResponse> {\n+ if (!label.id) {\n+ throw new Error(\"label must have id\")\n+ }\n+\n+ const {data} = await this.service.tasksTaskIDLabelsPost(taskID, {labelID: label.id})\n+\n+ return data\n+ }\n+\n+ public async removeLabel(taskID: string, label: Label): Promise<Response> {\n+ if (!label.id) {\n+ throw new Error(\"label must have id\")\n+ }\n+\n+ const {data} = await this.service.tasksTaskIDLabelsLabelIDDelete(taskID, label.id)\n+\n+ return data\n+ }\n+\n+ public addLabels(taskID: string, labels: Label[]): Promise<LabelResponse[]> {\n+ const promises = labels.map(l => this.addLabel(taskID, l))\n+\n+ return Promise.all(promises)\n+ }\n+\n+ public removeLabels(taskID: string, labels: Label[]): Promise<Response[]> {\n+ const promises = labels.map(l => this.removeLabel(taskID, l))\n+\n+ return Promise.all(promises)\n+ }\n+}\n\\ No newline at end of file\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add tasks wrapper
305,164
23.01.2019 15:42:52
28,800
10fd0aa7383e15ddbd2d2dbcdcbe898efc8b61c5
Find Tasks by organization
[ { "change_type": "MODIFY", "old_path": "src/wrappers/tasks.ts", "new_path": "src/wrappers/tasks.ts", "diff": "-import { TasksApi, Task, LabelResponse, User, Label } from \"../api\";\n+import { TasksApi, Task, LabelResponse, User, Label, Organization } from \"../api\";\nexport default class {\nprivate service: TasksApi\n@@ -19,9 +19,14 @@ export default class {\nreturn data\n}\n+ public async getAllByOrg({name}: Organization): Promise<Task[]> {\n+ const {data: {tasks}} = await this.service.tasksGet(undefined, undefined, name)\n+\n+ return tasks || []\n+ }\n+\npublic async getAllByUser(user: User): Promise<Task[]> {\n- const after = ''\n- const { data } = await this.service.tasksGet(after, user.id)\n+ const { data } = await this.service.tasksGet(undefined, user.id)\nreturn data.tasks || []\n}\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Find Tasks by organization
305,164
23.01.2019 16:30:28
28,800
975be4c7424a8de43fc9d8d6aa776f2d2f92d04b
Add scrapers
[ { "change_type": "MODIFY", "old_path": "src/index.ts", "new_path": "src/index.ts", "diff": "@@ -4,6 +4,7 @@ import Links from \"./wrappers/links\"\nimport Labels from \"./wrappers/labels\"\nimport Buckets from \"./wrappers/buckets\"\nimport Organizations from \"./wrappers/organizations\"\n+import Scrapers from \"./wrappers/scrapers\"\nexport default class Client {\npublic links: Links\n@@ -12,6 +13,7 @@ export default class Client {\npublic labels: Labels\npublic buckets: Buckets\npublic organizations: Organizations\n+ public scrapers: Scrapers\nconstructor(basePath: string) {\nthis.tasks = new Tasks(basePath)\n@@ -20,5 +22,6 @@ export default class Client {\nthis.labels = new Labels(basePath)\nthis.buckets = new Buckets(basePath)\nthis.organizations = new Organizations(basePath)\n+ this.scrapers = new Scrapers(basePath)\n}\n}\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "src/wrappers/scrapers.ts", "diff": "+import { ScraperTargetsApi, ScraperTargetResponse } from \"../api\";\n+\n+export default class {\n+ private service: ScraperTargetsApi\n+\n+ constructor(basePath: string) {\n+ this.service = new ScraperTargetsApi({basePath})\n+ }\n+\n+ public async getAll(): Promise<ScraperTargetResponse[]> {\n+ const {data: {configurations}} = await this.service.scrapersGet()\n+\n+ return configurations || []\n+ }\n+\n+ public async deleteScraper(id: string): Promise<Response> {\n+ const {data} = await this.service.scrapersScraperTargetIDDelete(id)\n+\n+ return data\n+ }\n+}\n\\ No newline at end of file\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add scrapers
305,164
23.01.2019 16:39:55
28,800
04857c8893345d75630f78fda1f1c65653b05257
Add telegraf configs
[ { "change_type": "MODIFY", "old_path": "src/index.ts", "new_path": "src/index.ts", "diff": "@@ -5,6 +5,7 @@ import Labels from \"./wrappers/labels\"\nimport Buckets from \"./wrappers/buckets\"\nimport Organizations from \"./wrappers/organizations\"\nimport Scrapers from \"./wrappers/scrapers\"\n+import TelegrafConfigs from \"./wrappers/telegrafConfigs\"\nexport default class Client {\npublic links: Links\n@@ -14,6 +15,7 @@ export default class Client {\npublic buckets: Buckets\npublic organizations: Organizations\npublic scrapers: Scrapers\n+ public telegrafConfigs: TelegrafConfigs\nconstructor(basePath: string) {\nthis.tasks = new Tasks(basePath)\n@@ -23,5 +25,6 @@ export default class Client {\nthis.buckets = new Buckets(basePath)\nthis.organizations = new Organizations(basePath)\nthis.scrapers = new Scrapers(basePath)\n+ this.telegrafConfigs = new TelegrafConfigs(basePath)\n}\n}\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": "src/wrappers/telegrafConfigs.ts", "diff": "+import { TelegrafsApi, Organization, TelegrafPluginConfig } from \"../api\";\n+\n+export default class {\n+ private service: TelegrafsApi\n+\n+ constructor(basePath: string) {\n+ this.service = new TelegrafsApi({basePath})\n+ }\n+\n+ public async getAllByOrg(org: Organization): Promise<TelegrafPluginConfig[]> {\n+ if (!org.id) {\n+ throw new Error('organization must have an id')\n+ }\n+\n+ const {data: {configurations}} = await this.service.telegrafsGet(org.id)\n+\n+ return configurations || []\n+ }\n+\n+ public async getTOML(id: string): Promise<string> {\n+ const options = {\n+ headers: {\n+ Accept: 'application/toml'\n+ }\n+ }\n+\n+ const {data} = await this.service.telegrafsTelegrafIDGet(id, options)\n+\n+ return data as string\n+ }\n+\n+ public async delete(id: string): Promise<Response> {\n+ const {data} = await this.service.telegrafsTelegrafIDDelete(id)\n+\n+ return data as Response\n+ }\n+}\n\\ No newline at end of file\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add telegraf configs
305,164
24.01.2019 09:36:48
28,800
8c3ace102f41de007cf19f620c68bd061bc8a6a9
Update README and initial version
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "# Influxdb version 2.0 javascript client\n+## Disclaimer\n+\n+This library is a work in progress and should not be considered production ready pre v1.0\n+\n## Development requirements\n- OpenJDK 8 or higher\n```\nnpm i\n```\n+\n+## Generating base from swagger\n+\n+```\n+npm run generate\n+```\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "{\n\"name\": \"influxdb2-js\",\n- \"version\": \"0.0.1\",\n+ \"version\": \"0.1.0\",\n\"description\": \"Influxdb v2 client\",\n\"main\": \"dist/index.js\",\n\"scripts\": {\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Update README and initial version
305,164
24.01.2019 09:52:31
28,800
ba10f37ef40746e8244864a83f5153732aaa09e4
Add authorizations
[ { "change_type": "MODIFY", "old_path": "src/index.ts", "new_path": "src/index.ts", "diff": "import Auth from \"./wrappers/auth\";\n+import Authorizations from \"./wrappers/authorizations\";\nimport Buckets from \"./wrappers/buckets\";\nimport Labels from \"./wrappers/labels\";\nimport Links from \"./wrappers/links\";\n@@ -6,21 +7,23 @@ import Organizations from \"./wrappers/organizations\";\nimport Scrapers from \"./wrappers/scrapers\";\nimport Tasks from \"./wrappers/tasks\";\nimport TelegrafConfigs from \"./wrappers/telegrafConfigs\";\n-import Users from \"./wrappers/users\"\n+import Users from \"./wrappers/users\";\nexport default class Client {\n- public links: Links;\n- public tasks: Tasks;\npublic auth: Auth;\n- public labels: Labels;\n+ public authoriziations: Authorizations;\npublic buckets: Buckets;\n+ public labels: Labels;\n+ public links: Links;\npublic organizations: Organizations;\npublic scrapers: Scrapers;\n+ public tasks: Tasks;\npublic telegrafConfigs: TelegrafConfigs;\npublic users: Users;\nconstructor(basePath: string) {\nthis.auth = new Auth(basePath);\n+ this.authoriziations = new Authorizations(basePath);\nthis.buckets = new Buckets(basePath);\nthis.labels = new Labels(basePath);\nthis.links = new Links(basePath);\n@@ -28,6 +31,6 @@ export default class Client {\nthis.scrapers = new Scrapers(basePath);\nthis.tasks = new Tasks(basePath);\nthis.telegrafConfigs = new TelegrafConfigs(basePath);\n- this.users = new Users(basePath)\n+ this.users = new Users(basePath);\n}\n}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "src/wrappers/authorizations.ts", "diff": "+import { Authorization, AuthorizationsApi } from \"../api\";\n+\n+export default class {\n+ private service: AuthorizationsApi;\n+\n+ constructor(basePath: string) {\n+ this.service = new AuthorizationsApi({basePath});\n+ }\n+\n+ public async get(id: string): Promise<Authorization> {\n+ const {data} = await this.service.authorizationsAuthIDGet(id);\n+\n+ return data;\n+ }\n+\n+ public async getAll(): Promise<Authorization[]> {\n+ const {data: {authorizations}} = await this.service.authorizationsGet();\n+\n+ return authorizations || [];\n+ }\n+\n+ public async update(id: string, update: Partial<Authorization>): Promise<Authorization> {\n+ const original = await this.get(id);\n+ const {data} = await this.service.authorizationsAuthIDPatch(id, {...original, ...update});\n+\n+ return data;\n+ }\n+\n+ public async delete(id: string): Promise<Response> {\n+ const {data} = await this.service.authorizationsAuthIDDelete(id);\n+\n+ return data;\n+ }\n+}\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add authorizations
305,164
24.01.2019 10:59:34
28,800
b20305ff9224398de1f2746c77feb61c7f431794
Add pre publish task
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"description\": \"Influxdb v2 client\",\n\"main\": \"dist/index.js\",\n\"scripts\": {\n- \"prepublishOnly\": \"echo \\\"PRE\\\" && exit 0\",\n+ \"prepublishOnly\": \"npm run build\",\n\"test\": \"echo \\\"Error: no test specified\\\" && exit 1\",\n\"generate\": \"openapi-generator generate -g typescript-axios -o src/api -i https://raw.githubusercontent.com/influxdata/influxdb/master/http/cur_swagger.yml\",\n\"build\": \"tsc\",\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add pre publish task
305,164
24.01.2019 11:36:49
28,800
4fee1737ff6b67d16aeef7fffcfe079d8b5b0081
Remove dist directory before build
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"prepublishOnly\": \"npm run build\",\n\"test\": \"echo \\\"Error: no test specified\\\" && exit 1\",\n\"generate\": \"openapi-generator generate -g typescript-axios -o src/api -i https://raw.githubusercontent.com/influxdata/influxdb/master/http/cur_swagger.yml\",\n- \"build\": \"tsc\",\n+ \"build\": \"rm -rf dist && tsc\",\n\"lint\": \"tslint --project .\"\n},\n\"keywords\": [\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Remove dist directory before build
305,164
24.01.2019 13:21:21
28,800
f43759a15577305beed81fb1b473007f00a6983f
Add update and create to scrapers
[ { "change_type": "MODIFY", "old_path": "src/wrappers/scrapers.ts", "new_path": "src/wrappers/scrapers.ts", "diff": "-import { ScraperTargetResponse, ScraperTargetsApi } from \"../api\";\n+import { ScraperTargetRequest, ScraperTargetResponse, ScraperTargetsApi } from \"../api\";\nexport default class {\nprivate service: ScraperTargetsApi;\n@@ -13,6 +13,18 @@ export default class {\nreturn configurations || [];\n}\n+ public async create(request: ScraperTargetRequest): Promise<ScraperTargetResponse> {\n+ const {data} = await this.service.scrapersPost(request);\n+\n+ return data;\n+ }\n+\n+ public async update(id: string, changes: ScraperTargetRequest): Promise<ScraperTargetResponse> {\n+ const {data} = await this.service.scrapersScraperTargetIDPatch(id, changes);\n+\n+ return data;\n+ }\n+\npublic async deleteScraper(id: string): Promise<Response> {\nconst {data} = await this.service.scrapersScraperTargetIDDelete(id);\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add update and create to scrapers
305,164
24.01.2019 13:37:32
28,800
c16cd2ac984c2f67cbcf1186ce37248f66201bf1
Add write api
[ { "change_type": "MODIFY", "old_path": "src/index.ts", "new_path": "src/index.ts", "diff": "@@ -8,6 +8,7 @@ import Scrapers from \"./wrappers/scrapers\";\nimport Tasks from \"./wrappers/tasks\";\nimport TelegrafConfigs from \"./wrappers/telegrafConfigs\";\nimport Users from \"./wrappers/users\";\n+import Write from \"./wrappers/write\";\nexport default class Client {\npublic auth: Auth;\n@@ -20,6 +21,7 @@ export default class Client {\npublic tasks: Tasks;\npublic telegrafConfigs: TelegrafConfigs;\npublic users: Users;\n+ public write: Write;\nconstructor(basePath: string) {\nthis.auth = new Auth(basePath);\n@@ -32,5 +34,6 @@ export default class Client {\nthis.tasks = new Tasks(basePath);\nthis.telegrafConfigs = new TelegrafConfigs(basePath);\nthis.users = new Users(basePath);\n+ this.write = new Write(basePath);\n}\n}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "src/wrappers/write.ts", "diff": "+import { WriteApi, WritePrecision } from \"../api\";\n+\n+interface ICreateOptions {\n+ precision: WritePrecision;\n+}\n+\n+export default class {\n+ private service: WriteApi;\n+\n+ constructor(basePath: string) {\n+ this.service = new WriteApi({basePath});\n+ }\n+\n+ public get WritePrecision(): typeof WritePrecision {\n+ return WritePrecision;\n+ }\n+\n+ public async create(\n+ org: string,\n+ bucket: string,\n+ data: string,\n+ options: Partial<ICreateOptions> = {},\n+ ): Promise<Response> {\n+ const precision = options.precision || WritePrecision.Ns;\n+\n+ const {data: response} = await this.service.writePost(\n+ org,\n+ bucket,\n+ data,\n+ undefined,\n+ undefined,\n+ undefined,\n+ undefined,\n+ precision,\n+ );\n+\n+ return response;\n+ }\n+}\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add write api
305,164
24.01.2019 14:02:20
28,800
26e283ac0e351e884b19c1420d768222334feb38
Add delete to tasks
[ { "change_type": "MODIFY", "old_path": "src/wrappers/tasks.ts", "new_path": "src/wrappers/tasks.ts", "diff": "@@ -46,6 +46,12 @@ export default class {\nreturn this.update(id, {flux: script});\n}\n+ public async delete(id: string): Promise<Response> {\n+ const {data} = await this.service.tasksTaskIDDelete(id);\n+\n+ return data;\n+ }\n+\npublic async addLabel(taskID: string, label: Label): Promise<LabelResponse> {\nif (!label.id) {\nthrow new Error(\"label must have id\");\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add delete to tasks
305,164
24.01.2019 14:23:05
28,800
b39606e6e7077beca2963ba02d9b6f37823b7da7
Make task labels more consistent with other labels
[ { "change_type": "MODIFY", "old_path": "src/wrappers/labels.ts", "new_path": "src/wrappers/labels.ts", "diff": "@@ -7,7 +7,7 @@ interface ILabelProperties {\ndescription?: string;\n}\n-const addLabelDefaults = (l: APILabel): ILabel => ({\n+export const addLabelDefaults = (l: APILabel): Label => ({\n...l,\nproperties: {\n...l.properties,\n@@ -16,7 +16,7 @@ const addLabelDefaults = (l: APILabel): ILabel => ({\n},\n});\n-type ILabel = APILabel & {properties: ILabelProperties};\n+export type Label = APILabel & {properties: ILabelProperties};\nexport default class {\nprivate service: LabelsApi;\n@@ -25,7 +25,7 @@ export default class {\nthis.service = new LabelsApi({ basePath });\n}\n- public async get(id: string): Promise<ILabel> {\n+ public async get(id: string): Promise<Label> {\nconst {data: {label}} = await this.service.labelsLabelIDGet(id);\nif (!label) {\n@@ -35,13 +35,13 @@ export default class {\nreturn addLabelDefaults(label);\n}\n- public async getAll(): Promise<ILabel[]> {\n+ public async getAll(): Promise<Label[]> {\nconst {data: {labels}} = await this.service.labelsGet();\nreturn (labels || []).map(addLabelDefaults);\n}\n- public async create(name: string, properties: ILabelProperties): Promise<ILabel> {\n+ public async create(name: string, properties: ILabelProperties): Promise<Label> {\nconst {data: { label }} = await this.service.labelsPost({name, properties});\nif (!label) {\n" }, { "change_type": "MODIFY", "old_path": "src/wrappers/tasks.ts", "new_path": "src/wrappers/tasks.ts", "diff": "-import { Label, LabelResponse, Organization, Task, TasksApi, User } from \"../api\";\n+import { Organization, Task, TasksApi, User } from \"../api\";\n+import { addLabelDefaults, Label } from \"./labels\";\nexport default class {\nprivate service: TasksApi;\n@@ -13,7 +14,7 @@ export default class {\nreturn data;\n}\n- public async getByID(id: string): Promise<Task> {\n+ public async get(id: string): Promise<Task> {\nconst {data} = await this.service.tasksTaskIDGet(id);\nreturn data;\n@@ -32,7 +33,7 @@ export default class {\n}\npublic async update(id: string, updates: Partial<Task>) {\n- const original = await this.getByID(id);\n+ const original = await this.get(id);\nconst {data: updated} = await this.service.tasksTaskIDPatch(id, {...original, ...updates});\nreturn updated;\n@@ -52,14 +53,18 @@ export default class {\nreturn data;\n}\n- public async addLabel(taskID: string, label: Label): Promise<LabelResponse> {\n+ public async addLabel(taskID: string, label: Label): Promise<Label> {\nif (!label.id) {\nthrow new Error(\"label must have id\");\n}\nconst {data} = await this.service.tasksTaskIDLabelsPost(taskID, {labelID: label.id});\n- return data;\n+ if (!data.label) {\n+ throw new Error(\"API did not return a label\");\n+ }\n+\n+ return addLabelDefaults(data.label);\n}\npublic async removeLabel(taskID: string, label: Label): Promise<Response> {\n@@ -72,7 +77,7 @@ export default class {\nreturn data;\n}\n- public addLabels(taskID: string, labels: Label[]): Promise<LabelResponse[]> {\n+ public addLabels(taskID: string, labels: Label[]): Promise<Label[]> {\nconst promises = labels.map((l) => this.addLabel(taskID, l));\nreturn Promise.all(promises);\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Make task labels more consistent with other labels
305,164
25.01.2019 09:15:16
28,800
85766b444de683af8a50bcbdd53415f832ad79ab
Add getAuthorizationToken method
[ { "change_type": "MODIFY", "old_path": "src/wrappers/authorizations.ts", "new_path": "src/wrappers/authorizations.ts", "diff": "-import { Authorization, AuthorizationsApi } from \"../api\";\n+import { Authorization, AuthorizationsApi, User } from \"../api\";\nexport default class {\nprivate service: AuthorizationsApi;\n@@ -13,12 +13,28 @@ export default class {\nreturn data;\n}\n+ public async getAuthorizationToken(username: string): Promise<string | null> {\n+ const authorizations = await this.getAllByUsername(username);\n+\n+ if (authorizations[0]) {\n+ return authorizations[0].token || null;\n+ }\n+\n+ return null;\n+ }\n+\npublic async getAll(): Promise<Authorization[]> {\nconst {data: {authorizations}} = await this.service.authorizationsGet();\nreturn authorizations || [];\n}\n+ public async getAllByUsername(username: string): Promise<Authorization[]> {\n+ const {data: {authorizations}} = await this.service.authorizationsGet(undefined, username);\n+\n+ return authorizations || [];\n+ }\n+\npublic async update(id: string, update: Partial<Authorization>): Promise<Authorization> {\nconst original = await this.get(id);\nconst {data} = await this.service.authorizationsAuthIDPatch(id, {...original, ...update});\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add getAuthorizationToken method
305,164
25.01.2019 14:15:32
28,800
d610d1bb963d929228bdebe5b2b10ecdd509c998
Fix typo with authorizations spelling
[ { "change_type": "MODIFY", "old_path": "src/index.ts", "new_path": "src/index.ts", "diff": "@@ -12,7 +12,7 @@ import Write from \"./wrappers/write\";\nexport default class Client {\npublic auth: Auth;\n- public authoriziations: Authorizations;\n+ public authorizations: Authorizations;\npublic buckets: Buckets;\npublic labels: Labels;\npublic links: Links;\n@@ -25,7 +25,7 @@ export default class Client {\nconstructor(basePath: string) {\nthis.auth = new Auth(basePath);\n- this.authoriziations = new Authorizations(basePath);\n+ this.authorizations = new Authorizations(basePath);\nthis.buckets = new Buckets(basePath);\nthis.labels = new Labels(basePath);\nthis.links = new Links(basePath);\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Fix typo with authorizations spelling
305,164
31.01.2019 10:25:18
28,800
aea6d5544bacec5a42c432f3295748d27300ab09
Expand telegraf config api definitions
[ { "change_type": "MODIFY", "old_path": "src/wrappers/scrapers.ts", "new_path": "src/wrappers/scrapers.ts", "diff": "@@ -25,7 +25,7 @@ export default class {\nreturn data;\n}\n- public async deleteScraper(id: string): Promise<Response> {\n+ public async delete(id: string): Promise<Response> {\nconst {data} = await this.service.scrapersScraperTargetIDDelete(id);\nreturn data;\n" }, { "change_type": "MODIFY", "old_path": "src/wrappers/telegrafConfigs.ts", "new_path": "src/wrappers/telegrafConfigs.ts", "diff": "-import { Organization, TelegrafPluginConfig, TelegrafsApi } from \"../api\";\n+import { Organization, Telegraf, TelegrafPluginConfig, TelegrafsApi } from \"../api\";\nexport default class {\n+\nprivate service: TelegrafsApi;\nconstructor(basePath: string) {\nthis.service = new TelegrafsApi({basePath});\n}\n+ public async getAll(): Promise<TelegrafPluginConfig[]> {\n+ const {data: {configurations}} = await this.service.telegrafsGet(\"\");\n+ return configurations || [];\n+ }\n+\npublic async getAllByOrg(org: Organization): Promise<TelegrafPluginConfig[]> {\nif (!org.id) {\nthrow new Error(\"organization must have an id\");\n@@ -29,6 +35,25 @@ export default class {\nreturn data as string;\n}\n+ public async get(id: string): Promise<Telegraf> {\n+ const {data} = await this.service.telegrafsTelegrafIDGet(id);\n+\n+ return data;\n+ }\n+\n+ public async create(props: Telegraf): Promise<Telegraf> {\n+ const {data} = await this.service.telegrafsPost(props);\n+\n+ return data;\n+ }\n+\n+ public async update(id: string, props: Partial<Telegraf>): Promise<Telegraf> {\n+ const original = await this.get(id);\n+ const {data: updated} = await this.service.telegrafsTelegrafIDPut(id, {...original, ...props});\n+\n+ return updated;\n+ }\n+\npublic async delete(id: string): Promise <Response> {\nconst {data} = await this.service.telegrafsTelegrafIDDelete(id);\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Expand telegraf config api definitions
305,164
31.01.2019 11:49:21
28,800
f5a20b67e6cdbd4c1c169ec857b066e2984e02bb
Add setup wrapper
[ { "change_type": "MODIFY", "old_path": "src/index.ts", "new_path": "src/index.ts", "diff": "@@ -5,6 +5,7 @@ import Labels from \"./wrappers/labels\";\nimport Links from \"./wrappers/links\";\nimport Organizations from \"./wrappers/organizations\";\nimport Scrapers from \"./wrappers/scrapers\";\n+import Setup from \"./wrappers/setup\";\nimport Tasks from \"./wrappers/tasks\";\nimport TelegrafConfigs from \"./wrappers/telegrafConfigs\";\nimport Users from \"./wrappers/users\";\n@@ -22,6 +23,7 @@ export default class Client {\npublic telegrafConfigs: TelegrafConfigs;\npublic users: Users;\npublic write: Write;\n+ public setup: Setup;\nconstructor(basePath: string) {\nthis.auth = new Auth(basePath);\n@@ -35,5 +37,6 @@ export default class Client {\nthis.telegrafConfigs = new TelegrafConfigs(basePath);\nthis.users = new Users(basePath);\nthis.write = new Write(basePath);\n+ this.setup = new Setup(basePath);\n}\n}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "src/wrappers/setup.ts", "diff": "+import { OnboardingRequest, OnboardingResponse, SetupApi } from \"../api\";\n+\n+interface IStatus {\n+ allowed: boolean;\n+}\n+\n+export default class {\n+ private service: SetupApi;\n+\n+ constructor(basePath: string) {\n+ this.service = new SetupApi({ basePath });\n+ }\n+\n+ public async create(props: OnboardingRequest): Promise<OnboardingResponse> {\n+ const {data: response} = await this.service.setupPost(props);\n+\n+ return response;\n+ }\n+\n+ public async status(): Promise<IStatus> {\n+ const {data} = await this.service.setupGet();\n+\n+ return {allowed: !!data.allowed};\n+ }\n+}\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add setup wrapper
305,164
04.02.2019 09:42:21
28,800
ebc1c25d88e497fd0558b8c2946d0c0bcca146af
Add sources wrapper
[ { "change_type": "MODIFY", "old_path": "src/index.ts", "new_path": "src/index.ts", "diff": "@@ -6,6 +6,7 @@ import Links from \"./wrappers/links\";\nimport Organizations from \"./wrappers/organizations\";\nimport Scrapers from \"./wrappers/scrapers\";\nimport Setup from \"./wrappers/setup\";\n+import Sources from \"./wrappers/sources\";\nimport Tasks from \"./wrappers/tasks\";\nimport TelegrafConfigs from \"./wrappers/telegrafConfigs\";\nimport Users from \"./wrappers/users\";\n@@ -24,6 +25,7 @@ export default class Client {\npublic users: Users;\npublic write: Write;\npublic setup: Setup;\n+ public sources: Sources;\nconstructor(basePath: string) {\nthis.auth = new Auth(basePath);\n@@ -38,5 +40,6 @@ export default class Client {\nthis.users = new Users(basePath);\nthis.write = new Write(basePath);\nthis.setup = new Setup(basePath);\n+ this.sources = new Sources(basePath);\n}\n}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "src/wrappers/sources.ts", "diff": "+import { Source, SourcesApi } from \"../api\";\n+\n+export default class {\n+ private service: SourcesApi;\n+\n+ constructor(basePath: string) {\n+ this.service = new SourcesApi({basePath});\n+ }\n+\n+ public async get(id: string): Promise<Source> {\n+ const {data: source} = await this.service.sourcesSourceIDGet(id);\n+\n+ return source;\n+ }\n+\n+ public async getAll(): Promise<Source[]> {\n+ return this.getAllByOrg(\"\");\n+ }\n+\n+ public async getAllByOrg(org: string): Promise<Source[]> {\n+ const {data: {sources}} = await this.service.sourcesGet(\"\");\n+\n+ return sources || [];\n+ }\n+\n+ public async create(org: string, props: Source): Promise<Source> {\n+ const {data} = await this.service.sourcesPost(org, props);\n+\n+ return data;\n+ }\n+\n+ public async update(id: string, props: Partial<Source>): Promise<Source> {\n+ const original = this.get(id);\n+ const {data} = await this.service.sourcesSourceIDPatch(id, {...original, ...props});\n+\n+ return data;\n+ }\n+\n+ public async delete(id: string): Promise<Response> {\n+ const {data} = await this.service.sourcesSourceIDDelete(id);\n+\n+ return data;\n+ }\n+\n+ public async health(id: string): Promise<Source> {\n+ const {data} = await this.service.sourcesSourceIDHealthGet(id);\n+\n+ return data;\n+ }\n+}\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add sources wrapper
305,164
04.02.2019 10:02:06
28,800
94bf96c2c328d85ddaee8f06cbfd10f8c0abb679
Add skeleton types definitions
[ { "change_type": "MODIFY", "old_path": "src/index.ts", "new_path": "src/index.ts", "diff": "@@ -12,6 +12,8 @@ import TelegrafConfigs from \"./wrappers/telegrafConfigs\";\nimport Users from \"./wrappers/users\";\nimport Write from \"./wrappers/write\";\n+export * from \"./types\";\n+\nexport default class Client {\npublic auth: Auth;\npublic authorizations: Authorizations;\n" }, { "change_type": "ADD", "old_path": null, "new_path": "src/types/index.ts", "diff": "+export interface ISetupParams {\n+ username: string;\n+ password: string;\n+ org: string;\n+ bucket: string;\n+}\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add skeleton types definitions
305,164
05.02.2019 11:41:34
28,800
50f77edd26940bda5451a5eb124c16382dedbbc4
Add skeleton dashboards wrapper for cells
[ { "change_type": "MODIFY", "old_path": "src/index.ts", "new_path": "src/index.ts", "diff": "import Auth from \"./wrappers/auth\";\nimport Authorizations from \"./wrappers/authorizations\";\nimport Buckets from \"./wrappers/buckets\";\n+import Dashboards from \"./wrappers/dashboards\";\nimport Labels from \"./wrappers/labels\";\nimport Links from \"./wrappers/links\";\nimport Organizations from \"./wrappers/organizations\";\n@@ -18,30 +19,32 @@ export default class Client {\npublic auth: Auth;\npublic authorizations: Authorizations;\npublic buckets: Buckets;\n+ public dashboards: Dashboards;\npublic labels: Labels;\npublic links: Links;\npublic organizations: Organizations;\npublic scrapers: Scrapers;\n+ public setup: Setup;\n+ public sources: Sources;\npublic tasks: Tasks;\npublic telegrafConfigs: TelegrafConfigs;\npublic users: Users;\npublic write: Write;\n- public setup: Setup;\n- public sources: Sources;\nconstructor(basePath: string) {\nthis.auth = new Auth(basePath);\nthis.authorizations = new Authorizations(basePath);\nthis.buckets = new Buckets(basePath);\n+ this.dashboards = new Dashboards(basePath);\nthis.labels = new Labels(basePath);\nthis.links = new Links(basePath);\nthis.organizations = new Organizations(basePath);\nthis.scrapers = new Scrapers(basePath);\n+ this.setup = new Setup(basePath);\n+ this.sources = new Sources(basePath);\nthis.tasks = new Tasks(basePath);\nthis.telegrafConfigs = new TelegrafConfigs(basePath);\nthis.users = new Users(basePath);\nthis.write = new Write(basePath);\n- this.setup = new Setup(basePath);\n- this.sources = new Sources(basePath);\n}\n}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "src/wrappers/dashboards.ts", "diff": "+import { Cell, CellsApi } from \"../api\";\n+\n+export default class {\n+ private cellsService: CellsApi;\n+\n+ constructor(basePath: string) {\n+ this.cellsService = new CellsApi({basePath});\n+ }\n+\n+ public async deleteCell(dashboardID: string, cellID: string): Promise<Response> {\n+ const {data: response} = await this.cellsService.dashboardsDashboardIDCellsCellIDDelete(dashboardID, cellID);\n+\n+ return response;\n+ }\n+\n+ public async createCell(dashboardID: string, cell: Cell): Promise<Cell> {\n+ const {data} = await this.cellsService.dashboardsDashboardIDCellsPost(dashboardID, cell);\n+\n+ return data;\n+ }\n+\n+ public async updateAllCells(dashboardID: string, cells: Cell[]): Promise<Cell[]> {\n+ const {data} = await this.cellsService.dashboardsDashboardIDCellsPut(dashboardID, cells);\n+\n+ return data.cells || [];\n+ }\n+}\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add skeleton dashboards wrapper for cells
305,164
05.02.2019 13:29:48
28,800
758f5aa7bde27c4e5725c9f513bb107c8c3c777a
Add base protos support
[ { "change_type": "MODIFY", "old_path": "src/index.ts", "new_path": "src/index.ts", "diff": "@@ -5,6 +5,7 @@ import Dashboards from \"./wrappers/dashboards\";\nimport Labels from \"./wrappers/labels\";\nimport Links from \"./wrappers/links\";\nimport Organizations from \"./wrappers/organizations\";\n+import Protos from \"./wrappers/protos\";\nimport Scrapers from \"./wrappers/scrapers\";\nimport Setup from \"./wrappers/setup\";\nimport Sources from \"./wrappers/sources\";\n@@ -23,6 +24,7 @@ export default class Client {\npublic labels: Labels;\npublic links: Links;\npublic organizations: Organizations;\n+ public protos: Protos;\npublic scrapers: Scrapers;\npublic setup: Setup;\npublic sources: Sources;\n@@ -39,6 +41,7 @@ export default class Client {\nthis.labels = new Labels(basePath);\nthis.links = new Links(basePath);\nthis.organizations = new Organizations(basePath);\n+ this.protos = new Protos(basePath);\nthis.scrapers = new Scrapers(basePath);\nthis.setup = new Setup(basePath);\nthis.sources = new Sources(basePath);\n" }, { "change_type": "MODIFY", "old_path": "src/wrappers/dashboards.ts", "new_path": "src/wrappers/dashboards.ts", "diff": "-import { Cell, CellsApi } from \"../api\";\n+import { Cell, CellsApi, Dashboard, ProtosApi } from \"../api\";\nexport default class {\nprivate cellsService: CellsApi;\n+ private protosService: ProtosApi;\nconstructor(basePath: string) {\nthis.cellsService = new CellsApi({basePath});\n+ this.protosService = new ProtosApi({basePath});\n+ }\n+\n+ public async createFromProto(protoID: string, orgID?: string): Promise<Dashboard[]> {\n+ let request = {};\n+\n+ if (orgID) {\n+ request = {orgID};\n+ }\n+\n+ const { data } = await this.protosService.protosProtoIDDashboardsPost(protoID, request);\n+\n+ return data.dashboards || [];\n}\npublic async deleteCell(dashboardID: string, cellID: string): Promise<Response> {\n" }, { "change_type": "ADD", "old_path": null, "new_path": "src/wrappers/protos.ts", "diff": "+import { Proto, ProtosApi } from \"../api\";\n+\n+export default class {\n+ private service: ProtosApi;\n+\n+ constructor(basePath: string) {\n+ this.service = new ProtosApi({basePath});\n+ }\n+\n+ public async getAll(): Promise<Proto[]> {\n+ const {data} = await this.service.protosGet();\n+\n+ return data.protos || [];\n+ }\n+}\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add base protos support
305,164
05.02.2019 14:07:19
28,800
f4e66d8e09b3306479cebc3ce8d3d49308b61eea
Add AST support
[ { "change_type": "MODIFY", "old_path": "src/index.ts", "new_path": "src/index.ts", "diff": "@@ -6,6 +6,7 @@ import Labels from \"./wrappers/labels\";\nimport Links from \"./wrappers/links\";\nimport Organizations from \"./wrappers/organizations\";\nimport Protos from \"./wrappers/protos\";\n+import Queries from \"./wrappers/queries\";\nimport Scrapers from \"./wrappers/scrapers\";\nimport Setup from \"./wrappers/setup\";\nimport Sources from \"./wrappers/sources\";\n@@ -25,6 +26,7 @@ export default class Client {\npublic links: Links;\npublic organizations: Organizations;\npublic protos: Protos;\n+ public queries: Queries;\npublic scrapers: Scrapers;\npublic setup: Setup;\npublic sources: Sources;\n@@ -42,6 +44,7 @@ export default class Client {\nthis.links = new Links(basePath);\nthis.organizations = new Organizations(basePath);\nthis.protos = new Protos(basePath);\n+ this.queries = new Queries(basePath);\nthis.scrapers = new Scrapers(basePath);\nthis.setup = new Setup(basePath);\nthis.sources = new Sources(basePath);\n" }, { "change_type": "MODIFY", "old_path": "src/types/index.ts", "new_path": "src/types/index.ts", "diff": "@@ -4,3 +4,5 @@ export interface ISetupParams {\norg: string;\nbucket: string;\n}\n+\n+export * from \"./ast\";\n" }, { "change_type": "ADD", "old_path": null, "new_path": "src/wrappers/queries.ts", "diff": "+import { QueryApi } from \"../api\";\n+import { IPackage } from \"../types\";\n+\n+export default class {\n+ private service: QueryApi;\n+\n+ constructor(basePath: string) {\n+ this.service = new QueryApi({basePath});\n+ }\n+\n+ public async ast(query: string): Promise<IPackage> {\n+ const { data } = await this.service.queryAstPost(undefined, undefined, { query });\n+\n+ return data.ast;\n+ }\n+}\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add AST support
305,164
05.02.2019 15:23:19
28,800
dd2fb940e66ef9aa24bf2f3a5c22e0263530208d
Add basic dashboard api
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"build\": \"rm -rf dist && tsc\",\n\"lint\": \"tslint --project .\"\n},\n+ \"types\": \"index.d.ts\",\n\"keywords\": [\n\"influxdb\",\n\"influxdata\"\n" }, { "change_type": "MODIFY", "old_path": "src/wrappers/dashboards.ts", "new_path": "src/wrappers/dashboards.ts", "diff": "-import { Cell, CellsApi, Dashboard, ProtosApi } from \"../api\";\n+import { Cell, CellsApi, Dashboard, DashboardsApi, LabelResponse, ProtosApi, View } from \"../api\";\nexport default class {\n+ private service: DashboardsApi;\nprivate cellsService: CellsApi;\nprivate protosService: ProtosApi;\nconstructor(basePath: string) {\nthis.cellsService = new CellsApi({basePath});\nthis.protosService = new ProtosApi({basePath});\n+ this.service = new DashboardsApi({basePath});\n+ }\n+\n+ public async get(id: string): Promise<Dashboard> {\n+ const {data} = await this.service.dashboardsDashboardIDGet(id);\n+\n+ return data;\n+ }\n+\n+ public async getAll(): Promise<Dashboard[]> {\n+ const {data} = await this.service.dashboardsGet(undefined);\n+\n+ return data.dashboards || [];\n+ }\n+\n+ public async getAllByOrg(org: string): Promise<Dashboard[]> {\n+ const {data} = await this.service.dashboardsGet(org);\n+\n+ return data.dashboards || [];\n+ }\n+\n+ public async create(props: Dashboard): Promise<Dashboard> {\n+ const {data} = await this.service.dashboardsPost(props);\n+\n+ return data;\n+ }\n+\n+ public async update(id: string, props: Partial<Dashboard>): Promise<Dashboard> {\n+ const original = await this.get(id);\n+ const {data} = await this.service.dashboardsDashboardIDPatch(id, {...original, ...props});\n+\n+ return data;\n+ }\n+\n+ public async delete(id: string): Promise<Response> {\n+ const {data} = await this.service.dashboardsDashboardIDDelete(id);\n+\n+ return data;\n}\npublic async createFromProto(protoID: string, orgID?: string): Promise<Dashboard[]> {\n@@ -38,4 +77,63 @@ export default class {\nreturn data.cells || [];\n}\n+\n+ public async createLabel(dashboardID: string, labelID: string): Promise<LabelResponse> {\n+ const {data} = await this.service.dashboardsDashboardIDLabelsPost(dashboardID, {\n+ labelID,\n+ });\n+\n+ return data;\n+ }\n+\n+ public async deleteLabel(dashboardID: string, labelID: string): Promise<Response> {\n+ const {data} = await this.service.dashboardsDashboardIDLabelsLabelIDDelete(dashboardID, labelID);\n+\n+ return data;\n+ }\n+\n+ public async getView(dashboardID: string, cellID: string): Promise<View> {\n+ const {data} = await this.service.dashboardsDashboardIDCellsCellIDViewGet(dashboardID, cellID);\n+\n+ return data;\n+ }\n+\n+ public async updateView(dashboardID: string, cellID: string, view: Partial<View>): Promise<View> {\n+ const {data} = await this.service.dashboardsDashboardIDCellsCellIDViewPatch(dashboardID, cellID, view);\n+\n+ return data;\n+ }\n+\n+ public async clone(dashboardID: string, cloneName: string): Promise<Dashboard | null> {\n+ const original = await this.get(dashboardID);\n+\n+ const createdDashboard = await this.create({\n+ ...original,\n+ cells: [],\n+ name: cloneName,\n+ });\n+\n+ const cells = original.cells || [];\n+ const pendingViews = cells.map((c) => this.getView(dashboardID, c.id || \"\"));\n+ const views = await Promise.all(pendingViews);\n+\n+ const pendingUpdatedViews = views.map(async (view) => {\n+ const cell = cells.find((c) => c.id === view.id);\n+\n+ if (cell && createdDashboard.id) {\n+ const newCell = await this.createCell(createdDashboard.id, cell);\n+ if (newCell.id) {\n+ return this.updateView(createdDashboard.id, newCell.id, view);\n+ }\n+ }\n+ });\n+\n+ await Promise.all(pendingUpdatedViews);\n+\n+ if (createdDashboard.id) {\n+ return await this.get(createdDashboard.id);\n+ }\n+\n+ return null;\n+ }\n}\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add basic dashboard api
305,164
05.02.2019 15:51:25
28,800
cadcb8fd8c451da58304cb9693d73e61998b28e5
Return Label from LabelResponse in dashboards
[ { "change_type": "MODIFY", "old_path": "src/wrappers/dashboards.ts", "new_path": "src/wrappers/dashboards.ts", "diff": "-import { Cell, CellsApi, Dashboard, DashboardsApi, LabelResponse, ProtosApi, View } from \"../api\";\n+import { Cell, CellsApi, Dashboard, DashboardsApi, Label, ProtosApi, View } from \"../api\";\nexport default class {\nprivate service: DashboardsApi;\n@@ -78,12 +78,16 @@ export default class {\nreturn data.cells || [];\n}\n- public async createLabel(dashboardID: string, labelID: string): Promise<LabelResponse> {\n+ public async createLabel(dashboardID: string, labelID: string): Promise<Label> {\nconst {data} = await this.service.dashboardsDashboardIDLabelsPost(dashboardID, {\nlabelID,\n});\n- return data;\n+ if (!data.label) {\n+ throw new Error(\"Failed to create label\");\n+ }\n+\n+ return data.label;\n}\npublic async deleteLabel(dashboardID: string, labelID: string): Promise<Response> {\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Return Label from LabelResponse in dashboards
305,164
05.02.2019 16:07:45
28,800
dc5ab8ab9ff6c86494c62ec55452f92e8b526da5
Ensure sources can be found by org Fix telegraf request typing
[ { "change_type": "MODIFY", "old_path": "src/wrappers/sources.ts", "new_path": "src/wrappers/sources.ts", "diff": "@@ -18,7 +18,7 @@ export default class {\n}\npublic async getAllByOrg(org: string): Promise<Source[]> {\n- const {data: {sources}} = await this.service.sourcesGet(\"\");\n+ const {data: {sources}} = await this.service.sourcesGet(org);\nreturn sources || [];\n}\n@@ -30,7 +30,7 @@ export default class {\n}\npublic async update(id: string, props: Partial<Source>): Promise<Source> {\n- const original = this.get(id);\n+ const original = await this.get(id);\nconst {data} = await this.service.sourcesSourceIDPatch(id, {...original, ...props});\nreturn data;\n" }, { "change_type": "MODIFY", "old_path": "src/wrappers/telegrafConfigs.ts", "new_path": "src/wrappers/telegrafConfigs.ts", "diff": "-import { Organization, Telegraf, TelegrafPluginConfig, TelegrafsApi } from \"../api\";\n+import { Organization, Telegraf, TelegrafPluginConfig, TelegrafRequest, TelegrafsApi } from \"../api\";\nexport default class {\n@@ -49,7 +49,9 @@ export default class {\npublic async update(id: string, props: Partial<Telegraf>): Promise<Telegraf> {\nconst original = await this.get(id);\n- const {data: updated} = await this.service.telegrafsTelegrafIDPut(id, {...original, ...props});\n+ const update = {...original, ...props} as TelegrafRequest;\n+\n+ const {data: updated} = await this.service.telegrafsTelegrafIDPut(id, update);\nreturn updated;\n}\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Ensure sources can be found by org - Fix telegraf request typing
305,164
06.02.2019 16:08:30
28,800
f4b46cab40b89aebefc657c5821a3162aad3b6d6
Update api generation from swagger
[ { "change_type": "MODIFY", "old_path": "src/api/api.ts", "new_path": "src/api/api.ts", "diff": "@@ -2990,10 +2990,10 @@ export interface SecretKeysLinks {\nexport interface Source {\n/**\n*\n- * @type {ViewLinks}\n+ * @type {SourceLinks}\n* @memberof Source\n*/\n- links?: ViewLinks;\n+ links?: SourceLinks;\n/**\n*\n* @type {string}\n@@ -3111,6 +3111,38 @@ export namespace Source {\n}\n}\n+/**\n+ *\n+ * @export\n+ * @interface SourceLinks\n+ */\n+export interface SourceLinks {\n+ /**\n+ *\n+ * @type {string}\n+ * @memberof SourceLinks\n+ */\n+ self?: string;\n+ /**\n+ *\n+ * @type {string}\n+ * @memberof SourceLinks\n+ */\n+ query?: string;\n+ /**\n+ *\n+ * @type {string}\n+ * @memberof SourceLinks\n+ */\n+ health?: string;\n+ /**\n+ *\n+ * @type {string}\n+ * @memberof SourceLinks\n+ */\n+ buckets?: string;\n+}\n+\n/**\n*\n* @export\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Update api generation from swagger
305,164
06.02.2019 18:26:26
28,800
4b1f7b1cf3f0003e68144db8eb2a10d0b96151d5
Fix authorizations by username
[ { "change_type": "MODIFY", "old_path": "src/wrappers/authorizations.ts", "new_path": "src/wrappers/authorizations.ts", "diff": "@@ -30,7 +30,7 @@ export default class {\n}\npublic async getAllByUsername(username: string): Promise<Authorization[]> {\n- const {data: {authorizations}} = await this.service.authorizationsGet(undefined, username);\n+ const {data: {authorizations}} = await this.service.authorizationsGet(undefined, undefined, username);\nreturn authorizations || [];\n}\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Fix authorizations by username
305,164
07.02.2019 10:02:47
28,800
2b8c402096c3fe0cf45eeb0ce691c65342b37e9a
Update tasks calls
[ { "change_type": "MODIFY", "old_path": "src/wrappers/tasks.ts", "new_path": "src/wrappers/tasks.ts", "diff": "@@ -21,13 +21,13 @@ export default class {\n}\npublic async getAllByOrg({name}: Organization): Promise<Task[]> {\n- const {data: {tasks}} = await this.service.tasksGet(undefined, undefined, name);\n+ const {data: {tasks}} = await this.service.tasksGet(undefined, undefined, undefined, name);\nreturn tasks || [];\n}\npublic async getAllByUser(user: User): Promise<Task[]> {\n- const { data } = await this.service.tasksGet(undefined, user.id);\n+ const { data } = await this.service.tasksGet(undefined, undefined, user.id);\nreturn data.tasks || [];\n}\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Update tasks calls
305,168
11.02.2019 11:08:31
28,800
398063849dd355bd914717b2bcb650bbab9502e7
Update client for tasks with returning of runs by taskID
[ { "change_type": "MODIFY", "old_path": "src/wrappers/tasks.ts", "new_path": "src/wrappers/tasks.ts", "diff": "-import { Organization, Task, TasksApi, User } from \"../api\";\n+import { Organization, Task, TasksApi, User, Run } from \"../api\";\nimport { addLabelDefaults, Label } from \"./labels\";\nexport default class {\n@@ -88,4 +88,10 @@ export default class {\nreturn Promise.all(promises);\n}\n+\n+ public async getRunsByTaskID(taskID: string): Promise<Run[]> {\n+ const {data: {runs}} = await this.service.tasksTaskIDRunsGet(taskID);\n+\n+ return runs || [];\n+ }\n}\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Update client for tasks with returning of runs by taskID
305,164
11.02.2019 16:20:44
28,800
3df88ea209e459468084093205917b1bbd7c4bd7
Update api from swagger add name to scrapers
[ { "change_type": "MODIFY", "old_path": "src/api/api.ts", "new_path": "src/api/api.ts", "diff": "@@ -2913,6 +2913,12 @@ export interface ScraperTargetResponse extends ScraperTargetRequest {\n* @memberof ScraperTargetResponse\n*/\nbucket?: string;\n+ /**\n+ * name of scraper target\n+ * @type {string}\n+ * @memberof ScraperTargetResponse\n+ */\n+ name?: string;\n/**\n*\n* @type {Links}\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Update api from swagger - add name to scrapers Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
305,164
11.02.2019 16:24:48
28,800
73f6717d43071aadbb482202f1b402147adaab2f
Fix linting issue in tasks wrapper
[ { "change_type": "MODIFY", "old_path": "src/wrappers/tasks.ts", "new_path": "src/wrappers/tasks.ts", "diff": "-import { Organization, Task, TasksApi, User, Run } from \"../api\";\n+import { Organization, Run, Task, TasksApi, User } from \"../api\";\nimport { addLabelDefaults, Label } from \"./labels\";\nexport default class {\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Fix linting issue in tasks wrapper
305,169
12.02.2019 14:58:28
28,800
6d56c063970c6dba6c61f6f6e84831b4b679db75
Add get, create, and delete functions for template variables
[ { "change_type": "MODIFY", "old_path": "package-lock.json", "new_path": "package-lock.json", "diff": "{\n- \"name\": \"influxdb2-js\",\n- \"version\": \"0.0.1\",\n+ \"name\": \"@influxdata/influx\",\n+ \"version\": \"0.2.5\",\n\"lockfileVersion\": 1,\n\"requires\": true,\n\"dependencies\": {\n\"ansi-regex\": {\n\"version\": \"2.1.1\",\n\"resolved\": \"https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz\",\n- \"integrity\": \"sha1-w7M6te42DYbg5ijwRorn7yfWVN8=\"\n+ \"integrity\": \"sha1-w7M6te42DYbg5ijwRorn7yfWVN8=\",\n+ \"dev\": true\n},\n\"ansi-styles\": {\n\"version\": \"2.2.1\",\n\"resolved\": \"https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz\",\n- \"integrity\": \"sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=\"\n+ \"integrity\": \"sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=\",\n+ \"dev\": true\n},\n\"argparse\": {\n\"version\": \"1.0.10\",\n\"resolved\": \"https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz\",\n\"integrity\": \"sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==\",\n+ \"dev\": true,\n\"requires\": {\n\"sprintf-js\": \"~1.0.2\"\n}\n\"version\": \"6.26.0\",\n\"resolved\": \"https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz\",\n\"integrity\": \"sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=\",\n+ \"dev\": true,\n\"requires\": {\n\"chalk\": \"^1.1.3\",\n\"esutils\": \"^2.0.2\",\n\"version\": \"1.1.3\",\n\"resolved\": \"https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz\",\n\"integrity\": \"sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=\",\n+ \"dev\": true,\n\"requires\": {\n\"ansi-styles\": \"^2.2.1\",\n\"escape-string-regexp\": \"^1.0.2\",\n\"balanced-match\": {\n\"version\": \"1.0.0\",\n\"resolved\": \"https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz\",\n- \"integrity\": \"sha1-ibTRmasr7kneFk6gK4nORi1xt2c=\"\n+ \"integrity\": \"sha1-ibTRmasr7kneFk6gK4nORi1xt2c=\",\n+ \"dev\": true\n},\n\"brace-expansion\": {\n\"version\": \"1.1.11\",\n\"resolved\": \"https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz\",\n\"integrity\": \"sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==\",\n+ \"dev\": true,\n\"requires\": {\n\"balanced-match\": \"^1.0.0\",\n\"concat-map\": \"0.0.1\"\n\"builtin-modules\": {\n\"version\": \"1.1.1\",\n\"resolved\": \"https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz\",\n- \"integrity\": \"sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=\"\n+ \"integrity\": \"sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=\",\n+ \"dev\": true\n},\n\"chalk\": {\n\"version\": \"2.4.2\",\n\"resolved\": \"https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz\",\n\"integrity\": \"sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==\",\n+ \"dev\": true,\n\"requires\": {\n\"ansi-styles\": \"^3.2.1\",\n\"escape-string-regexp\": \"^1.0.5\",\n\"version\": \"3.2.1\",\n\"resolved\": \"https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz\",\n\"integrity\": \"sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==\",\n+ \"dev\": true,\n\"requires\": {\n\"color-convert\": \"^1.9.0\"\n}\n\"version\": \"5.5.0\",\n\"resolved\": \"https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz\",\n\"integrity\": \"sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==\",\n+ \"dev\": true,\n\"requires\": {\n\"has-flag\": \"^3.0.0\"\n}\n\"version\": \"1.9.3\",\n\"resolved\": \"https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz\",\n\"integrity\": \"sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==\",\n+ \"dev\": true,\n\"requires\": {\n\"color-name\": \"1.1.3\"\n}\n\"color-name\": {\n\"version\": \"1.1.3\",\n\"resolved\": \"https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz\",\n- \"integrity\": \"sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=\"\n+ \"integrity\": \"sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=\",\n+ \"dev\": true\n},\n\"commander\": {\n\"version\": \"2.19.0\",\n\"resolved\": \"https://registry.npmjs.org/commander/-/commander-2.19.0.tgz\",\n- \"integrity\": \"sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==\"\n+ \"integrity\": \"sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==\",\n+ \"dev\": true\n},\n\"concat-map\": {\n\"version\": \"0.0.1\",\n\"resolved\": \"https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz\",\n- \"integrity\": \"sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=\"\n+ \"integrity\": \"sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=\",\n+ \"dev\": true\n},\n\"debug\": {\n\"version\": \"3.1.0\",\n\"diff\": {\n\"version\": \"3.5.0\",\n\"resolved\": \"https://registry.npmjs.org/diff/-/diff-3.5.0.tgz\",\n- \"integrity\": \"sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==\"\n+ \"integrity\": \"sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==\",\n+ \"dev\": true\n},\n\"escape-string-regexp\": {\n\"version\": \"1.0.5\",\n\"resolved\": \"https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz\",\n- \"integrity\": \"sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=\"\n+ \"integrity\": \"sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=\",\n+ \"dev\": true\n},\n\"esprima\": {\n\"version\": \"4.0.1\",\n\"resolved\": \"https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz\",\n- \"integrity\": \"sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==\"\n+ \"integrity\": \"sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==\",\n+ \"dev\": true\n},\n\"esutils\": {\n\"version\": \"2.0.2\",\n\"resolved\": \"https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz\",\n- \"integrity\": \"sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=\"\n+ \"integrity\": \"sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=\",\n+ \"dev\": true\n},\n\"follow-redirects\": {\n\"version\": \"1.5.10\",\n\"fs.realpath\": {\n\"version\": \"1.0.0\",\n\"resolved\": \"https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz\",\n- \"integrity\": \"sha1-FQStJSMVjKpA20onh8sBQRmU6k8=\"\n+ \"integrity\": \"sha1-FQStJSMVjKpA20onh8sBQRmU6k8=\",\n+ \"dev\": true\n},\n\"glob\": {\n\"version\": \"7.1.3\",\n\"resolved\": \"https://registry.npmjs.org/glob/-/glob-7.1.3.tgz\",\n\"integrity\": \"sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==\",\n+ \"dev\": true,\n\"requires\": {\n\"fs.realpath\": \"^1.0.0\",\n\"inflight\": \"^1.0.4\",\n\"version\": \"2.0.0\",\n\"resolved\": \"https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz\",\n\"integrity\": \"sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=\",\n+ \"dev\": true,\n\"requires\": {\n\"ansi-regex\": \"^2.0.0\"\n}\n\"has-flag\": {\n\"version\": \"3.0.0\",\n\"resolved\": \"https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz\",\n- \"integrity\": \"sha1-tdRU3CGZriJWmfNGfloH87lVuv0=\"\n+ \"integrity\": \"sha1-tdRU3CGZriJWmfNGfloH87lVuv0=\",\n+ \"dev\": true\n},\n\"inflight\": {\n\"version\": \"1.0.6\",\n\"resolved\": \"https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz\",\n\"integrity\": \"sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=\",\n+ \"dev\": true,\n\"requires\": {\n\"once\": \"^1.3.0\",\n\"wrappy\": \"1\"\n\"inherits\": {\n\"version\": \"2.0.3\",\n\"resolved\": \"https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz\",\n- \"integrity\": \"sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=\"\n+ \"integrity\": \"sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=\",\n+ \"dev\": true\n},\n\"is-buffer\": {\n\"version\": \"1.1.6\",\n\"js-tokens\": {\n\"version\": \"3.0.2\",\n\"resolved\": \"https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz\",\n- \"integrity\": \"sha1-mGbfOVECEw449/mWvOtlRDIJwls=\"\n+ \"integrity\": \"sha1-mGbfOVECEw449/mWvOtlRDIJwls=\",\n+ \"dev\": true\n},\n\"js-yaml\": {\n\"version\": \"3.12.1\",\n\"resolved\": \"https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.1.tgz\",\n\"integrity\": \"sha512-um46hB9wNOKlwkHgiuyEVAybXBjwFUV0Z/RaHJblRd9DXltue9FTYvzCr9ErQrK9Adz5MU4gHWVaNUfdmrC8qA==\",\n+ \"dev\": true,\n\"requires\": {\n\"argparse\": \"^1.0.7\",\n\"esprima\": \"^4.0.0\"\n\"version\": \"3.0.4\",\n\"resolved\": \"https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz\",\n\"integrity\": \"sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==\",\n+ \"dev\": true,\n\"requires\": {\n\"brace-expansion\": \"^1.1.7\"\n}\n\"version\": \"1.4.0\",\n\"resolved\": \"https://registry.npmjs.org/once/-/once-1.4.0.tgz\",\n\"integrity\": \"sha1-WDsap3WWHUsROsF9nFC6753Xa9E=\",\n+ \"dev\": true,\n\"requires\": {\n\"wrappy\": \"1\"\n}\n\"path-is-absolute\": {\n\"version\": \"1.0.1\",\n\"resolved\": \"https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz\",\n- \"integrity\": \"sha1-F0uSaHNVNP+8es5r9TpanhtcX18=\"\n+ \"integrity\": \"sha1-F0uSaHNVNP+8es5r9TpanhtcX18=\",\n+ \"dev\": true\n},\n\"path-parse\": {\n\"version\": \"1.0.6\",\n\"resolved\": \"https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz\",\n- \"integrity\": \"sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==\"\n+ \"integrity\": \"sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==\",\n+ \"dev\": true\n},\n\"resolve\": {\n\"version\": \"1.10.0\",\n\"resolved\": \"https://registry.npmjs.org/resolve/-/resolve-1.10.0.tgz\",\n\"integrity\": \"sha512-3sUr9aq5OfSg2S9pNtPA9hL1FVEAjvfOC4leW0SNf/mpnaakz2a9femSd6LqAww2RaFctwyf1lCqnTHuF1rxDg==\",\n+ \"dev\": true,\n\"requires\": {\n\"path-parse\": \"^1.0.6\"\n}\n\"semver\": {\n\"version\": \"5.6.0\",\n\"resolved\": \"https://registry.npmjs.org/semver/-/semver-5.6.0.tgz\",\n- \"integrity\": \"sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==\"\n+ \"integrity\": \"sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==\",\n+ \"dev\": true\n},\n\"sprintf-js\": {\n\"version\": \"1.0.3\",\n\"resolved\": \"https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz\",\n- \"integrity\": \"sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=\"\n+ \"integrity\": \"sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=\",\n+ \"dev\": true\n},\n\"strip-ansi\": {\n\"version\": \"3.0.1\",\n\"resolved\": \"https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz\",\n\"integrity\": \"sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=\",\n+ \"dev\": true,\n\"requires\": {\n\"ansi-regex\": \"^2.0.0\"\n}\n\"supports-color\": {\n\"version\": \"2.0.0\",\n\"resolved\": \"https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz\",\n- \"integrity\": \"sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=\"\n+ \"integrity\": \"sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=\",\n+ \"dev\": true\n},\n\"tslib\": {\n\"version\": \"1.9.3\",\n\"resolved\": \"https://registry.npmjs.org/tslib/-/tslib-1.9.3.tgz\",\n- \"integrity\": \"sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ==\"\n+ \"integrity\": \"sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ==\",\n+ \"dev\": true\n},\n\"tslint\": {\n\"version\": \"5.12.1\",\n\"resolved\": \"https://registry.npmjs.org/tslint/-/tslint-5.12.1.tgz\",\n\"integrity\": \"sha512-sfodBHOucFg6egff8d1BvuofoOQ/nOeYNfbp7LDlKBcLNrL3lmS5zoiDGyOMdT7YsEXAwWpTdAHwOGOc8eRZAw==\",\n+ \"dev\": true,\n\"requires\": {\n\"babel-code-frame\": \"^6.22.0\",\n\"builtin-modules\": \"^1.1.1\",\n\"version\": \"2.29.0\",\n\"resolved\": \"https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz\",\n\"integrity\": \"sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==\",\n+ \"dev\": true,\n\"requires\": {\n\"tslib\": \"^1.8.1\"\n}\n\"wrappy\": {\n\"version\": \"1.0.2\",\n\"resolved\": \"https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz\",\n- \"integrity\": \"sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=\"\n+ \"integrity\": \"sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=\",\n+ \"dev\": true\n}\n}\n}\n" }, { "change_type": "MODIFY", "old_path": "src/api/api.ts", "new_path": "src/api/api.ts", "diff": "@@ -1600,10 +1600,10 @@ export interface Macro {\nexport interface Macros {\n/**\n*\n- * @type {Macro}\n+ * @type {Array<Macro>}\n* @memberof Macros\n*/\n- macros?: Macro;\n+ macros?: Array<Macro>;\n}\n/**\n@@ -3247,6 +3247,18 @@ export interface Task {\n* @memberof Task\n*/\nlatestCompleted?: Date;\n+ /**\n+ *\n+ * @type {Date}\n+ * @memberof Task\n+ */\n+ createdAt?: Date;\n+ /**\n+ *\n+ * @type {Date}\n+ * @memberof Task\n+ */\n+ updatedAt?: Date;\n/**\n*\n* @type {TaskLinks}\n" }, { "change_type": "MODIFY", "old_path": "src/index.ts", "new_path": "src/index.ts", "diff": "@@ -13,6 +13,7 @@ import Sources from \"./wrappers/sources\";\nimport Tasks from \"./wrappers/tasks\";\nimport TelegrafConfigs from \"./wrappers/telegrafConfigs\";\nimport Users from \"./wrappers/users\";\n+import Variables from \"./wrappers/variables\";\nimport Write from \"./wrappers/write\";\nexport * from \"./types\";\n@@ -34,6 +35,7 @@ export default class Client {\npublic tasks: Tasks;\npublic telegrafConfigs: TelegrafConfigs;\npublic users: Users;\n+ public variables: Variables;\npublic write: Write;\nconstructor(basePath: string) {\n@@ -52,6 +54,7 @@ export default class Client {\nthis.tasks = new Tasks(basePath);\nthis.telegrafConfigs = new TelegrafConfigs(basePath);\nthis.users = new Users(basePath);\n+ this.variables = new Variables(basePath);\nthis.write = new Write(basePath);\n}\n}\n" }, { "change_type": "ADD", "old_path": null, "new_path": "src/wrappers/variables.ts", "diff": "+import { Macro, MacrosApi } from \"../api\";\n+\n+export default class {\n+ private service: MacrosApi;\n+\n+ constructor(basePath: string) {\n+ this.service = new MacrosApi({basePath});\n+ }\n+\n+ public async getAllByOrg(orgName: string): Promise<Macro[]> {\n+ const {data: {macros}} = await this.service.macrosGet(undefined, orgName);\n+\n+ return macros || [];\n+ }\n+\n+ public async create(macro: Macro): Promise<Macro> {\n+ const {data} = await this.service.macrosPost(macro);\n+\n+ return data;\n+ }\n+\n+ public async delete(id: string): Promise<Response> {\n+ const {data} = await this.service.macrosMacroIDDelete(id);\n+\n+ return data;\n+ }\n+}\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add get, create, and delete functions for template variables
305,169
13.02.2019 14:33:22
28,800
3dadb5fafe6e462dd81de6bfc9c89356f64206b5
Change org to orgName and fix macro type
[ { "change_type": "MODIFY", "old_path": "src/api/api.ts", "new_path": "src/api/api.ts", "diff": "@@ -2265,16 +2265,10 @@ export interface QueryMacroProperties {\ntype?: QueryMacroProperties.TypeEnum;\n/**\n*\n- * @type {string}\n- * @memberof QueryMacroProperties\n- */\n- query?: string;\n- /**\n- *\n- * @type {string}\n+ * @type {QueryMacroPropertiesValues}\n* @memberof QueryMacroProperties\n*/\n- queryType?: string;\n+ values?: QueryMacroPropertiesValues;\n}\n/**\n@@ -2291,6 +2285,26 @@ export namespace QueryMacroProperties {\n}\n}\n+/**\n+ *\n+ * @export\n+ * @interface QueryMacroPropertiesValues\n+ */\n+export interface QueryMacroPropertiesValues {\n+ /**\n+ *\n+ * @type {string}\n+ * @memberof QueryMacroPropertiesValues\n+ */\n+ query?: string;\n+ /**\n+ *\n+ * @type {string}\n+ * @memberof QueryMacroPropertiesValues\n+ */\n+ language?: string;\n+}\n+\n/**\n* consists of a set of operations and a set of edges between those operations to instruct the query engine to operate.\n* @export\n@@ -3293,7 +3307,13 @@ export interface TaskCreateRequest {\n* @type {string}\n* @memberof TaskCreateRequest\n*/\n- orgID: string;\n+ orgID?: string;\n+ /**\n+ * The name of the organization that owns this Task.\n+ * @type {string}\n+ * @memberof TaskCreateRequest\n+ */\n+ org?: string;\n/**\n* Starting state of the task. 'inactive' tasks are not run until they are updated to 'active'\n* @type {string}\n" }, { "change_type": "MODIFY", "old_path": "src/wrappers/buckets.ts", "new_path": "src/wrappers/buckets.ts", "diff": "@@ -13,8 +13,8 @@ export default class {\nreturn data;\n}\n- public async getAllByOrg({name}: Organization): Promise<Bucket[]> {\n- const {data: {buckets}} = await this.service.bucketsGet(name);\n+ public async getAllByOrg(org: string): Promise<Bucket[]> {\n+ const {data: {buckets}} = await this.service.bucketsGet(undefined, undefined, undefined, org);\nreturn buckets || [];\n}\n" }, { "change_type": "MODIFY", "old_path": "src/wrappers/tasks.ts", "new_path": "src/wrappers/tasks.ts", "diff": "@@ -20,8 +20,8 @@ export default class {\nreturn data;\n}\n- public async getAllByOrg({name}: Organization): Promise<Task[]> {\n- const {data: {tasks}} = await this.service.tasksGet(undefined, undefined, undefined, name);\n+ public async getAllByOrg(org: string): Promise<Task[]> {\n+ const {data: {tasks}} = await this.service.tasksGet(undefined, undefined, undefined, org);\nreturn tasks || [];\n}\n" }, { "change_type": "MODIFY", "old_path": "src/wrappers/variables.ts", "new_path": "src/wrappers/variables.ts", "diff": "@@ -7,8 +7,8 @@ export default class {\nthis.service = new MacrosApi({basePath});\n}\n- public async getAllByOrg(orgName: string): Promise<Macro[]> {\n- const {data: {macros}} = await this.service.macrosGet(undefined, orgName);\n+ public async getAllByOrg(org: string): Promise<Macro[]> {\n+ const {data: {macros}} = await this.service.macrosGet(undefined, org);\nreturn macros || [];\n}\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Change org to orgName and fix macro type
305,169
13.02.2019 16:17:52
28,800
6b372fe92608b154763fc4c75f13c11a0256f6e1
Add orgID property to Macro type
[ { "change_type": "MODIFY", "old_path": "src/api/api.ts", "new_path": "src/api/api.ts", "diff": "@@ -1577,7 +1577,13 @@ export interface Macro {\n* @type {string}\n* @memberof Macro\n*/\n- name?: string;\n+ orgID: string;\n+ /**\n+ *\n+ * @type {string}\n+ * @memberof Macro\n+ */\n+ name: string;\n/**\n*\n* @type {Array<string>}\n@@ -1589,7 +1595,7 @@ export interface Macro {\n* @type {any}\n* @memberof Macro\n*/\n- arguments?: any;\n+ arguments: any;\n}\n/**\n@@ -2265,16 +2271,10 @@ export interface QueryMacroProperties {\ntype?: QueryMacroProperties.TypeEnum;\n/**\n*\n- * @type {string}\n+ * @type {QueryMacroPropertiesValues}\n* @memberof QueryMacroProperties\n*/\n- query?: string;\n- /**\n- *\n- * @type {string}\n- * @memberof QueryMacroProperties\n- */\n- queryType?: string;\n+ values?: QueryMacroPropertiesValues;\n}\n/**\n@@ -2291,6 +2291,26 @@ export namespace QueryMacroProperties {\n}\n}\n+/**\n+ *\n+ * @export\n+ * @interface QueryMacroPropertiesValues\n+ */\n+export interface QueryMacroPropertiesValues {\n+ /**\n+ *\n+ * @type {string}\n+ * @memberof QueryMacroPropertiesValues\n+ */\n+ query?: string;\n+ /**\n+ *\n+ * @type {string}\n+ * @memberof QueryMacroPropertiesValues\n+ */\n+ language?: string;\n+}\n+\n/**\n* consists of a set of operations and a set of edges between those operations to instruct the query engine to operate.\n* @export\n@@ -3293,7 +3313,13 @@ export interface TaskCreateRequest {\n* @type {string}\n* @memberof TaskCreateRequest\n*/\n- orgID: string;\n+ orgID?: string;\n+ /**\n+ * The name of the organization that owns this Task.\n+ * @type {string}\n+ * @memberof TaskCreateRequest\n+ */\n+ org?: string;\n/**\n* Starting state of the task. 'inactive' tasks are not run until they are updated to 'active'\n* @type {string}\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add orgID property to Macro type
305,169
13.02.2019 17:48:28
28,800
cca0c7cb313167b2011ac365378abb11ea6c01c1
Removed unused Organization imports
[ { "change_type": "MODIFY", "old_path": "src/wrappers/buckets.ts", "new_path": "src/wrappers/buckets.ts", "diff": "-import { Bucket, BucketsApi, Organization } from \"../api\";\n+import { Bucket, BucketsApi } from \"../api\";\nexport default class {\nprivate service: BucketsApi;\n" }, { "change_type": "MODIFY", "old_path": "src/wrappers/tasks.ts", "new_path": "src/wrappers/tasks.ts", "diff": "-import { Organization, Run, Task, TasksApi, User } from \"../api\";\n+import { Run, Task, TasksApi, User } from \"../api\";\nimport { addLabelDefaults, Label } from \"./labels\";\nexport default class {\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Removed unused Organization imports
305,168
14.02.2019 13:32:35
28,800
b4292bba69949e199d0f2f4ce567c6a3e91fcb38
Update task wrapper to include start task by taskID
[ { "change_type": "MODIFY", "old_path": "src/wrappers/tasks.ts", "new_path": "src/wrappers/tasks.ts", "diff": "@@ -95,12 +95,6 @@ export default class {\nreturn runs || [];\n}\n- public async startRunByTaskID(taskID: string): Promise<Run[]> {\n- const {data: {runs}} = await this.service.tasksTaskIDRunsPost(taskID);\n-\n- return runs || [];\n- }\n-\npublic async startRunByTaskID(taskID: string): Promise<Run> {\nconst {data} = await this.service.tasksTaskIDRunsPost(taskID);\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Update task wrapper to include start task by taskID
305,169
19.02.2019 13:22:10
28,800
45da314f5fa75dedea91faec8624361c580797a9
Add get and update variable by ID routes
[ { "change_type": "MODIFY", "old_path": "src/api/api.ts", "new_path": "src/api/api.ts", "diff": "@@ -21749,6 +21749,44 @@ export const VariablesApiAxiosParamCreator = function (configuration?: Configura\noptions: localVarRequestOptions,\n};\n},\n+ /**\n+ *\n+ * @summary get a variable\n+ * @param {string} variableID ID of the variable\n+ * @param {string} [zapTraceSpan] OpenTracing span context\n+ * @param {*} [options] Override http request option.\n+ * @throws {RequiredError}\n+ */\n+ variablesVariableIDGet(variableID: string, zapTraceSpan?: string, options: any = {}): RequestArgs {\n+ // verify required parameter 'variableID' is not null or undefined\n+ if (variableID === null || variableID === undefined) {\n+ throw new RequiredError('variableID','Required parameter variableID was null or undefined when calling variablesVariableIDGet.');\n+ }\n+ const localVarPath = `/variables/{variableID}`\n+ .replace(`{${\"variableID\"}}`, encodeURIComponent(String(variableID)));\n+ const localVarUrlObj = url.parse(localVarPath, true);\n+ let baseOptions;\n+ if (configuration) {\n+ baseOptions = configuration.baseOptions;\n+ }\n+ const localVarRequestOptions = Object.assign({ method: 'GET' }, baseOptions, options);\n+ const localVarHeaderParameter = {} as any;\n+ const localVarQueryParameter = {} as any;\n+\n+ if (zapTraceSpan !== undefined && zapTraceSpan !== null) {\n+ localVarHeaderParameter['Zap-Trace-Span'] = String(zapTraceSpan);\n+ }\n+\n+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);\n+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943\n+ delete localVarUrlObj.search;\n+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);\n+\n+ return {\n+ url: url.format(localVarUrlObj),\n+ options: localVarRequestOptions,\n+ };\n+ },\n/**\n*\n* @summary update a variable\n@@ -21898,6 +21936,21 @@ export const VariablesApiFp = function(configuration?: Configuration) {\nreturn axios.request(axiosRequestArgs);\n};\n},\n+ /**\n+ *\n+ * @summary get a variable\n+ * @param {string} variableID ID of the variable\n+ * @param {string} [zapTraceSpan] OpenTracing span context\n+ * @param {*} [options] Override http request option.\n+ * @throws {RequiredError}\n+ */\n+ variablesVariableIDGet(variableID: string, zapTraceSpan?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Variable> {\n+ const localVarAxiosArgs = VariablesApiAxiosParamCreator(configuration).variablesVariableIDGet(variableID, zapTraceSpan, options);\n+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n+ const axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url})\n+ return axios.request(axiosRequestArgs);\n+ };\n+ },\n/**\n*\n* @summary update a variable\n@@ -21973,6 +22026,17 @@ export const VariablesApiFactory = function (configuration?: Configuration, base\nvariablesVariableIDDelete(variableID: string, zapTraceSpan?: string, options?: any) {\nreturn VariablesApiFp(configuration).variablesVariableIDDelete(variableID, zapTraceSpan, options)(axios, basePath);\n},\n+ /**\n+ *\n+ * @summary get a variable\n+ * @param {string} variableID ID of the variable\n+ * @param {string} [zapTraceSpan] OpenTracing span context\n+ * @param {*} [options] Override http request option.\n+ * @throws {RequiredError}\n+ */\n+ variablesVariableIDGet(variableID: string, zapTraceSpan?: string, options?: any) {\n+ return VariablesApiFp(configuration).variablesVariableIDGet(variableID, zapTraceSpan, options)(axios, basePath);\n+ },\n/**\n*\n* @summary update a variable\n@@ -22047,6 +22111,19 @@ export class VariablesApi extends BaseAPI {\nreturn VariablesApiFp(this.configuration).variablesVariableIDDelete(variableID, zapTraceSpan, options)(this.axios, this.basePath);\n}\n+ /**\n+ *\n+ * @summary get a variable\n+ * @param {string} variableID ID of the variable\n+ * @param {string} [zapTraceSpan] OpenTracing span context\n+ * @param {*} [options] Override http request option.\n+ * @throws {RequiredError}\n+ * @memberof VariablesApi\n+ */\n+ public variablesVariableIDGet(variableID: string, zapTraceSpan?: string, options?: any) {\n+ return VariablesApiFp(this.configuration).variablesVariableIDGet(variableID, zapTraceSpan, options)(this.axios, this.basePath);\n+ }\n+\n/**\n*\n* @summary update a variable\n" }, { "change_type": "MODIFY", "old_path": "src/wrappers/variables.ts", "new_path": "src/wrappers/variables.ts", "diff": "@@ -7,6 +7,19 @@ export default class {\nthis.service = new VariablesApi({basePath});\n}\n+ public async get(id: string): Promise<Variable> {\n+ const {data: variable} = await this.service.variablesVariableIDGet(id);\n+\n+ return variable;\n+ }\n+\n+ public async update(id: string, props: Partial<Variable>): Promise<Variable> {\n+ const original = await this.get(id);\n+ const {data} = await this.service.variablesVariableIDPatch(id, {...original, ...props});\n+\n+ return data;\n+ }\n+\npublic async getAllByOrg(org: string): Promise<Variable[]> {\nconst {data: {variables}} = await this.service.variablesGet(undefined, org);\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add get and update variable by ID routes
305,161
19.02.2019 16:17:29
28,800
a25df4b00b587fa33dec97c817ae3a07543403e1
Add getAll to tasks and correct orgID to org
[ { "change_type": "MODIFY", "old_path": "src/wrappers/tasks.ts", "new_path": "src/wrappers/tasks.ts", "diff": "@@ -9,7 +9,7 @@ export default class {\n}\npublic async create(org: string, script: string): Promise<Task> {\n- const {data} = await this.service.tasksPost({orgID: org, flux: script});\n+ const { data } = await this.service.tasksPost({ org, flux: script });\nreturn data;\n}\n@@ -20,6 +20,12 @@ export default class {\nreturn data;\n}\n+ public async getAll(): Promise<Task[]> {\n+ const { data: { tasks } } = await this.service.tasksGet();\n+\n+ return tasks || [];\n+ }\n+\npublic async getAllByOrg(org: string): Promise<Task[]> {\nconst { data: { tasks } } = await this.service.tasksGet(undefined, undefined, undefined, org);\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add getAll to tasks and correct orgID to org
305,169
20.02.2019 13:43:57
28,800
1840b01ac4d2002ff2b98432970cfa6ecba1d45d
Add function to get all variables from all orgs
[ { "change_type": "MODIFY", "old_path": "src/wrappers/variables.ts", "new_path": "src/wrappers/variables.ts", "diff": "@@ -26,6 +26,12 @@ export default class {\nreturn variables || [];\n}\n+ public async getAll(): Promise<Variable[]> {\n+ const {data: {variables}} = await this.service.variablesGet();\n+\n+ return variables || [];\n+ }\n+\npublic async create(variable: Variable): Promise<Variable> {\nconst {data} = await this.service.variablesPost(variable);\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add function to get all variables from all orgs
305,165
20.02.2019 15:33:59
28,800
cc92264b32da9f77caaedefee15fc9556b39f42e
Update Dashboard clone wrapper to clone labels
[ { "change_type": "MODIFY", "old_path": "package-lock.json", "new_path": "package-lock.json", "diff": "{\n\"name\": \"@influxdata/influx\",\n- \"version\": \"0.2.5\",\n+ \"version\": \"0.2.13\",\n\"lockfileVersion\": 1,\n\"requires\": true,\n\"dependencies\": {\n" }, { "change_type": "MODIFY", "old_path": "src/wrappers/dashboards.ts", "new_path": "src/wrappers/dashboards.ts", "diff": "@@ -117,27 +117,51 @@ export default class {\nname: cloneName,\n});\n- const cells = original.cells || [];\n- const pendingViews = cells.map((c) => this.getView(dashboardID, c.id || \"\"));\n+ if (!createdDashboard || !createdDashboard.id) {\n+ throw new Error(\"Could not create dashboard\");\n+ }\n+\n+ await this.cloneViews(original, createdDashboard);\n+ await this.cloneLabels(original, createdDashboard);\n+\n+ return this.get(createdDashboard.id);\n+\n+ }\n+\n+ private async cloneLabels(originalDashboard: Dashboard, newDashboard: Dashboard): Promise<Label[]> {\n+ if (!newDashboard || !newDashboard.id) {\n+ throw new Error(\"Cannot create labels on invalid dashboard\");\n+ }\n+\n+ const labels = originalDashboard.labels || [];\n+ const pendingLabels = labels.map(async (label) => this.createLabel(newDashboard.id || \"\", label.id || \"\"));\n+\n+ const newLabels = await Promise.all(pendingLabels);\n+\n+ return newLabels.filter((l) => !!l) as Label[];\n+ }\n+\n+ private async cloneViews(originalDashboard: Dashboard, newDashboard: Dashboard ): Promise<View[]> {\n+ if (!newDashboard || !newDashboard.id) {\n+ throw new Error(\"Cannot create views on invalid dashboard\");\n+ }\n+ const cells = originalDashboard.cells || [];\n+\n+ const pendingViews = cells.map((c) => this.getView(originalDashboard.id || \"\", c.id || \"\"));\nconst views = await Promise.all(pendingViews);\nconst pendingUpdatedViews = views.map(async (view) => {\nconst cell = cells.find((c) => c.id === view.id);\n- if (cell && createdDashboard.id) {\n- const newCell = await this.createCell(createdDashboard.id, cell);\n- if (newCell.id) {\n- return this.updateView(createdDashboard.id, newCell.id, view);\n+ if (cell && newDashboard.id) {\n+ const newCell = await this.createCell(newDashboard.id, cell);\n+ if (newCell && newCell.id) {\n+ return this.updateView(newDashboard.id, newCell.id, view);\n}\n}\n});\n- await Promise.all(pendingUpdatedViews);\n-\n- if (createdDashboard.id) {\n- return await this.get(createdDashboard.id);\n- }\n-\n- return null;\n+ const newViews = await Promise.all(pendingUpdatedViews);\n+ return newViews.filter((v) => !!v) as View[];\n}\n}\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Update Dashboard clone wrapper to clone labels
305,165
20.02.2019 17:13:58
28,800
cc8bee7c4fedc150a474273ddf745092d9e8f6d9
Add clone task and clone task labels to tasks
[ { "change_type": "MODIFY", "old_path": "src/wrappers/tasks.ts", "new_path": "src/wrappers/tasks.ts", "diff": "@@ -106,4 +106,31 @@ export default class {\nreturn data;\n}\n+\n+ public async clone(taskID: string): Promise<Task> {\n+ const original = await this.get(taskID);\n+\n+ const createdTask = await this.create(original.org || \"\", original.flux);\n+\n+ if (!createdTask || !createdTask.id) {\n+ throw new Error(\"Could not create task\");\n+ }\n+\n+ await this.cloneLabels(original, createdTask);\n+\n+ return this.get(createdTask.id);\n+ }\n+\n+ private async cloneLabels(originalTask: Task, newTask: Task): Promise<Label[]> {\n+ if (!newTask || !newTask.id) {\n+ throw new Error(\"Cannot create labels on invalid task\");\n+ }\n+\n+ const labels = originalTask.labels || [];\n+ const pendingLabels = labels.map(async (label) => this.addLabel(newTask.id || \"\", addLabelDefaults(label)));\n+\n+ const newLabels = await Promise.all(pendingLabels);\n+\n+ return newLabels.filter((l) => !!l);\n+ }\n}\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add clone task and clone task labels to tasks
305,168
21.02.2019 14:41:32
28,800
9da2e426a2345c3921c87a001c2c403d929d8782
Update orgs wrapper to include owners post api call
[ { "change_type": "MODIFY", "old_path": "src/wrappers/organizations.ts", "new_path": "src/wrappers/organizations.ts", "diff": "-import { Organization, OrganizationsApi, ResourceMember, ResourceOwner } from \"../api\";\n+import {\n+ AddResourceMemberRequestBody,\n+ Organization,\n+ OrganizationsApi,\n+ ResourceMember,\n+ ResourceOwner,\n+} from \"../api\";\nexport default class {\nprivate service: OrganizationsApi;\n@@ -14,7 +20,9 @@ export default class {\n}\npublic async getAll(): Promise<Organization[]> {\n- const {data: {orgs}} = await this.service.orgsGet();\n+ const {\n+ data: { orgs },\n+ } = await this.service.orgsGet();\nreturn orgs || [];\n}\n@@ -31,22 +39,41 @@ export default class {\nreturn data;\n}\n- public async update(id: string, org: Partial<Organization>): Promise<Organization> {\n+ public async update(\n+ id: string,\n+ org: Partial<Organization>,\n+ ): Promise<Organization> {\nconst original = await this.get(id);\n- const {data} = await this.service.orgsOrgIDPatch(id, {...original, ...org});\n+ const { data } = await this.service.orgsOrgIDPatch(id, {\n+ ...original,\n+ ...org,\n+ });\nreturn data;\n}\npublic async members(id: string): Promise<ResourceMember[]> {\n- const {data: {users}} = await this.service.orgsOrgIDMembersGet(id);\n+ const {\n+ data: { users },\n+ } = await this.service.orgsOrgIDMembersGet(id);\nreturn users || [];\n}\npublic async owners(id: string): Promise<ResourceOwner[]> {\n- const {data: {users}} = await this.service.orgsOrgIDOwnersGet(id);\n+ const {\n+ data: { users },\n+ } = await this.service.orgsOrgIDOwnersGet(id);\nreturn users || [];\n}\n+\n+ public async createOwner(\n+ id: string,\n+ user: AddResourceMemberRequestBody,\n+ ): Promise<ResourceOwner> {\n+ const { data } = await this.service.orgsOrgIDOwnersPost(id, user);\n+\n+ return data;\n+ }\n}\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Update orgs wrapper to include owners post api call
305,165
21.02.2019 16:07:07
28,800
26fca7e1a976df04b5ae6ad6b94683879c9d893b
Add addLabel, addLabels, and removeLabel to telegrafConfigs
[ { "change_type": "MODIFY", "old_path": "src/api/api.ts", "new_path": "src/api/api.ts", "diff": "@@ -11166,10 +11166,13 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi\n/**\n*\n* @summary List all organizations\n+ * @param {string} [zapTraceSpan] OpenTracing span context\n+ * @param {string} [org] filter organizations to a specific organization name\n+ * @param {string} [orgID] filter organizations to a specific organization ID\n* @param {*} [options] Override http request option.\n* @throws {RequiredError}\n*/\n- orgsGet(options: any = {}): RequestArgs {\n+ orgsGet(zapTraceSpan?: string, org?: string, orgID?: string, options: any = {}): RequestArgs {\nconst localVarPath = `/orgs`;\nconst localVarUrlObj = url.parse(localVarPath, true);\nlet baseOptions;\n@@ -11180,6 +11183,18 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi\nconst localVarHeaderParameter = {} as any;\nconst localVarQueryParameter = {} as any;\n+ if (org !== undefined) {\n+ localVarQueryParameter['org'] = org;\n+ }\n+\n+ if (orgID !== undefined) {\n+ localVarQueryParameter['orgID'] = orgID;\n+ }\n+\n+ if (zapTraceSpan !== undefined && zapTraceSpan !== null) {\n+ localVarHeaderParameter['Zap-Trace-Span'] = String(zapTraceSpan);\n+ }\n+\nlocalVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);\n// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943\ndelete localVarUrlObj.search;\n@@ -11933,11 +11948,14 @@ export const OrganizationsApiFp = function(configuration?: Configuration) {\n/**\n*\n* @summary List all organizations\n+ * @param {string} [zapTraceSpan] OpenTracing span context\n+ * @param {string} [org] filter organizations to a specific organization name\n+ * @param {string} [orgID] filter organizations to a specific organization ID\n* @param {*} [options] Override http request option.\n* @throws {RequiredError}\n*/\n- orgsGet(options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Organizations> {\n- const localVarAxiosArgs = OrganizationsApiAxiosParamCreator(configuration).orgsGet(options);\n+ orgsGet(zapTraceSpan?: string, org?: string, orgID?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<Organizations> {\n+ const localVarAxiosArgs = OrganizationsApiAxiosParamCreator(configuration).orgsGet(zapTraceSpan, org, orgID, options);\nreturn (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\nconst axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url})\nreturn axios.request(axiosRequestArgs);\n@@ -12221,11 +12239,14 @@ export const OrganizationsApiFactory = function (configuration?: Configuration,\n/**\n*\n* @summary List all organizations\n+ * @param {string} [zapTraceSpan] OpenTracing span context\n+ * @param {string} [org] filter organizations to a specific organization name\n+ * @param {string} [orgID] filter organizations to a specific organization ID\n* @param {*} [options] Override http request option.\n* @throws {RequiredError}\n*/\n- orgsGet(options?: any) {\n- return OrganizationsApiFp(configuration).orgsGet(options)(axios, basePath);\n+ orgsGet(zapTraceSpan?: string, org?: string, orgID?: string, options?: any) {\n+ return OrganizationsApiFp(configuration).orgsGet(zapTraceSpan, org, orgID, options)(axios, basePath);\n},\n/**\n*\n@@ -12438,12 +12459,15 @@ export class OrganizationsApi extends BaseAPI {\n/**\n*\n* @summary List all organizations\n+ * @param {string} [zapTraceSpan] OpenTracing span context\n+ * @param {string} [org] filter organizations to a specific organization name\n+ * @param {string} [orgID] filter organizations to a specific organization ID\n* @param {*} [options] Override http request option.\n* @throws {RequiredError}\n* @memberof OrganizationsApi\n*/\n- public orgsGet(options?: any) {\n- return OrganizationsApiFp(this.configuration).orgsGet(options)(this.axios, this.basePath);\n+ public orgsGet(zapTraceSpan?: string, org?: string, orgID?: string, options?: any) {\n+ return OrganizationsApiFp(this.configuration).orgsGet(zapTraceSpan, org, orgID, options)(this.axios, this.basePath);\n}\n/**\n@@ -12968,8 +12992,8 @@ export const QueryApiAxiosParamCreator = function (configuration?: Configuration\n* @param {string} [zapTraceSpan] OpenTracing span context\n* @param {'text/csv' | 'application/vnd.influx.arrow'} [accept] specifies the return content format. Each response content type will have its own dialect options.\n* @param {'application/json' | 'application/vnd.flux'} [contentType]\n- * @param {string} [org] specifies the name of the organization executing the query.\n- * @param {string} [orgID] specifies the ID of the organization executing the query.\n+ * @param {string} [org] specifies the name of the organization executing the query; if both orgID and org are specified, orgID takes precendence.\n+ * @param {string} [orgID] specifies the ID of the organization executing the query; if both orgID and org are specified, orgID takes precendence.\n* @param {Query} [query] flux query or specification to execute\n* @param {*} [options] Override http request option.\n* @throws {RequiredError}\n@@ -13174,8 +13198,8 @@ export const QueryApiFp = function(configuration?: Configuration) {\n* @param {string} [zapTraceSpan] OpenTracing span context\n* @param {'text/csv' | 'application/vnd.influx.arrow'} [accept] specifies the return content format. Each response content type will have its own dialect options.\n* @param {'application/json' | 'application/vnd.flux'} [contentType]\n- * @param {string} [org] specifies the name of the organization executing the query.\n- * @param {string} [orgID] specifies the ID of the organization executing the query.\n+ * @param {string} [org] specifies the name of the organization executing the query; if both orgID and org are specified, orgID takes precendence.\n+ * @param {string} [orgID] specifies the ID of the organization executing the query; if both orgID and org are specified, orgID takes precendence.\n* @param {Query} [query] flux query or specification to execute\n* @param {*} [options] Override http request option.\n* @throws {RequiredError}\n@@ -13267,8 +13291,8 @@ export const QueryApiFactory = function (configuration?: Configuration, basePath\n* @param {string} [zapTraceSpan] OpenTracing span context\n* @param {'text/csv' | 'application/vnd.influx.arrow'} [accept] specifies the return content format. Each response content type will have its own dialect options.\n* @param {'application/json' | 'application/vnd.flux'} [contentType]\n- * @param {string} [org] specifies the name of the organization executing the query.\n- * @param {string} [orgID] specifies the ID of the organization executing the query.\n+ * @param {string} [org] specifies the name of the organization executing the query; if both orgID and org are specified, orgID takes precendence.\n+ * @param {string} [orgID] specifies the ID of the organization executing the query; if both orgID and org are specified, orgID takes precendence.\n* @param {Query} [query] flux query or specification to execute\n* @param {*} [options] Override http request option.\n* @throws {RequiredError}\n@@ -13349,8 +13373,8 @@ export class QueryApi extends BaseAPI {\n* @param {string} [zapTraceSpan] OpenTracing span context\n* @param {'text/csv' | 'application/vnd.influx.arrow'} [accept] specifies the return content format. Each response content type will have its own dialect options.\n* @param {'application/json' | 'application/vnd.flux'} [contentType]\n- * @param {string} [org] specifies the name of the organization executing the query.\n- * @param {string} [orgID] specifies the ID of the organization executing the query.\n+ * @param {string} [org] specifies the name of the organization executing the query; if both orgID and org are specified, orgID takes precendence.\n+ * @param {string} [orgID] specifies the ID of the organization executing the query; if both orgID and org are specified, orgID takes precendence.\n* @param {Query} [query] flux query or specification to execute\n* @param {*} [options] Override http request option.\n* @throws {RequiredError}\n@@ -18203,7 +18227,7 @@ export const TelegrafsApiFp = function(configuration?: Configuration) {\n* @param {*} [options] Override http request option.\n* @throws {RequiredError}\n*/\n- telegrafsTelegrafIDLabelsPost(telegrafID: string, labelMapping: LabelMapping, zapTraceSpan?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<LabelsResponse> {\n+ telegrafsTelegrafIDLabelsPost(telegrafID: string, labelMapping: LabelMapping, zapTraceSpan?: string, options?: any): (axios?: AxiosInstance, basePath?: string) => AxiosPromise<LabelResponse> {\nconst localVarAxiosArgs = TelegrafsApiAxiosParamCreator(configuration).telegrafsTelegrafIDLabelsPost(telegrafID, labelMapping, zapTraceSpan, options);\nreturn (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\nconst axiosRequestArgs = Object.assign(localVarAxiosArgs.options, {url: basePath + localVarAxiosArgs.url})\n" }, { "change_type": "MODIFY", "old_path": "src/wrappers/telegrafConfigs.ts", "new_path": "src/wrappers/telegrafConfigs.ts", "diff": "import { Organization, Telegraf, TelegrafPluginConfig, TelegrafRequest, TelegrafsApi } from \"../api\";\n+import { addLabelDefaults, Label } from \"./labels\";\nexport default class {\n@@ -61,4 +62,34 @@ export default class {\nreturn data as Response;\n}\n+\n+ public async addLabel(id: string, label: Label): Promise<Label> {\n+ if (!label.id) {\n+ throw new Error(\"label must have id\");\n+ }\n+\n+ const {data} = await this.service.telegrafsTelegrafIDLabelsPost(id, {labelID: label.id});\n+\n+ if (!data.label) {\n+ throw new Error(\"Failed to add label\");\n+ }\n+\n+ return addLabelDefaults(data.label);\n+ }\n+\n+ public async addLabels(id: string, labels: Label[]): Promise<Label[]> {\n+ const pendingLabels = labels.map((l) => this.addLabel(id, l));\n+\n+ return Promise.all(pendingLabels);\n+ }\n+\n+ public async removeLabel(id: string, label: Label): Promise<Response> {\n+ if (!label.id) {\n+ throw new Error(\"label must have id\");\n+ }\n+\n+ const {data} = await this.service.telegrafsTelegrafIDLabelsLabelIDDelete(id, label.id);\n+\n+ return data;\n+ }\n}\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add addLabel, addLabels, and removeLabel to telegrafConfigs
305,168
26.02.2019 13:45:56
28,800
46449a7e14bef31e45c58d4637c93346de83dfff
Update tasks wraper to include api call for logs for a run
[ { "change_type": "MODIFY", "old_path": "src/wrappers/tasks.ts", "new_path": "src/wrappers/tasks.ts", "diff": "-import { Run, Task, TasksApi, User } from \"../api\";\n+import { LogEvent, Run, Task, TasksApi, User } from \"../api\";\nimport { addLabelDefaults, Label } from \"./labels\";\nexport default class {\n@@ -21,13 +21,17 @@ export default class {\n}\npublic async getAll(): Promise<Task[]> {\n- const { data: { tasks } } = await this.service.tasksGet();\n+ const {\n+ data: { tasks },\n+ } = await this.service.tasksGet();\nreturn tasks || [];\n}\npublic async getAllByOrg(org: string): Promise<Task[]> {\n- const { data: { tasks } } = await this.service.tasksGet(undefined, undefined, undefined, org);\n+ const {\n+ data: { tasks },\n+ } = await this.service.tasksGet(undefined, undefined, undefined, org);\nreturn tasks || [];\n}\n@@ -40,7 +44,10 @@ export default class {\npublic async update(id: string, updates: Partial<Task>) {\nconst original = await this.get(id);\n- const { data: updated } = await this.service.tasksTaskIDPatch(id, { ...original, ...updates });\n+ const { data: updated } = await this.service.tasksTaskIDPatch(id, {\n+ ...original,\n+ ...updates,\n+ });\nreturn updated;\n}\n@@ -64,7 +71,9 @@ export default class {\nthrow new Error(\"label must have id\");\n}\n- const { data } = await this.service.tasksTaskIDLabelsPost(taskID, { labelID: label.id });\n+ const { data } = await this.service.tasksTaskIDLabelsPost(taskID, {\n+ labelID: label.id,\n+ });\nif (!data.label) {\nthrow new Error(\"API did not return a label\");\n@@ -78,7 +87,10 @@ export default class {\nthrow new Error(\"label must have id\");\n}\n- const { data } = await this.service.tasksTaskIDLabelsLabelIDDelete(taskID, label.id);\n+ const { data } = await this.service.tasksTaskIDLabelsLabelIDDelete(\n+ taskID,\n+ label.id,\n+ );\nreturn data;\n}\n@@ -96,7 +108,9 @@ export default class {\n}\npublic async getRunsByTaskID(taskID: string): Promise<Run[]> {\n- const { data: { runs } } = await this.service.tasksTaskIDRunsGet(taskID);\n+ const {\n+ data: { runs },\n+ } = await this.service.tasksTaskIDRunsGet(taskID);\nreturn runs || [];\n}\n@@ -107,6 +121,17 @@ export default class {\nreturn data;\n}\n+ public async getLogEventsByRunID(\n+ taskID: string,\n+ runID: string,\n+ ): Promise<LogEvent[]> {\n+ const {\n+ data: { events },\n+ } = await this.service.tasksTaskIDRunsRunIDLogsGet(taskID, runID);\n+\n+ return events || [];\n+ }\n+\npublic async clone(taskID: string): Promise<Task> {\nconst original = await this.get(taskID);\n@@ -121,13 +146,18 @@ export default class {\nreturn this.get(createdTask.id);\n}\n- private async cloneLabels(originalTask: Task, newTask: Task): Promise<Label[]> {\n+ private async cloneLabels(\n+ originalTask: Task,\n+ newTask: Task,\n+ ): Promise<Label[]> {\nif (!newTask || !newTask.id) {\nthrow new Error(\"Cannot create labels on invalid task\");\n}\nconst labels = originalTask.labels || [];\n- const pendingLabels = labels.map(async (label) => this.addLabel(newTask.id || \"\", addLabelDefaults(label)));\n+ const pendingLabels = labels.map(async (label) =>\n+ this.addLabel(newTask.id || \"\", addLabelDefaults(label)),\n+ );\nconst newLabels = await Promise.all(pendingLabels);\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Update tasks wraper to include api call for logs for a run
305,164
28.02.2019 12:16:53
28,800
fd3f6ef18e0fe26de53fd98c7de8227104d45d87
Add default values to dashboards
[ { "change_type": "MODIFY", "old_path": "src/wrappers/dashboards.ts", "new_path": "src/wrappers/dashboards.ts", "diff": "import { Cell, CellsApi, Dashboard, DashboardsApi, Label, ProtosApi, View } from \"../api\";\n+interface IDashboard extends Dashboard {\n+ orgID: string;\n+ id: string;\n+ name: string;\n+ labels: Label[];\n+ cells: Cell[];\n+}\n+\n+const addDefaults = (dashboard: Dashboard): IDashboard => {\n+ return {\n+ ...dashboard,\n+ cells: dashboard.cells || [],\n+ id: dashboard.id || \"\",\n+ labels: dashboard.labels || [],\n+ name: dashboard.name || \"\",\n+ orgID: dashboard.orgID || \"\",\n+ };\n+};\n+\n+const addDefaultsToAll = (dashboards: Dashboard[]): IDashboard[] => {\n+ return dashboards.map((dashboard) => (\n+ addDefaults(dashboard)\n+ ));\n+};\n+\nexport default class {\nprivate service: DashboardsApi;\nprivate cellsService: CellsApi;\n@@ -20,26 +45,26 @@ export default class {\npublic async getAll(): Promise<Dashboard[]> {\nconst {data} = await this.service.dashboardsGet(undefined);\n- return data.dashboards || [];\n+ return addDefaultsToAll(data.dashboards || []);\n}\npublic async getAllByOrg(org: string): Promise<Dashboard[]> {\nconst {data} = await this.service.dashboardsGet(org);\n- return data.dashboards || [];\n+ return addDefaultsToAll(data.dashboards || []);\n}\n- public async create(props: Dashboard): Promise<Dashboard> {\n+ public async create(props: Dashboard): Promise<IDashboard> {\nconst {data} = await this.service.dashboardsPost(props);\n- return data;\n+ return addDefaults(data);\n}\n- public async update(id: string, props: Partial<Dashboard>): Promise<Dashboard> {\n+ public async update(id: string, props: Partial<Dashboard>): Promise<IDashboard> {\nconst original = await this.get(id);\nconst {data} = await this.service.dashboardsDashboardIDPatch(id, {...original, ...props});\n- return data;\n+ return addDefaults(data);\n}\npublic async delete(id: string): Promise<Response> {\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add default values to dashboards Co-authored-by: Delmer Reed <delmer814+1@gmail.com>
305,164
28.02.2019 12:17:54
28,800
c92ba59dd9150d1fada826ad29ae747bdae896ef
Add vet script
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"test\": \"echo \\\"Error: no test specified\\\" && exit 1\",\n\"generate\": \"openapi-generator generate -g typescript-axios -o src/api -i https://raw.githubusercontent.com/influxdata/influxdb/master/http/swagger.yml\",\n\"build\": \"rm -rf dist && tsc\",\n- \"lint\": \"tslint --project .\"\n+ \"lint\": \"tslint --project .\",\n+ \"vet\": \"npm run lint && npm run build\"\n},\n\"types\": \"index.d.ts\",\n\"keywords\": [\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add vet script
305,164
28.02.2019 13:51:03
28,800
f32a649e41ed65dff69d0c4c393e4b5e815a42ff
Add defaults to buckets
[ { "change_type": "MODIFY", "old_path": "src/types/index.ts", "new_path": "src/types/index.ts", "diff": "+import {Bucket, Cell, Dashboard, Label} from \"../api\";\n+import { Label as APILabel } from \"../api\";\n+\n+interface ILabelProperties {\n+ color: string;\n+ description?: string;\n+}\n+\n+export interface ILabel extends APILabel {\n+ properties: ILabelProperties;\n+}\n+\nexport interface ISetupParams {\nusername: string;\npassword: string;\n@@ -5,4 +17,16 @@ export interface ISetupParams {\nbucket: string;\n}\n+export interface IBucket extends Bucket {\n+ labels: ILabel[];\n+}\n+\n+export interface IDashboard extends Dashboard {\n+ orgID: string;\n+ id: string;\n+ name: string;\n+ labels: Label[];\n+ cells: Cell[];\n+}\n+\nexport * from \"./ast\";\n" }, { "change_type": "MODIFY", "old_path": "src/wrappers/buckets.ts", "new_path": "src/wrappers/buckets.ts", "diff": "import {Bucket, BucketsApi} from \"../api\";\n+import {IBucket} from \"../types\";\n+import {addLabelDefaults} from \"./labels\";\n+\n+const addDefaults = (bucket: Bucket): IBucket => ({\n+ ...bucket,\n+ labels: (bucket.labels || []).map(addLabelDefaults),\n+});\n+\n+const addDefaultsToAll = (buckets: Bucket[]): IBucket[] => (\n+ buckets.map(addDefaults)\n+);\nexport default class {\nprivate service: BucketsApi;\n@@ -7,29 +18,29 @@ export default class {\nthis.service = new BucketsApi({basePath});\n}\n- public async get(id: string): Promise<Bucket> {\n+ public async get(id: string): Promise<IBucket> {\nconst {data} = await this.service.bucketsBucketIDGet(id);\n- return data;\n+ return addDefaults(data);\n}\n- public async getAllByOrg(org: string): Promise<Bucket[]> {\n+ public async getAllByOrg(org: string): Promise<IBucket[]> {\nconst {data: {buckets}} = await this.service.bucketsGet(undefined, undefined, undefined, org);\n- return buckets || [];\n+ return addDefaultsToAll(buckets || []);\n}\n- public async create(bucket: Bucket): Promise<Bucket> {\n+ public async create(bucket: Bucket): Promise<IBucket> {\nconst {data} = await this.service.bucketsPost(bucket);\n- return data;\n+ return addDefaults(data);\n}\n- public async update(id: string, bucket: Partial<Bucket>): Promise<Bucket> {\n+ public async update(id: string, bucket: Partial<Bucket>): Promise<IBucket> {\nconst original = await this.get(id);\nconst {data} = await this.service.bucketsBucketIDPatch(id, {...original, ...bucket});\n- return data;\n+ return addDefaults(data);\n}\npublic async delete(id: string): Promise<Response> {\n" }, { "change_type": "MODIFY", "old_path": "src/wrappers/dashboards.ts", "new_path": "src/wrappers/dashboards.ts", "diff": "import { Cell, CellsApi, Dashboard, DashboardsApi, Label, ProtosApi, View } from \"../api\";\n+import {IDashboard, ILabel} from \"../types\";\n+import {addLabelDefaults} from \"./labels\";\n+\n+const addDefaults = (dashboard: Dashboard): IDashboard => {\n+ return {\n+ ...dashboard,\n+ cells: dashboard.cells || [],\n+ id: dashboard.id || \"\",\n+ labels: dashboard.labels || [],\n+ name: dashboard.name || \"\",\n+ orgID: dashboard.orgID || \"\",\n+ };\n+};\n+\n+const addDefaultsToAll = (dashboards: Dashboard[]): IDashboard[] => {\n+ return dashboards.map((dashboard) => (\n+ addDefaults(dashboard)\n+ ));\n+};\ninterface IDashboard extends Dashboard {\norgID: string;\n@@ -153,7 +172,7 @@ export default class {\n}\n- private async cloneLabels(originalDashboard: Dashboard, newDashboard: Dashboard): Promise<Label[]> {\n+ private async cloneLabels(originalDashboard: Dashboard, newDashboard: Dashboard): Promise<ILabel[]> {\nif (!newDashboard || !newDashboard.id) {\nthrow new Error(\"Cannot create labels on invalid dashboard\");\n}\n@@ -163,7 +182,7 @@ export default class {\nconst newLabels = await Promise.all(pendingLabels);\n- return newLabels.filter((l) => !!l) as Label[];\n+ return newLabels.filter((l) => !!l).map(addLabelDefaults);\n}\nprivate async cloneViews(originalDashboard: Dashboard, newDashboard: Dashboard ): Promise<View[]> {\n@@ -187,6 +206,6 @@ export default class {\n});\nconst newViews = await Promise.all(pendingUpdatedViews);\n- return newViews.filter((v) => !!v) as View[];\n+ return newViews.filter((v): v is View => !!v);\n}\n}\n" }, { "change_type": "MODIFY", "old_path": "src/wrappers/labels.ts", "new_path": "src/wrappers/labels.ts", "diff": "import { Label as APILabel, LabelsApi } from \"../api\";\n+import {ILabel} from \"../types\";\nconst DEFAULT_LABEL_COLOR = \"#326BBA\";\n@@ -7,7 +8,7 @@ interface ILabelProperties {\ndescription?: string;\n}\n-export const addLabelDefaults = (l: APILabel): Label => ({\n+export const addLabelDefaults = (l: APILabel): ILabel => ({\n...l,\nproperties: {\n...l.properties,\n@@ -16,8 +17,6 @@ export const addLabelDefaults = (l: APILabel): Label => ({\n},\n});\n-export type Label = APILabel & {properties: ILabelProperties};\n-\nexport default class {\nprivate service: LabelsApi;\n@@ -25,7 +24,7 @@ export default class {\nthis.service = new LabelsApi({ basePath });\n}\n- public async get(id: string): Promise<Label> {\n+ public async get(id: string): Promise<ILabel> {\nconst {data: {label}} = await this.service.labelsLabelIDGet(id);\nif (!label) {\n@@ -35,13 +34,13 @@ export default class {\nreturn addLabelDefaults(label);\n}\n- public async getAll(): Promise<Label[]> {\n+ public async getAll(): Promise<ILabel[]> {\nconst {data: {labels}} = await this.service.labelsGet();\nreturn (labels || []).map(addLabelDefaults);\n}\n- public async create(name: string, properties: ILabelProperties): Promise<Label> {\n+ public async create(name: string, properties: ILabelProperties): Promise<ILabel> {\nconst {data: { label }} = await this.service.labelsPost({name, properties});\nif (!label) {\n@@ -51,7 +50,7 @@ export default class {\nreturn addLabelDefaults(label);\n}\n- public async update(id: string, properties: ILabelProperties) {\n+ public async update(id: string, properties: ILabelProperties): Promise<ILabel> {\nconst {data: {label}} = await this.service.labelsLabelIDPatch(id, {properties});\nif (!label) {\n" }, { "change_type": "MODIFY", "old_path": "src/wrappers/tasks.ts", "new_path": "src/wrappers/tasks.ts", "diff": "import { LogEvent, Run, Task, TasksApi, User } from \"../api\";\n-import { addLabelDefaults, Label } from \"./labels\";\n+import {ILabel} from \"../types\";\n+import {addLabelDefaults} from \"./labels\";\nexport default class {\nprivate service: TasksApi;\n@@ -66,7 +67,7 @@ export default class {\nreturn data;\n}\n- public async addLabel(taskID: string, label: Label): Promise<Label> {\n+ public async addLabel(taskID: string, label: ILabel): Promise<ILabel> {\nif (!label.id) {\nthrow new Error(\"label must have id\");\n}\n@@ -82,7 +83,7 @@ export default class {\nreturn addLabelDefaults(data.label);\n}\n- public async removeLabel(taskID: string, label: Label): Promise<Response> {\n+ public async removeLabel(taskID: string, label: ILabel): Promise<Response> {\nif (!label.id) {\nthrow new Error(\"label must have id\");\n}\n@@ -95,13 +96,13 @@ export default class {\nreturn data;\n}\n- public addLabels(taskID: string, labels: Label[]): Promise<Label[]> {\n+ public addLabels(taskID: string, labels: ILabel[]): Promise<ILabel[]> {\nconst promises = labels.map((l) => this.addLabel(taskID, l));\nreturn Promise.all(promises);\n}\n- public removeLabels(taskID: string, labels: Label[]): Promise<Response[]> {\n+ public removeLabels(taskID: string, labels: ILabel[]): Promise<Response[]> {\nconst promises = labels.map((l) => this.removeLabel(taskID, l));\nreturn Promise.all(promises);\n@@ -149,7 +150,7 @@ export default class {\nprivate async cloneLabels(\noriginalTask: Task,\nnewTask: Task,\n- ): Promise<Label[]> {\n+ ): Promise<ILabel[]> {\nif (!newTask || !newTask.id) {\nthrow new Error(\"Cannot create labels on invalid task\");\n}\n" }, { "change_type": "MODIFY", "old_path": "src/wrappers/telegrafConfigs.ts", "new_path": "src/wrappers/telegrafConfigs.ts", "diff": "import { Organization, Telegraf, TelegrafPluginConfig, TelegrafRequest, TelegrafsApi } from \"../api\";\n-import { addLabelDefaults, Label } from \"./labels\";\n+import {ILabel} from \"../types\";\n+import { addLabelDefaults} from \"./labels\";\nexport default class {\n@@ -63,7 +64,7 @@ export default class {\nreturn data as Response;\n}\n- public async addLabel(id: string, label: Label): Promise<Label> {\n+ public async addLabel(id: string, label: ILabel): Promise<ILabel> {\nif (!label.id) {\nthrow new Error(\"label must have id\");\n}\n@@ -77,13 +78,13 @@ export default class {\nreturn addLabelDefaults(data.label);\n}\n- public async addLabels(id: string, labels: Label[]): Promise<Label[]> {\n+ public async addLabels(id: string, labels: ILabel[]): Promise<ILabel[]> {\nconst pendingLabels = labels.map((l) => this.addLabel(id, l));\nreturn Promise.all(pendingLabels);\n}\n- public async removeLabel(id: string, label: Label): Promise<Response> {\n+ public async removeLabel(id: string, label: ILabel): Promise<Response> {\nif (!label.id) {\nthrow new Error(\"label must have id\");\n}\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add defaults to buckets
305,164
28.02.2019 13:53:42
28,800
b11c2433813fa5e3406c498e16062a06002abf6d
Add label defaults to dashboard labels
[ { "change_type": "MODIFY", "old_path": "src/types/index.ts", "new_path": "src/types/index.ts", "diff": "-import {Bucket, Cell, Dashboard, Label} from \"../api\";\n+import {Bucket, Cell, Dashboard} from \"../api\";\nimport { Label as APILabel } from \"../api\";\ninterface ILabelProperties {\n@@ -25,7 +25,7 @@ export interface IDashboard extends Dashboard {\norgID: string;\nid: string;\nname: string;\n- labels: Label[];\n+ labels: ILabel[];\ncells: Cell[];\n}\n" }, { "change_type": "MODIFY", "old_path": "src/wrappers/dashboards.ts", "new_path": "src/wrappers/dashboards.ts", "diff": "-import { Cell, CellsApi, Dashboard, DashboardsApi, Label, ProtosApi, View } from \"../api\";\n+import { Cell, CellsApi, Dashboard, DashboardsApi, ProtosApi, View } from \"../api\";\nimport {IDashboard, ILabel} from \"../types\";\nimport {addLabelDefaults} from \"./labels\";\n@@ -7,32 +7,7 @@ const addDefaults = (dashboard: Dashboard): IDashboard => {\n...dashboard,\ncells: dashboard.cells || [],\nid: dashboard.id || \"\",\n- labels: dashboard.labels || [],\n- name: dashboard.name || \"\",\n- orgID: dashboard.orgID || \"\",\n- };\n-};\n-\n-const addDefaultsToAll = (dashboards: Dashboard[]): IDashboard[] => {\n- return dashboards.map((dashboard) => (\n- addDefaults(dashboard)\n- ));\n-};\n-\n-interface IDashboard extends Dashboard {\n- orgID: string;\n- id: string;\n- name: string;\n- labels: Label[];\n- cells: Cell[];\n-}\n-\n-const addDefaults = (dashboard: Dashboard): IDashboard => {\n- return {\n- ...dashboard,\n- cells: dashboard.cells || [],\n- id: dashboard.id || \"\",\n- labels: dashboard.labels || [],\n+ labels: (dashboard.labels || []).map(addLabelDefaults),\nname: dashboard.name || \"\",\norgID: dashboard.orgID || \"\",\n};\n@@ -122,7 +97,7 @@ export default class {\nreturn data.cells || [];\n}\n- public async createLabel(dashboardID: string, labelID: string): Promise<Label> {\n+ public async createLabel(dashboardID: string, labelID: string): Promise<ILabel> {\nconst {data} = await this.service.dashboardsDashboardIDLabelsPost(dashboardID, {\nlabelID,\n});\n@@ -131,7 +106,7 @@ export default class {\nthrow new Error(\"Failed to create label\");\n}\n- return data.label;\n+ return addLabelDefaults(data.label);\n}\npublic async deleteLabel(dashboardID: string, labelID: string): Promise<Response> {\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add label defaults to dashboard labels
305,164
28.02.2019 14:13:50
28,800
1b95204807a5b4dd23ce8a9ddc645196c00a779b
Add defaults to tasks
[ { "change_type": "MODIFY", "old_path": "src/types/index.ts", "new_path": "src/types/index.ts", "diff": "-import {Bucket, Cell, Dashboard} from \"../api\";\n+import {Bucket, Cell, Dashboard, Task} from \"../api\";\nimport { Label as APILabel } from \"../api\";\ninterface ILabelProperties {\n@@ -21,6 +21,10 @@ export interface IBucket extends Bucket {\nlabels: ILabel[];\n}\n+export interface ITask extends Task {\n+ labels: ILabel[];\n+}\n+\nexport interface IDashboard extends Dashboard {\norgID: string;\nid: string;\n" }, { "change_type": "MODIFY", "old_path": "src/wrappers/tasks.ts", "new_path": "src/wrappers/tasks.ts", "diff": "import { LogEvent, Run, Task, TasksApi, User } from \"../api\";\n-import {ILabel} from \"../types\";\n+import {ILabel, ITask} from \"../types\";\nimport {addLabelDefaults} from \"./labels\";\n+const addDefaults = (task: Task): ITask => {\n+ return {\n+ ...task,\n+ labels: (task.labels || []).map(addLabelDefaults),\n+ };\n+};\n+\n+const addDefaultsToAll = (tasks: Task[]): ITask[] => (\n+ tasks.map((task) => addDefaults(task))\n+);\n+\nexport default class {\nprivate service: TasksApi;\n@@ -9,55 +20,55 @@ export default class {\nthis.service = new TasksApi({ basePath });\n}\n- public async create(org: string, script: string): Promise<Task> {\n+ public async create(org: string, script: string): Promise<ITask> {\nconst { data } = await this.service.tasksPost({ org, flux: script });\n- return data;\n+ return addDefaults(data);\n}\n- public async get(id: string): Promise<Task> {\n+ public async get(id: string): Promise<ITask> {\nconst { data } = await this.service.tasksTaskIDGet(id);\n- return data;\n+ return addDefaults(data);\n}\n- public async getAll(): Promise<Task[]> {\n+ public async getAll(): Promise<ITask[]> {\nconst {\ndata: { tasks },\n} = await this.service.tasksGet();\n- return tasks || [];\n+ return addDefaultsToAll(tasks || []);\n}\n- public async getAllByOrg(org: string): Promise<Task[]> {\n+ public async getAllByOrg(org: string): Promise<ITask[]> {\nconst {\ndata: { tasks },\n} = await this.service.tasksGet(undefined, undefined, undefined, org);\n- return tasks || [];\n+ return addDefaultsToAll(tasks || []);\n}\n- public async getAllByUser(user: User): Promise<Task[]> {\n+ public async getAllByUser(user: User): Promise<ITask[]> {\nconst { data } = await this.service.tasksGet(undefined, undefined, user.id);\n- return data.tasks || [];\n+ return addDefaultsToAll(data.tasks || []);\n}\n- public async update(id: string, updates: Partial<Task>) {\n+ public async update(id: string, updates: Partial<Task>): Promise<ITask> {\nconst original = await this.get(id);\nconst { data: updated } = await this.service.tasksTaskIDPatch(id, {\n...original,\n...updates,\n});\n- return updated;\n+ return addDefaults(updated);\n}\npublic updateStatus(id: string, status: Task.StatusEnum): Promise<Task> {\nreturn this.update(id, { status });\n}\n- public updateScript(id: string, script: string): Promise<Task> {\n+ public updateScript(id: string, script: string): Promise<ITask> {\nreturn this.update(id, { flux: script });\n}\n@@ -133,7 +144,7 @@ export default class {\nreturn events || [];\n}\n- public async clone(taskID: string): Promise<Task> {\n+ public async clone(taskID: string): Promise<ITask> {\nconst original = await this.get(taskID);\nconst createdTask = await this.create(original.org || \"\", original.flux);\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Add defaults to tasks
305,164
28.02.2019 15:28:19
28,800
f9b38cbd9e1e62de585584bbaadf1c2227a03c02
Safer typing of IDashboard use typescript to avoid drift from API
[ { "change_type": "MODIFY", "old_path": "src/types/index.ts", "new_path": "src/types/index.ts", "diff": "@@ -25,12 +25,12 @@ export interface ITask extends Task {\nlabels: ILabel[];\n}\n-export interface IDashboard extends Dashboard {\n- orgID: string;\n- id: string;\n- name: string;\n+type DashboardPicked = Pick<Dashboard, \"orgID\" | \"id\" | \"name\" | \"cells\">;\n+type DashboardOriginal = Pick<Dashboard, Exclude<keyof Dashboard, \"orgID\" | \"id\" | \"name\" | \"cells\">>;\n+type DashboardRequired = {[P in keyof DashboardPicked]-?: DashboardPicked[P]};\n+\n+export interface IDashboard extends DashboardOriginal, DashboardRequired {\nlabels: ILabel[];\n- cells: Cell[];\n}\nexport * from \"./ast\";\n" } ]
TypeScript
MIT License
influxdata/influxdb-client-js
Safer typing of IDashboard use typescript to avoid drift from API Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>