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

Fixing Queried Content Items query validation (Lombiq Technologies: OCORE-209) #17120

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

Piedone
Copy link
Member

@Piedone Piedone commented Dec 4, 2024

Fixes #17102. The code was originally introduced in #16402. Seems like a no-brainer fix but perhaps I'm not thinking of some gotcha.

@Piedone Piedone requested a review from MikeAlhayek December 4, 2024 23:14
@@ -26,7 +26,7 @@ protected override async Task ProcessAsync(QueryBasedContentDeploymentStep step,
return;
}

if (!query.CanReturnContentItems || !query.ReturnContentItems)
if (!query.CanReturnContentItems && !query.ReturnContentItems)
Copy link
Member

Choose a reason for hiding this comment

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

Do we know what is the difference between the CanReturnContentItems and ReturnContentItems?

Copy link
Member Author

Choose a reason for hiding this comment

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

CanReturnContentItems seems to me like an abandoned view model property. It's not actually used anywhere, I've removed it.

@Piedone Piedone requested a review from MikeAlhayek December 4, 2024 23:57
Copy link
Member

@MikeAlhayek MikeAlhayek left a comment

Choose a reason for hiding this comment

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

I am assuming you tested the changes with and without the checkbox.

@Piedone
Copy link
Member Author

Piedone commented Dec 5, 2024

Yep, and also exported, then imported, all works.

@Piedone Piedone merged commit 88edd3e into OrchardCMS:main Dec 5, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deployment with queries content items step can't be created
2 participants