[MAGNOLIA-5859] Further prevent unsafe usages of QueryTask Created: 30/Jul/14  Updated: 15/Mar/21  Resolved: 15/Mar/21

Status: Closed
Project: Magnolia
Component/s: updatemechanism
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Mikaël Geljić Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: improvement, query, upgrade
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
clones MAGNOLIA-5857 Provide a NodeVisitorTask and emphasi... Closed
relation
is related to MAGNOLIA-8010 Make possible to configure execution ... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Story Points: 8

 Description   

In Magnolia 5.3.2 we introduced the NodeVisitorTask as a safer replacement for QueryTask in most cases (see linked ticket MAGNOLIA-5857). We started to warn against unsafe usages whenever executing a QueryTask.

In 5.4 we want to deprecate current constructor, and add a new one with a boolean flag in the following spirit: "I read about the limitations and I know what I'm doing". If that boolean is false (default), we would fire a TaskExecutionException and interrupt the upgrade.


Generated at Mon Feb 12 04:09:04 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.