Skip to content

Commit

Permalink
Merge branch 'georchestra-gn4.2.x' into georchestra-gn4.2.x-rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
f-necas authored Jan 26, 2024
2 parents 8765a1d + 5dc598b commit 22a7d05
Show file tree
Hide file tree
Showing 11 changed files with 275 additions and 207 deletions.
3 changes: 3 additions & 0 deletions .backportrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"autoMerge": true
}
24 changes: 24 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Automatic backport action

on:
pull_request_target:
types: ["closed"]

jobs:
backport:
name: Backport PR
runs-on: ubuntu-latest
steps:
- name: Backport Action
uses: sqren/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
auto_backport_label_prefix: backport-to-

- name: Info log
if: ${{ success() }}
run: cat ~/.backport/backport.info.log

- name: Debug log
if: ${{ failure() }}
run: cat ~/.backport/backport.debug.log
1 change: 1 addition & 0 deletions .github/workflows/georchestra-gn4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,4 @@ jobs:
with:
name: geonetwork.war
path: web/target/geonetwork.war

Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ public Element search(ServiceContext context, int startPos, int maxRecords,

try {
String filterQueryString = esFilterBuilder.build(context, "metadata", false, node);
String jsonQuery = String.format(elasticSearchQuery, filterQueryString);
String jsonQuery = StringUtils.replace(elasticSearchQuery, "{@}", filterQueryString);

ObjectMapper objectMapper = new ObjectMapper();
esJsonQuery = objectMapper.readTree(jsonQuery);
Expand Down
Loading

0 comments on commit 22a7d05

Please sign in to comment.