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 a15df19 + 5dc598b commit c2a2328
Show file tree
Hide file tree
Showing 11 changed files with 275 additions and 224 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
18 changes: 1 addition & 17 deletions .github/workflows/georchestra-gn4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:

jobs:
build:
if: "!startsWith(github.event.head_commit.message, '[skip ci] ')"
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
Expand Down Expand Up @@ -68,20 +69,3 @@ jobs:
name: geonetwork.war
path: web/target/geonetwork.war

- name: "Login onto docker-hub"
if: github.repository == 'georchestra/geonetwork' && github.actor != 'dependabot[bot]' && github.ref == 'refs/heads/georchestra-gn4.2.x' && github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
username: '${{ secrets.DOCKER_HUB_USERNAME }}'
password: '${{ secrets.DOCKER_HUB_PASSWORD }}'

- name: "Pushing branch image to docker-hub"
if: github.repository == 'georchestra/geonetwork' && github.actor != 'dependabot[bot]' && github.ref == 'refs/heads/georchestra-gn4.2.x' && github.event_name != 'pull_request'
run: |
docker push georchestra/geonetwork:${DOCKER_TAG}
- name: "Pushing latest image to docker-hub"
if: github.repository == 'georchestra/geonetwork' && github.actor != 'dependabot[bot]' && github.ref == 'refs/heads/georchestra-gn4.2.x' && github.event_name != 'pull_request'
run: |
docker tag georchestra/geonetwork:${DOCKER_TAG} georchestra/geonetwork:latest
docker push georchestra/geonetwork:latest
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 c2a2328

Please sign in to comment.