Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Release/v0.5.0 #250

Merged
merged 65 commits into from
Apr 22, 2021
Merged
Show file tree
Hide file tree
Changes from 64 commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
3145c1a
Update README.md
pickleat Oct 12, 2020
a98654a
Fix problem with return value of select format
ljanecek Oct 12, 2020
5f5aed0
Replace depricated function acf_get_term_post_id() with term_ string
sboerrigter Dec 16, 2020
3596122
fix plug-in URI to support github plugin updater
dgaidula Jan 3, 2021
0f50947
- fix the Github Plugin URI
jasonbahl Feb 5, 2021
9a7e754
Merge pull request #214 from jasonbahl/bug/#213-fix-github-plugin-uri
jasonbahl Feb 5, 2021
3fb7146
Merge branch 'develop' into patch-1
jasonbahl Feb 5, 2021
d9a0251
Merge pull request #197 from dgaidula/patch-1
jasonbahl Feb 5, 2021
f6165bc
Merge pull request #191 from sboerrigter/develop
jasonbahl Feb 5, 2021
f0b51d0
Merge pull request #175 from ljanecek/patch-1
jasonbahl Feb 5, 2021
1969768
Merge pull request #174 from pickleat/patch-1
jasonbahl Feb 5, 2021
d8a917f
- updates the WPGraphQL for ACF Test environment to properly run test…
jasonbahl Feb 19, 2021
9ce43e6
Merge pull request #218 from jasonbahl/feature/update-test-env
jasonbahl Feb 19, 2021
92fcf5b
- update composer.json
jasonbahl Feb 22, 2021
b0c0df3
- update composer.json
jasonbahl Feb 22, 2021
f1e8291
- update github action to install all dependencies
jasonbahl Feb 22, 2021
db6fa23
- add zip extension to PHP setup
jasonbahl Feb 22, 2021
130a126
- add zip extension to PHP setup
jasonbahl Feb 22, 2021
ed7284e
- add zip extension to PHP setup
jasonbahl Feb 22, 2021
0efd103
- add coveralls.yml config
jasonbahl Feb 22, 2021
be92ebc
remove currently unused code quality check from Github workflows
jasonbahl Feb 22, 2021
c9383e5
Merge pull request #220 from jasonbahl/feature/ci-tests
jasonbahl Feb 26, 2021
5a320ce
Add json export example file for field groups
markkelnar Mar 9, 2021
0d10705
Update some examples and image links
markkelnar Mar 9, 2021
b4581db
Merge pull request #227 from markkelnar/docs/example-json
jasonbahl Mar 10, 2021
6cb6193
Fix #135. Add Explicit options for adding ACF Field Groups to the Schema
rsm0128 Jan 19, 2021
46696e3
Fixed formatting issues. Reverted phpcs auto formatting error and fol…
rsm0128 Jan 19, 2021
fc010f7
fixed spelling issue. Thanks @drewbaker
rsm0128 Jan 23, 2021
3c9349b
updated unit test with new graphql_types_on field
rsm0128 Mar 15, 2021
1271ed9
Aded Explicit Options WpUnit test case
rsm0128 Mar 15, 2021
36b03c0
updated plugin version check
rsm0128 Mar 15, 2021
629dfac
fixed typo issue with user register fields
rsm0128 Mar 20, 2021
078cc98
Added contentNode and termNode support for the explicit option
rsm0128 Mar 20, 2021
7f1ebdd
- add plaftform_check to .gitignore
jasonbahl Mar 20, 2021
4cffad2
Enable xdebug when USING_XDEBUG specified
markkelnar Mar 30, 2021
897754e
Increase php upload filesize
markkelnar Mar 31, 2021
a5d4076
Add development documentation steps
markkelnar Mar 31, 2021
f51d294
- Update GraphQL Settings fields to use the GraphQL Type names as val…
jasonbahl Mar 31, 2021
0d2e191
- Add the `ContentTemplate` interface to the Checkboxes
jasonbahl Mar 31, 2021
c6e3888
- Fix typo in JS for unsetting checked state
jasonbahl Mar 31, 2021
cf6f37c
Download tagged release version of wp-graphql zip
markkelnar Mar 31, 2021
91a3935
Use .env for SUITES value
markkelnar Apr 1, 2021
aaec92f
Use the .env file, for now
markkelnar Apr 1, 2021
9b0b248
Download wp-graphql.zip then install because of weird directory name …
markkelnar Apr 1, 2021
8f56a30
- add filter to `ContentTemplate` fields to pass the source node alon…
jasonbahl Apr 5, 2021
f754226
Get latest wp-graphql from .org
markkelnar Apr 6, 2021
4f9a21e
Support wp-graphql core version download
markkelnar Apr 6, 2021
eaeefe5
Variable for base plugin is now WPGRAPHQL_VERSION
markkelnar Apr 6, 2021
6ef9cc1
- removes activation script that tries to upgrade location rules
jasonbahl Apr 6, 2021
b202db1
- Update test to include nav menu registration
jasonbahl Apr 6, 2021
d7cb493
- Update test message linking to WPGraphQL Issue
jasonbahl Apr 6, 2021
9357b55
Add -c build option to build without cache
markkelnar Apr 7, 2021
c7ff927
Something went wrong text
markkelnar Apr 7, 2021
21a0b8f
- Update ACF Settings tp include an AJAX action/callback for determin…
jasonbahl Apr 9, 2021
3bf411f
Merge pull request #244 from markkelnar/fix/using-xdebug
jasonbahl Apr 9, 2021
63afa2f
Merge commit '3bf411f270c591a89dce3b41acb655046139a10e' into bugfix-135
jasonbahl Apr 9, 2021
4ed2017
- Move GraphQL Field Group Settings into their own box in the ACF Fie…
jasonbahl Apr 12, 2021
faa5701
- remove dummy code from wp-graphql-acf
jasonbahl Apr 14, 2021
8bde1b2
- update testing matrix
jasonbahl Apr 14, 2021
e35e895
- update testing matrix
jasonbahl Apr 14, 2021
d0ca31f
- Update tests to test with multiple versions of WPGraphQL
jasonbahl Apr 14, 2021
bf4c781
- Update .gitignore to not ignore the platform check
jasonbahl Apr 20, 2021
3cb2244
Merge pull request #229 from rsm0128/bugfix-135
jasonbahl Apr 20, 2021
1bad7d6
- Adjust the JS on the GraphQL Settings to only execute the AJAX requ…
jasonbahl Apr 21, 2021
8478447
- Update AJAX callback to get the rules as just values not associativ…
jasonbahl Apr 22, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
service_name: travis-ci
coverage_clover: tests/_output/coverage.xml
json_path: tests/_output/coveralls-upload.json
35 changes: 35 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# The following files should be ignored:
# - unencrypted sensitive data
# - files that are not checked into the code repository
# - files that are not relevant to the Docker build

.git
.idea
bin
docker-output
docs
img

tests/_output
!tests/_output/.gitignore
tests/_support/_generated
!tests/_support/_generated/.gitignore

vendor
!vendor/autoload.php
!vendor/ivome/graphql-relay-php/src
!vendor/webonyx/graphql-php/src
!vendor/composer

.dockerignore
.gitignore
.travis.yml
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Dockerfile*
ISSUE_TEMPLATE.md
LICENSE
PULL_REQUEST_TEMPLATE.md
README.md
readme.txt
run-docker*.sh
31 changes: 31 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
DB_NAME=wordpress
DB_HOST=app_db
DB_USER=wordpress
DB_PASSWORD=wordpress
WP_TABLE_PREFIX=wp_
WP_URL=http://localhost
WP_DOMAIN=localhost
ADMIN_EMAIL=admin@example.com
ADMIN_USERNAME=admin
ADMIN_PASSWORD=password
ADMIN_PATH=/wp-admin

TEST_DB_NAME=wpgraphql_acf_tests
TEST_DB_HOST=127.0.0.1
TEST_DB_USER=wordpress
TEST_DB_PASSWORD=wordpress
TEST_WP_TABLE_PREFIX=wp_

SKIP_DB_CREATE=false
TEST_WP_ROOT_FOLDER=/tmp/wordpress
TEST_ADMIN_EMAIL=admin@wp.test

TESTS_DIR=tests
TESTS_OUTPUT=tests/_output
TESTS_DATA=tests/_data
TESTS_SUPPORT=tests/_support
TESTS_ENVS=tests/_envs

#WPGRAPHQL_VERSION=v1.3.3
SKIP_TESTS_CLEANUP=1
SUITES=wpunit
23 changes: 0 additions & 23 deletions .env.dist

This file was deleted.

112 changes: 112 additions & 0 deletions .github/workflows/testing-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
name: Testing Integration

on:
push:
branches:
- develop
- master
pull_request:
branches:
- develop
- master
paths:
- '**.php'
- '!docs/**'

jobs:
continuous_integration:
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '7.3', '7.4' ]
wordpress: [ '5.6', '5.5.3', '5.4.2' ]
include:
- php: '7.4'
wordpress: '5.6'
coverage: 1
- php: '7.4'
wordpress: '5.6'
WPGRAPHQL_VERSION: 'v1.3.5'
- php: '7.4'
wordpress: '5.6'
WPGRAPHQL_VERSION: 'v1.2.6'
- php: '7.4'
wordpress: '5.6'
WPGRAPHQL_VERSION: 'v1.1.8'
- php: '7.4'
wordpress: '5.6'
WPGRAPHQL_VERSION: 'v1.0.5'
- php: '7.4'
wordpress: '5.6'
WPGRAPHQL_VERSION: 'v0.15.5'
- php: '7.4'
wordpress: '5.6'
WPGRAPHQL_VERSION: 'v0.14.0'
- php: '7.4'
wordpress: '5.6'
WPGRAPHQL_VERSION: 'v0.13.3'
- php: '7.4'
wordpress: '5.6'
WPGRAPHQL_VERSION: 'v0.12.3'
- php: '7.4'
wordpress: '5.6'
WPGRAPHQL_VERSION: 'v0.11.0'
- php: '7.4'
wordpress: '5.6'
WPGRAPHQL_VERSION: 'v0.11.0'
- php: '7.4'
wordpress: '5.5.3'
- php: '7.4'
wordpress: '5.4.2'
- php: '7.3'
wordpress: '5.6'
- php: '7.3'
wordpress: '5.5.3'
- php: '7.3'
wordpress: '5.4.2'
fail-fast: false
name: WordPress ${{ matrix.wordpress }} on PHP ${{ matrix.php }}
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: json, mbstring, zip, unzip

- name: Get Composer Cache Directory
id: composercache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composercache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install dependencies
run: composer install

- name: Build "testing" Docker Image
env:
PHP_VERSION: ${{ matrix.php }}
WP_VERSION: ${{ matrix.wordpress }}
run: composer build-test

- name: Run Tests w/ Docker.
env:
COVERAGE: ${{ matrix.coverage }}
USING_XDEBUG: ${{ matrix.coverage }}
DEBUG: ${{ matrix.debug }}
SKIP_TESTS_CLEANUP: ${{ matrix.coverage }}
run: composer run-test

- name: Push Codecoverage to Coveralls.io
if: ${{ matrix.coverage == 1 }}
env:
COVERALLS_RUN_LOCALLY: 1
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: vendor/bin/php-coveralls -v
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ vendor/*
vendor/composer/installed.json
vendor/composer/*/
composer.lock
.log
67 changes: 0 additions & 67 deletions .travis.yml

This file was deleted.

75 changes: 75 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Using Docker For Local Development

## WordPress Site

The `app` docker image starts a running WordPress site with the local wp-graphql-acf directory installed and activated. Local changes to the source code is immediately reflects in the app.

1. Build the plugin.
1.1 `composer install` or `docker run -v $PWD:/app composer --ignore-platform-reqs install`
1. Run `composer build-app` to build the `app` docker image.
1. Run `composer build-test` to build the `testing` docker image.
1. Run `composer run-app` to start the WordPress site.
1. Browse to http://localhost:8091/ to access the running WordPress app.
1. Browse to http://localhost:8091/wp-admin/ to access the admin dashboard. Username is 'admin'. Password is 'password'.

## Testing Suite

The `testing` docker image starts a running WordPress and runs the codeception test suites.

1. Run `composer build-test` to build the `testing` docker image.
1. Run `composer run-test` to start the `testing` image and run the codeception tests.

# Using XDebug

## Local WordPress Site With XDebug
Use an environment variable USING_XDEBUG to start the docker image and WordPress with xdebug configured to use port 9003 to communicated with your IDE.

```
export USING_XDEBUG=1
composer run-app
```

Start the debugger in your IDE. Set breakpoints.

Load the app in http://localhost:8091/.

## Using XDebug With Tests

Use the environment variable USING_XDEBUG to run tests with xdebug configured to use port 9003 to communicated with your IDE.

```
export USING_XDEBUG=1
composer run-test
```

Start the debugger in your IDE. Set breakpoints.

## Configure VSCode IDE Launch File

Create or add the following configuration to your .vscode/launch.json in the root directory. Restart VSCode. Start the debug listener before running the app or testing images.

If you have WordPress core files in a directory for local development, you can add the location to the `pathMappings` for debug step through.

```
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9003,
"xdebugSettings": {
"max_children": 128,
"max_data": 1024,
"max_depth": 3,
"show_hidden": 1
},
"pathMappings": {
"/var/www/html/wp-content/plugins/wp-graphql-acf": "${workspaceFolder}",
"/var/www/html/wp-content/plugins/wp-graphql": "${workspaceFolder}../wp-graphql",
"/var/www/html": "${workspaceFolder}/wordpress",
}
}
]
}
Loading