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

2.0.1 Parents only query args #466

Merged
merged 6 commits into from
Jan 8, 2025
Merged

Conversation

krugazul
Copy link
Collaborator

@krugazul krugazul commented Jan 7, 2025

Description

We have added in a checkbox to the TO query loop block settings to allow you to select only the parents to be returned.
The query block handles the "default" and a "custom" query.

Screenshots

Screenshot 2025-01-07 at 15 54 29
Screenshot 2025-01-07 at 15 54 34
Screenshot 2025-01-07 at 21 33 30
Screenshot 2025-01-07 at 21 33 36

@krugazul krugazul added the [Type] Enhancement A suggestion for improvement label Jan 7, 2025
@krugazul krugazul added this to the 2.1.0 milestone Jan 7, 2025
@krugazul krugazul requested a review from ZaredRogers January 7, 2025 13:57
@krugazul krugazul self-assigned this Jan 7, 2025
Copy link

github-actions bot commented Jan 7, 2025

Image description CodeRabbit


Uplevel your code reviews with CodeRabbit Pro

CodeRabbit Pro

If you like this project, please support us by purchasing the Pro version. The Pro version has advanced context, superior noise reduction and several proprietary improvements compared to the open source version. Moreover, CodeRabbit Pro is free for open source projects.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

Commits Files that changed from the base of the PR and between d20c491 and 0a19d6c commits.
Files selected (6)
  • assets/js/blocks/slider-query.js (3)
  • changelog.md (1)
  • includes/classes/blocks/class-registration.php (6)
  • includes/classes/legacy/class-destination.php (2)
  • readme.txt (1)
  • tour-operator.php (2)
Files ignored due to filter (1)
  • package.json
Files not summarized due to errors (6)
  • includes/classes/blocks/class-registration.php (nothing obtained from openai)
  • tour-operator.php (nothing obtained from openai)
  • changelog.md (nothing obtained from openai)
  • readme.txt (nothing obtained from openai)
  • includes/classes/legacy/class-destination.php (nothing obtained from openai)
  • assets/js/blocks/slider-query.js (nothing obtained from openai)
Files not reviewed due to errors (6)
  • changelog.md (no response)
  • assets/js/blocks/slider-query.js (no response)
  • tour-operator.php (no response)
  • readme.txt (no response)
  • includes/classes/legacy/class-destination.php (no response)
  • includes/classes/blocks/class-registration.php (no response)
Review comments generated (0)
  • Review: 0
  • LGTM: 0

Tips

Chat with Image description CodeRabbit Bot (@coderabbitai)

  • Reply on review comments left by this bot to ask follow-up questions. A review comment is a comment on a diff or a file.
  • Invite the bot into a review comment chain by tagging @coderabbitai in a reply.

Code suggestions

  • The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
  • You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.

Pausing incremental reviews

  • Add @coderabbitai: ignore anywhere in the PR description to pause further reviews from the bot.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

Commits Files that changed from the base of the PR and between 0a19d6c and 2ce4e8a commits.
Files selected (5)
  • includes/classes/blocks/class-registration.php (6)
  • includes/classes/blocks/class-templates.php (1)
  • includes/classes/legacy/class-destination.php (2)
  • includes/classes/legacy/class-frontend.php (1)
  • templates/archive-destination.html (1)
Files not summarized due to errors (5)
  • includes/classes/blocks/class-templates.php (nothing obtained from openai)
  • includes/classes/legacy/class-destination.php (nothing obtained from openai)
  • includes/classes/legacy/class-frontend.php (nothing obtained from openai)
  • templates/archive-destination.html (nothing obtained from openai)
  • includes/classes/blocks/class-registration.php (nothing obtained from openai)
Files not reviewed due to errors (5)
  • includes/classes/blocks/class-templates.php (no response)
  • includes/classes/legacy/class-destination.php (no response)
  • includes/classes/legacy/class-frontend.php (no response)
  • includes/classes/blocks/class-registration.php (no response)
  • templates/archive-destination.html (no response)
Review comments generated (0)
  • Review: 0
  • LGTM: 0

Tips

Chat with Image description CodeRabbit Bot (@coderabbitai)

  • Reply on review comments left by this bot to ask follow-up questions. A review comment is a comment on a diff or a file.
  • Invite the bot into a review comment chain by tagging @coderabbitai in a reply.

Code suggestions

  • The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
  • You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.

Pausing incremental reviews

  • Add @coderabbitai: ignore anywhere in the PR description to pause further reviews from the bot.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

Commits Files that changed from the base of the PR and between 2ce4e8a and be5e8dd commits.
Files selected (1)
  • includes/classes/legacy/class-destination.php (2)
Files not summarized due to errors (1)
  • includes/classes/legacy/class-destination.php (nothing obtained from openai)
Files not reviewed due to errors (1)
  • includes/classes/legacy/class-destination.php (no response)
Review comments generated (0)
  • Review: 0
  • LGTM: 0

Tips

Chat with Image description CodeRabbit Bot (@coderabbitai)

  • Reply on review comments left by this bot to ask follow-up questions. A review comment is a comment on a diff or a file.
  • Invite the bot into a review comment chain by tagging @coderabbitai in a reply.

Code suggestions

  • The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
  • You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.

Pausing incremental reviews

  • Add @coderabbitai: ignore anywhere in the PR description to pause further reviews from the bot.

Copy link
Contributor

@ZaredRogers ZaredRogers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks Warwick

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

Commits Files that changed from the base of the PR and between be5e8dd and c972c84 commits.
Files selected (1)
  • includes/classes/admin/class-admin.php (1)
Files not summarized due to errors (1)
  • includes/classes/admin/class-admin.php (nothing obtained from openai)
Files not reviewed due to errors (1)
  • includes/classes/admin/class-admin.php (no response)
Review comments generated (0)
  • Review: 0
  • LGTM: 0

Tips

Chat with Image description CodeRabbit Bot (@coderabbitai)

  • Reply on review comments left by this bot to ask follow-up questions. A review comment is a comment on a diff or a file.
  • Invite the bot into a review comment chain by tagging @coderabbitai in a reply.

Code suggestions

  • The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
  • You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.

Pausing incremental reviews

  • Add @coderabbitai: ignore anywhere in the PR description to pause further reviews from the bot.

@krugazul krugazul merged commit e33fc9b into 2.0.1-update Jan 8, 2025
4 of 5 checks passed
@krugazul krugazul deleted the 2.0.1-parents-only-query-args branch January 8, 2025 11:51
@ZaredRogers ZaredRogers linked an issue Jan 9, 2025 that may be closed by this pull request
53 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Enhancement A suggestion for improvement
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Parent: Tour Operator Blocks
2 participants