This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb-extras.git
The following commit(s) were added to refs/heads/master by this push:
new a17d250 chore: Modev the github actions build for the grafana plugin
to the new repository.
a17d250 is described below
commit a17d2509696610c4a33e6985414fac2c3c286b09
Author: Christofer Dutz <[email protected]>
AuthorDate: Mon Apr 15 13:25:55 2024 +0200
chore: Modev the github actions build for the grafana plugin to the new
repository.
---
.github/ISSUE_TEMPLATE/bug_report.yml | 85 ++++++++++++++++++++++++++++++
.github/ISSUE_TEMPLATE/custom.md | 7 +++
.github/ISSUE_TEMPLATE/feature_request.yml | 66 +++++++++++++++++++++++
.github/dependabot.yml | 45 ++++++++++++++++
.github/pull_request_template.md | 60 +++++++++++++++++++++
.github/workflows/grafana-plugin.yml | 68 ++++++++++++++++++++++++
.github/workflows/greetings.yml | 14 +++++
.gitignore | 6 +++
8 files changed, 351 insertions(+)
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml
b/.github/ISSUE_TEMPLATE/bug_report.yml
new file mode 100644
index 0000000..5614507
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -0,0 +1,85 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+name: Bug report
+description: Create a report to help us improve
+title: "[Bug] "
+labels: [ "type/bug" ]
+body:
+ - type: markdown
+ attributes:
+ value: |
+ Thank you very much for your feedback!
+
+ For suggestions or help, please consider:
+ 1. [User Mail List](mailto:[email protected])
([subscribe](mailto:[email protected]));
+ 2. [Github Discussion](https://github.com/apache/iotdb/discussions).
+
+ - type: checkboxes
+ attributes:
+ label: Search before asking
+ description: >
+ Please search [issues](https://github.com/apache/iotdb/issues) to
check if your issue has already been reported.
+ options:
+ - label: >
+ I searched in the [issues](https://github.com/apache/iotdb/issues)
and found nothing similar.
+ required: true
+
+ - type: textarea
+ attributes:
+ label: Version
+ description: >
+ Please provide the OS and IoTDB version you are using. If you are
using the master branch, please provide the commit id.
+ validations:
+ required: true
+
+ - type: textarea
+ attributes:
+ label: Describe the bug and provide the minimal reproduce step
+ description: >
+ Screenshots and reproducing steps help to locate of the problem
quickly.
+ validations:
+ required: true
+
+ - type: textarea
+ attributes:
+ label: What did you expect to see?
+ validations:
+ required: true
+
+ - type: textarea
+ attributes:
+ label: What did you see instead?
+ validations:
+ required: true
+
+ - type: textarea
+ attributes:
+ description: >
+ Add any other context about the problem here.
+ label: Anything else?
+
+ - type: checkboxes
+ attributes:
+ label: Are you willing to submit a PR?
+ description: >
+ We look forward to the community of developers or users helping solve
IoTDB problems together. If you are willing to submit a PR to fix this problem,
please check the box.
+ options:
+ - label: I'm willing to submit a PR!
+ - type: markdown
+ attributes:
+ value: "Thanks for completing our form!"
\ No newline at end of file
diff --git a/.github/ISSUE_TEMPLATE/custom.md b/.github/ISSUE_TEMPLATE/custom.md
new file mode 100644
index 0000000..99bb9a0
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/custom.md
@@ -0,0 +1,7 @@
+---
+name: Custom issue template
+about: Describe this issue template's purpose here.
+
+---
+
+
diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml
b/.github/ISSUE_TEMPLATE/feature_request.yml
new file mode 100644
index 0000000..8ebfa38
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.yml
@@ -0,0 +1,66 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+
+name: Feature request
+description: Suggest an idea for this project
+title: "[Feature request] "
+labels: [ "type/feature-request" ]
+body:
+ - type: markdown
+ attributes:
+ value: |
+ Thank you very much for your enhancement!
+
+ - type: checkboxes
+ attributes:
+ label: Search before asking
+ description: >
+ Please search [issues](https://github.com/apache/iotdb/issues) to
check if your issue has already been reported.
+ options:
+ - label: >
+ I searched in the [issues](https://github.com/apache/iotdb/issues)
and found nothing similar.
+ required: true
+
+ - type: textarea
+ attributes:
+ label: Motivation
+ description: Describe the motivations for this enhancement. Ex. I'm
always frustrated when [...]
+ validations:
+ required: true
+
+ - type: textarea
+ attributes:
+ label: Solution
+ description: Describe the proposed solution and add related materials
like links if any.
+
+ - type: textarea
+ attributes:
+ label: Alternatives
+ description: Describe other alternative solutions or features you
considered.
+
+ - type: checkboxes
+ attributes:
+ label: Are you willing to submit a PR?
+ description: >
+ We look forward to the community of developers or users helping solve
IoTDB problems together. If you are willing to submit a PR to implement the
enhancement, please check the box.
+ options:
+ - label: I'm willing to submit a PR!
+
+ - type: markdown
+ attributes:
+ value: "Thanks for completing our form!"
\ No newline at end of file
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..a50a77a
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,45 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+version: 2
+
+updates:
+ - package-ecosystem: maven
+ directory: "/"
+ schedule:
+ interval: monthly
+ target-branch: "master"
+ ignore:
+ - dependency-name: "*"
+ update-types: [ "version-update:semver-major",
"version-update:semver-minor" ]
+ labels:
+ - "dependencies"
+ - "java"
+
+
+ - package-ecosystem: "github-actions"
+ directory: "/"
+ schedule:
+ interval: monthly
+ target-branch: "master"
+ ignore:
+ - dependency-name: "*"
+ update-types: [ "version-update:semver-major",
"version-update:semver-minor" ]
+ labels:
+ - "dependencies"
+ - "github_actions"
+
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
new file mode 100644
index 0000000..47578f6
--- /dev/null
+++ b/.github/pull_request_template.md
@@ -0,0 +1,60 @@
+## Description
+
+
+### Content1 ...
+
+### Content2 ...
+
+### Content3 ...
+
+<!--
+In each section, please describe design decisions made, including:
+ - Choice of algorithms
+ - Behavioral aspects. What configuration values are acceptable? How are
corner cases and error
+ conditions handled, such as when there are insufficient resources?
+ - Class organization and design (how the logic is split between classes,
inheritance, composition,
+ design patterns)
+ - Method organization and design (how the logic is split between methods,
parameters and return types)
+ - Naming (class, method, API, configuration, HTTP endpoint, names of emitted
metrics)
+-->
+
+
+<!-- It's good to describe an alternative design (or mention an alternative
name) for every design
+(or naming) decision point and compare the alternatives with the designs that
you've implemented
+(or the names you've chosen) to highlight the advantages of the chosen designs
and names. -->
+
+<!-- If there was a discussion of the design of the feature implemented in
this PR elsewhere
+(e. g. a "Proposal" issue, any other issue, or a thread in the development
mailing list),
+link to that discussion from this PR description and explain what have changed
in your final design
+compared to your original proposal or the consensus version in the end of the
discussion.
+If something hasn't changed since the original discussion, you can omit a
detailed discussion of
+those aspects of the design here, perhaps apart from brief mentioning for the
sake of readability
+of this PR description. -->
+
+<!-- Some of the aspects mentioned above may be omitted for simple and small
changes. -->
+
+<hr>
+
+This PR has:
+- [ ] been self-reviewed.
+ - [ ] concurrent read
+ - [ ] concurrent write
+ - [ ] concurrent read and write
+- [ ] added documentation for new or modified features or behaviors.
+- [ ] added Javadocs for most classes and all non-trivial methods.
+- [ ] added or updated version, __license__, or notice information
+- [ ] added comments explaining the "why" and the intent of the code wherever
would not be obvious
+ for an unfamiliar reader.
+- [ ] added unit tests or modified existing tests to cover new code paths,
ensuring the threshold
+ for code coverage.
+- [ ] added integration tests.
+- [ ] been tested in a test IoTDB cluster.
+
+<!-- Check the items by putting "x" in the brackets for the done things. Not
all of these items
+apply to every PR. Remove the items which are not done or not relevant to the
PR. None of the items
+from the checklist above are strictly necessary, but it would be very helpful
if you at least
+self-review the PR. -->
+
+<hr>
+
+##### Key changed/added classes (or packages if there are too many classes) in
this PR
diff --git a/.github/workflows/grafana-plugin.yml
b/.github/workflows/grafana-plugin.yml
new file mode 100644
index 0000000..b844d48
--- /dev/null
+++ b/.github/workflows/grafana-plugin.yml
@@ -0,0 +1,68 @@
+name: Grafana plugin build
+
+on:
+ push:
+ branches:
+ - master
+ - "new_*"
+ paths:
+ - 'iotdb-connector/grafana-plugin/**'
+ pull_request:
+ branches:
+ - master
+ - "new_*"
+ paths:
+ - 'iotdb-connector/grafana-plugin/**'
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Setup Node.js environment
+ uses: actions/setup-node@v4
+ with:
+ node-version: "14.x"
+
+ - name: Setup Go environment
+ uses: actions/setup-go@v5
+ with:
+ go-version: "1.21"
+
+ - name: Get yarn cache directory path
+ id: yarn-cache-dir-path
+ run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
+
+ - name: Cache yarn cache
+ uses: actions/cache@v4
+ id: cache-yarn-cache
+ with:
+ path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
+ key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
+ restore-keys: |
+ ${{ runner.os }}-yarn-
+
+ - name: Cache node_modules
+ id: cache-node-modules
+ uses: actions/cache@v4
+ with:
+ path: node_modules
+ key: ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-${{
hashFiles('**/yarn.lock') }}
+ restore-keys: |
+ ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-
+
+ - name: Install dependencies and Build and test frontend
+ run: |
+ cd iotdb-connector/grafana-plugin/
+ yarn install --frozen-lockfile
+ yarn build
+
+ - name: Install dependencies and Build backend
+ run: |
+ cd iotdb-connector/grafana-plugin/
+ ./backend-compile.sh
diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml
new file mode 100644
index 0000000..93cf5ff
--- /dev/null
+++ b/.github/workflows/greetings.yml
@@ -0,0 +1,14 @@
+name: Greetings
+
+on: [issues, pull_request_target]
+
+jobs:
+ greeting:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/[email protected]
+ continue-on-error: true
+ with:
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
+ issue-message: 'Hi, this is your first issue in IoTDB project. Thanks
for your report. Welcome to join the community!'
+ pr-message: 'Hi, this is your first pull request in IoTDB project.
Thanks for your contribution! IoTDB will be better because of you.'
diff --git a/.gitignore b/.gitignore
index 2f7896d..e8ef7a9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,7 @@
+
+# Maven related
target/
+
+# IntelliJ relaged
+.idea/
+*.iml
\ No newline at end of file