Skip to content

Commit 9f2626a

Browse files
authored
release(minor): fixes
#### Fixes: - Trimming BOM characters when importing from a JSON endpoint - Refreshing page while charts are still loading causes them not to render at all - Issue with jQuery.fn.load() is deprecated but still used - Permissions tab disappears after a user modifies a chart's data #728 - Conflict with Edit Flow plugin - Improve compatibility with Ninja Forms - Fix for color for Minor Grid Lines not working #### Features - Add support for key:value header to access JSON endpoints - Option to download CSV data of the chart without the row with series type
2 parents 8d0d4e4 + dbe0f40 commit 9f2626a

File tree

92 files changed

+19658
-469
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+19658
-469
lines changed

.distignore

100644100755
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.git
22
.distignore
33
.gitignore
4-
.travis.yml
54
.jshintrc
65
Gruntfile.js
76
grunt
@@ -18,11 +17,12 @@ artifact
1817
composer.json
1918
composer.lock
2019
package-lock.json
21-
key.enc
2220
vendor/phpoffice/phpexcel/Examples
2321
vendor/phpoffice/phpexcel/unitTests
2422
cypress
25-
docker-compose.travis.yml
26-
cypress.env.json.template
2723
cypress.json
28-
.github
24+
.github
25+
.idea
26+
.wordpress-org
27+
.releaserc.yml
28+
docker-compose.ci.yml

.github/ISSUE_TEMPLATE/Bug_report.md

100644100755
File mode changed.

.github/ISSUE_TEMPLATE/Feature_request.md

100644100755
File mode changed.
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
name: Build artifact
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, ready_for_review]
6+
7+
8+
jobs:
9+
dev-zip:
10+
name: Build ZIP and upload to s3
11+
if: github.event.pull_request.draft == false && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
12+
runs-on: ubuntu-latest
13+
outputs:
14+
branch-name: ${{ steps.retrieve-branch-name.outputs.branch_name }}
15+
git-sha-8: ${{ steps.retrieve-git-sha-8.outputs.sha8 }}
16+
steps:
17+
- name: Check out source files
18+
uses: actions/checkout@v2
19+
- name: Get Composer Cache Directory
20+
id: composer-cache
21+
run: |
22+
echo "::set-output name=dir::$(composer config cache-files-dir)"
23+
- name: Configure Composer cache
24+
uses: actions/cache@v1
25+
with:
26+
path: ${{ steps.composer-cache.outputs.dir }}
27+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
28+
restore-keys: |
29+
${{ runner.os }}-composer-
30+
- name: Install composer deps
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
33+
run: |
34+
composer install --no-dev --prefer-dist --no-progress
35+
- name: Create zip
36+
run: npm run dist
37+
- name: Retrieve branch name
38+
id: retrieve-branch-name
39+
run: echo "::set-output name=branch_name::$(REF=${GITHUB_HEAD_REF:-$GITHUB_REF} && echo ${REF#refs/heads/} | sed 's/\//-/g')"
40+
- name: Retrieve git SHA-8 string
41+
id: retrieve-git-sha-8
42+
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
43+
- name: Upload Latest Version to S3
44+
uses: jakejarvis/s3-sync-action@master
45+
with:
46+
args: --acl public-read --follow-symlinks --delete
47+
env:
48+
AWS_S3_BUCKET: ${{ secrets.AWS_DEV_BUCKET }}
49+
AWS_ACCESS_KEY_ID: ${{ secrets.S3_AWS_KEY_ARTIFACTS }}
50+
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_AWS_SECRET_ARTIFACTS }}
51+
SOURCE_DIR: artifact/
52+
DEST_DIR: ${{ github.event.pull_request.base.repo.name }}-${{ steps.retrieve-branch-name.outputs.branch_name }}-${{ steps.retrieve-git-sha-8.outputs.sha8 }}/
53+
54+
comment-on-pr:
55+
name: Comment on PR with links to plugin ZIPs
56+
if: ${{ github.head_ref && github.head_ref != null }}
57+
runs-on: ubuntu-latest
58+
needs: dev-zip
59+
env:
60+
CI: true
61+
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
62+
outputs:
63+
pr_number: ${{ steps.get-pr-number.outputs.num }}
64+
comment_body: ${{ steps.get-comment-body.outputs.body }}
65+
steps:
66+
- name: Get PR number
67+
id: get-pr-number
68+
run: echo "::set-output name=num::$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')"
69+
70+
- name: Check if a comment was already made
71+
id: find-comment
72+
uses: peter-evans/find-comment@v1
73+
with:
74+
issue-number: ${{ steps.get-pr-number.outputs.num }}
75+
comment-author: pirate-bot
76+
body-includes: Download [build]
77+
78+
- name: Get comment body
79+
id: get-comment-body
80+
run: |
81+
body="Plugin build for ${{ github.event.pull_request.head.sha }} is ready :bellhop_bell:!
82+
- Download [build](https://verti-artifacts.s3.amazonaws.com/${{ github.event.pull_request.base.repo.name }}-${{ needs.dev-zip.outputs.branch-name }}-${{ needs.dev-zip.outputs.git-sha-8 }}/${{ github.event.pull_request.base.repo.name }}.zip)"
83+
body="${body//$'\n'/'%0A'}"
84+
echo "::set-output name=body::$body"
85+
- name: Create comment on PR with links to plugin builds
86+
if: ${{ steps.find-comment.outputs.comment-id == '' }}
87+
uses: peter-evans/create-or-update-comment@v1
88+
with:
89+
issue-number: ${{ steps.get-pr-number.outputs.num }}
90+
token: ${{ secrets.BOT_TOKEN }}
91+
body: ${{ steps.get-comment-body.outputs.body }}
92+
93+
- name: Update comment on PR with links to plugin builds
94+
if: ${{ steps.find-comment.outputs.comment-id != '' }}
95+
uses: peter-evans/create-or-update-comment@v1
96+
with:
97+
comment-id: ${{ steps.find-comment.outputs.comment-id }}
98+
token: ${{ secrets.BOT_TOKEN }}
99+
edit-mode: replace
100+
body: ${{ steps.get-comment-body.outputs.body }}

.github/workflows/cancel-old-runs.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Auto Cancel
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- master
7+
jobs:
8+
cancel:
9+
name: 'Cancel Previous Runs'
10+
if: github.event.pull_request.head.repo.fork == false
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: styfle/[email protected]
14+
with:
15+
workflow_id: build-dev-artifacts.yml
16+
access_token: ${{ secrets.BOT_TOKEN }}
17+
- uses: styfle/[email protected]
18+
with:
19+
workflow_id: test-e2e.yml
20+
access_token: ${{ secrets.BOT_TOKEN }}

.github/workflows/create-tag.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
jobs:
8+
create_tag:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
node-version: [12.x]
13+
steps:
14+
- uses: actions/checkout@master
15+
with:
16+
persist-credentials: false
17+
- name: Build files using ${{ matrix.node-version }}
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
- name: Release new version
22+
id: release
23+
run: |
24+
npm ci
25+
npm run release
26+
env:
27+
CI: true
28+
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
29+
GIT_AUTHOR_NAME: themeisle[bot]
30+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_ANNOUNCEMENTS }}
31+
SEMANTIC_RELEASE_PACKAGE: Visualizer(free)
32+
GIT_AUTHOR_EMAIL: ${{ secrets.BOT_EMAIL }}
33+
GIT_COMMITTER_NAME: themeisle[bot]
34+
GIT_COMMITTER_EMAIL: ${{ secrets.BOT_EMAIL }}

.github/workflows/deploy-wporg.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Deploy
2+
on:
3+
push:
4+
tags:
5+
- "*"
6+
jobs:
7+
tag:
8+
name: New version
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- name: Get the version
13+
id: get_version
14+
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
15+
- name: Build
16+
run: |
17+
npm ci
18+
composer install --no-dev --prefer-dist --no-progress --no-suggest
19+
- name: WordPress Plugin Deploy
20+
uses: 10up/action-wordpress-plugin-deploy@master
21+
env:
22+
SVN_PASSWORD: ${{ secrets.SVN_THEMEISLE_PASSWORD }}
23+
SVN_USERNAME: ${{ secrets.SVN_THEMEISLE_USERNAME }}
24+
- name: Send update to the store
25+
env:
26+
THEMEISLE_ID: ${{ secrets.THEMEISLE_ID }}
27+
THEMEISLE_AUTH: ${{ secrets.THEMEISLE_STORE_AUTH }}
28+
STORE_URL: ${{ secrets.THEMEISLE_STORE_URL }}
29+
BUILD_VERSION: ${{ steps.get_version.outputs.VERSION }}
30+
run: |
31+
if [ ! -z "$THEMEISLE_ID" ]; then
32+
STORE_JSON='{"version": "'$BUILD_VERSION'","id": "'$THEMEISLE_ID'","body": ""}';
33+
echo "$STORE_JSON";
34+
curl -X POST -H 'Cache-Control: no-cache' -H "Content-Type: application/json" -H "x-themeisle-auth: $THEMEISLE_AUTH" --data "$STORE_JSON" "$STORE_URL/wp-json/edd-so/v1/update_changelog/" > /dev/null
35+
fi

.github/workflows/new-issues.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Move new/reopened issues into Triage
2+
3+
on:
4+
issues:
5+
types: [opened,reopened]
6+
jobs:
7+
automate-project-columns:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: alex-page/[email protected]
11+
with:
12+
project: Products(Extended)
13+
column: Triage
14+
repo-token: ${{ secrets.BOT_TOKEN }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
on:
2+
pull_request:
3+
types: [closed]
4+
branches:
5+
- 'development'
6+
- 'new/**'
7+
jobs:
8+
pr_announcer:
9+
runs-on: ubuntu-latest
10+
name: Announce pr
11+
steps:
12+
- name: Checking merged commit
13+
uses: Codeinwp/action-pr-merged-announcer@main
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
16+
with:
17+
destination_repo: "Codeinwp/docs"
18+
issue_labels: "visualizer"
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Verify PR
2+
3+
on:
4+
pull_request:
5+
types: [ edited, synchronize, opened, reopened ]
6+
branches:
7+
- development
8+
check_run:
9+
10+
jobs:
11+
verify_linked_issue:
12+
runs-on: ubuntu-latest
13+
if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
14+
name: Ensure Pull Request has a linked issue.
15+
steps:
16+
- name: Verify Linked Issue
17+
id: verify_linked_issues
18+
uses: Codeinwp/verify-linked-issue-action@master
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
21+
with:
22+
quiet: 'true'
23+
- name: Find Comment
24+
uses: peter-evans/find-comment@v1
25+
id: find_coomment
26+
with:
27+
issue-number: ${{ github.event.pull_request.number }}
28+
comment-author: 'pirate-bot'
29+
body-includes: No Linked Issue found
30+
- name: Create or update comment
31+
uses: peter-evans/create-or-update-comment@v1
32+
if: steps.verify_linked_issues.outputs.has_linked_issues != 'true'
33+
with:
34+
comment-id: ${{ steps.find_coomment.outputs.comment-id }}
35+
token: ${{ secrets.BOT_TOKEN }}
36+
issue-number: ${{ github.event.pull_request.number }}
37+
body: |
38+
:guardsman: PR Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>
39+
edit-mode: replace
40+
- name: Fail action on no issue found
41+
if: steps.verify_linked_issues.outputs.has_linked_issues == 'false'
42+
run: exit 1;
43+
- name: Delete comment
44+
uses: jungwinter/comment@v1
45+
if: steps.verify_linked_issues.outputs.has_linked_issues == 'true' && steps.find_coomment.outputs.comment-id != ''
46+
with:
47+
type: delete
48+
comment_id: ${{ steps.find_coomment.outputs.comment-id }}
49+
token: ${{ secrets.BOT_TOKEN }}

0 commit comments

Comments
 (0)