Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/#1679 ensure content nodes are public post types #2355

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Commits on Apr 28, 2022

  1. - update test to reflect changes to public $allowed_taxonomies, $allo…

    …wed_post_types properties
    
    - add new _clear_allowed_taxonomies() and _clear_allowed_post_types() methods for help with testing
    jasonbahl committed Apr 28, 2022
    Configuration menu
    Copy the full SHA
    2960e54 View commit details
    Browse the repository at this point in the history
  2. Revert "- update test to reflect changes to public $allowed_taxonomie…

    …s, $allowed_post_types properties"
    
    This reverts commit 2960e54.
    jasonbahl committed Apr 28, 2022
    Configuration menu
    Copy the full SHA
    ba4a3d8 View commit details
    Browse the repository at this point in the history
  3. - add helper function PostObjects::get_post_types_from_args() that …

    …maps input args to the post_types that should be resolved for `ContentNode` queries
    
    - update 'ContentNode' connections to only use public post types
    - Update description for the `ContentNode` Type
    - Update tests to reflect changes to contenNode connections not returning _all_ post types, but just public post types
    jasonbahl committed Apr 28, 2022
    Configuration menu
    Copy the full SHA
    e3be250 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1e29065 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    70b142e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    482c65e View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2022

  1. - add get_taxonomies_from_args function to return a list of taxonomie…

    …s to use in TermNode connections
    
    - Update `ContentTypeEnum` to use updated WPGraphQL::get_allowed_post_types()` method and `WPGraphQL::get_allowed_taxonomies()` methods
    - Update description of `TermNode` interface
    - Update Term types in the Schema to only implement the `TermNode` Interface if they're of a public Taxonomy
    jasonbahl committed Apr 29, 2022
    Configuration menu
    Copy the full SHA
    fd8b718 View commit details
    Browse the repository at this point in the history
  2. Merge commit 'f600479b8343e2ec4cdd2c3a7df0490d6d5a0cec' into bugfix/w…

    …p-graphql#1679-ensure-content-nodes-are-public-post-types
    
    # Conflicts:
    #	src/Connection/PostObjects.php
    #	src/Connection/TermObjects.php
    #	src/Data/Loader/UserLoader.php
    #	src/Type/Enum/ContentTypeEnum.php
    #	src/Type/ObjectType/TermObject.php
    jasonbahl committed Apr 29, 2022
    Configuration menu
    Copy the full SHA
    3a4874d View commit details
    Browse the repository at this point in the history