Replies: 4 comments 4 replies
-
There's a breaking change in 2.0 in Queries: https://docs.orchardcore.net/en/latest/releases/2.0.0/#queries However, it should migrate itself. Nevertheless, I'd recommend you upgrade to 2.0 first, and only then update to 2.1.6. |
Beta Was this translation helpful? Give feedback.
-
@Piedone But I Tried To Import Queries With Fresh CheckOut of Orchard Source Code 2.1.5 then also query container is empty. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Queries (3).zip |
Beta Was this translation helpful? Give feedback.
-
Bug Description:
After upgrading Orchard CMS from version 1.8.3 to 2.1.5, the query field appears blank for all existing queries. This issue affects queries created using Elastic, Lucene, or SQL in the admin section, as they are no longer visible in the query field after the upgrade.
Newly created queries function correctly, but if a deployment plan is created from these new queries and imported into the same version, the query field still appears blank.
Orchard Core Version:
2.1.5
Steps to Reproduce:
Create a query (Elastic, Lucene, or SQL) in Orchard version 1.8.3 from the admin section.
Upgrade the source code to Orchard version 2.1.5.
Navigate to the admin section and open the same query created in version 1.8.3.
Notice that the query field is empty.
Expected Behavior:
All existing queries created in version 1.8.3 should remain visible and editable in the admin section after upgrading to version 2.1.5.
Logs and screenshots
Additional Information:
Even if the content JSON is updated via an SQL query in the CMS, the queries do not appear. However, when imported, only the query name and index are visible, while the query container remains empty.
I have also attempted to import this test package, but in OrchardCoreSource Project version 2.1.5, only the Name, Index, and SourceName are imported while the Query Container remains empty.
{
"name": "Sample Recipe",
"displayName": "Sample Recipe for Elasticsearch Query",
"description": "A recipe to import an Elasticsearch query into OrchardCore 2.1.5.",
"author": "Your Name",
"website": "https://yourwebsite.com",
"version": "1.0.0",
"issetuprecipe": false,
"categories": [],
"tags": [],
"steps": [
{
"name": "queries",
"Queries": [
{
"Name": "GetAllEntrants",
"Source": "Elasticsearch",
"ReturnContentItems": true,
"Properties": {
"ElasticsearchQueryMetadata": {
"Index": "content",
"Template": "{ "query": { "bool": { "must": [ { "term": { "Content.ContentItem.Published": "true" }}, { "term": { "Content.ContentItem.ContentType": "Entrant" } } ] } }, "sort": [ { "Entrant.ProjectName.keyword": { "order": "asc" } } ] }"
}
}
}
]
}
]
}
Beta Was this translation helpful? Give feedback.
All reactions