Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
2b28b68
Create sync-develop-with-main.yml
jasonbahl Dec 19, 2023
3891ea3
Merge pull request #143 from wp-graphql/jasonbahl-patch-1
jasonbahl Dec 19, 2023
824910f
no message
jasonbahl Dec 20, 2023
0eb0db5
Merge pull request #146 from wp-graphql/chore/update-phpcs-to-match-c…
jasonbahl Dec 28, 2023
968b0aa
- fix a bug with Taxonomy field erroring when resolving if only one i…
jasonbahl Dec 28, 2023
ccf51d2
- update variable names in Taxonomy.php to be more clear
jasonbahl Dec 29, 2023
190aea3
- ensure we're dealing with an array before mapping over it
jasonbahl Dec 29, 2023
a72bcdc
- add the broken file back so we have a failing test
jasonbahl Dec 29, 2023
51ca21a
- add the fixed file back (test should pass now)
jasonbahl Dec 29, 2023
ed4a449
- only run the tests when WPGraphQL Content Blocks and ACF PRO are av…
jasonbahl Dec 29, 2023
250b4e2
Merge pull request #148 from wp-graphql/fix/#133-taxonomy-field-on-bl…
jasonbahl Jan 8, 2024
044c43c
- only use `graphql_types` for mapping field groups to the Schema. Do…
jasonbahl Jan 11, 2024
56f8aa1
- remove commented out code
jasonbahl Jan 11, 2024
25376f7
- refactor get_graphql_locations_for_field_group() to early return fo…
jasonbahl Jan 12, 2024
cf50c87
- working on location mapping logic
jasonbahl Jan 13, 2024
daf9f74
- update Registry.php to cache mapped ACF Field Groups and mapped ACF…
jasonbahl Jan 18, 2024
09a6168
- update Registry to use local Utils and use full namespace for WPGra…
jasonbahl Jan 18, 2024
04e62e8
- update TaxonomyFieldTest
jasonbahl Jan 18, 2024
35da234
- add failing test
jasonbahl Jan 18, 2024
220fca6
- fix code so tests pass
jasonbahl Jan 18, 2024
e4760cd
- Update Registry.php to track field names and keys that have been re…
jasonbahl Jan 18, 2024
b8ed703
no message
jasonbahl Jan 19, 2024
71840f7
Merge branch 'develop' into fix/acf-fields-not-resolving-with-preview
jasonbahl Jan 19, 2024
9610218
Update Registry.php
jasonbahl Jan 19, 2024
b537a3d
Apply suggestions from code review
jasonbahl Jan 19, 2024
469c9ab
- update TaxonomyFieldTest
jasonbahl Jan 19, 2024
e2b2ac3
Merge pull request #156 from wp-graphql/fix/acf-fields-not-resolving-…
jasonbahl Jan 19, 2024
19e3bdb
no message
jasonbahl Jan 19, 2024
65a8384
Merge pull request #155 from wp-graphql/fix/153-show_in_graphql
jasonbahl Jan 19, 2024
c06163f
Merge branch 'fix/performance-issues' of github.com:wp-graphql/wpgrap…
jasonbahl Jan 19, 2024
3b34a89
Merge pull request #152 from wp-graphql/fix/performance-issues
jasonbahl Jan 19, 2024
b204fbf
Update README.md
jasonbahl Jan 23, 2024
dac9e50
Merge pull request #159 from wp-graphql/jasonbahl-patch-2
jasonbahl Jan 23, 2024
61be2a3
Update README.md
jasonbahl Jan 23, 2024
bca192b
- update changelog and readme for release
jasonbahl Jan 23, 2024
c4d6dae
Merge commit '61be2a39d1515b7e223dafa9b6738ff303a5fdf4' into release/…
jasonbahl Jan 23, 2024
0e32225
- update readme.txt
jasonbahl Jan 23, 2024
04c5c82
- clean up switch statement, removing any cases that are not explicit…
jasonbahl Jan 24, 2024
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
26 changes: 26 additions & 0 deletions .github/workflows/sync-develop-with-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Keep develop in sync with main

on:
push:
branches:
- main

jobs:
merge-main-back-to-develop:
timeout-minutes: 2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.SYNC_TOKEN }}
- name: Set Git config
run: |
git config --local user.email "actions@github.com"
git config --local user.name "Github Actions"
- name: Merge main back to develop
run: |
git fetch --unshallow
git checkout develop
git pull
git merge --no-ff origin/main -m "Auto-merge main back to develop"
git push
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## 2.1.0

## Upgrade Notice

While fixing some [performance issues](https://github.com/wp-graphql/wpgraphql-acf/pull/152) we had to adjust the fallback logic for mapping ACF Field Groups to the Schema if they do not have "graphql_types" defined.

ACF Field Groups that did not have "graphql_types" defined AND were assigned to Location Rules based on "post_status", "post_format", "post_category" or "post_taxonomy" _might_ not show in the Schema until their "graphql_types" are explicitly defined.

## New Features

- [#156](https://github.com/wp-graphql/wpgraphql-acf/pull/156): feat: Use published ACF values in resolvers for fields associated with posts that use the block editor, since the Block Editor has a bug preventing meta from being saved for previews. Adds a debug message if ACF fields are queried for with "asPreview" on post(s) that use the block editor.

### Chores / Bugfixes

- [#156](https://github.com/wp-graphql/wpgraphql-acf/pull/156): fix: ACF Fields not resolving when querying "asPreview"
- [#155](https://github.com/wp-graphql/wpgraphql-acf/pull/155): fix: "show_in_graphql" setting not being respected when turned "off"
- [#152](https://github.com/wp-graphql/wpgraphql-acf/pull/152): fix: performance issues with mapping ACF Field Groups to the Schema
- [#148](https://github.com/wp-graphql/wpgraphql-acf/pull/148): fix: bug when querying taxonomy field on blocks
- [#146](https://github.com/wp-graphql/wpgraphql-acf/pull/146): chore: update phpcs to match core WPGraphQL

## 2.0.0

- [#142](https://github.com/wp-graphql/wpgraphql-acf/pull/142): Update README, versions, plugin assets for deploy to WordPress.org.
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# WPGraphQL for Advanced Custom Fields

![WPGraphQL for ACF plugin banner](/.wordpress-org/banner-1544x500.png)

WPGraphQL for Advanced Custom Fields is a free, open-source WordPress plugin that adds ACF Fields and Field Groups to the WPGraphQL Schema.

The plugin is [now available on WordPress.org!](https://wordpress.org/plugins/wpgraphql-acf/)

Development of this plugin has been made possible by [WP Engine Atlas](https://wpengine.com/atlas)

Learn more at [https://acf.wpgraphql.com](https://acf.wpgraphql.com)

## Table of Contents

- [Upgrade Notice](#upgrade-notice)
Expand Down
8 changes: 3 additions & 5 deletions access-functions.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
<?php

/**
* @param string $acf_field_type
* @param array|callable $config
*
* @return void
* @param string $acf_field_type
* @param array<mixed>|callable $config
*/
function register_graphql_acf_field_type( string $acf_field_type, $config = [] ): void {
add_action(
'wpgraphql/acf/register_field_types',
static function ( \WPGraphQL\Acf\FieldTypeRegistry $registry ) use ( $acf_field_type, $config ) {
$registry->register_field_type( $acf_field_type, $config );
}
}
);
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"appsero/client": "1.2.1"
},
"require-dev": {
"automattic/vipwpcs": "^2.3",
"automattic/vipwpcs": "^3.0",
"lucatume/wp-browser": "3.1.0",
"codeception/module-asserts": "^1.3",
"codeception/module-phpbrowser": "^1.0",
Expand Down
Loading