Skip to content

Upgrade geonetwork-ui for duckdb optimization, resourceDate sort and new default basemap - #159

Merged
LHBruneton-C2C merged 1 commit into
mainfrom
duckdb-upgrade-geonetwork-ui
Sep 3, 2026
Merged

Upgrade geonetwork-ui for duckdb optimization, resourceDate sort and new default basemap#159
LHBruneton-C2C merged 1 commit into
mainfrom
duckdb-upgrade-geonetwork-ui

Conversation

@LHBruneton-C2C

@LHBruneton-C2C LHBruneton-C2C commented Sep 1, 2026

Copy link
Copy Markdown
Member

Description

This PR pulls the latest version on geonetwork-ui, with:

  • the new default basemap
  • the duckdb optimization for large datasets
  • the new resourceDate.date sort

The previous version was already a dev version, pulled on May the 7th.

Features merged in between affecting DataMEL:

  • material style loaded differently (fixed in this PR)
  • spatial extent displayed in the map preview of datasets (OK)

e2e fixes:

  • correctly intercept the search, when clicking on a category tag, and replace with a fixture with keywords links
  • do not rely on record order when testing favorites

Screenshots

Angular Material correctly displaying the tabs + spatial extent in the preview + new basemap:

image

Quality Assurance Checklist

  • Commit history is devoid of any merge commits and readable to facilitate reviews
  • If new user stories 🤏 are introduced: E2E tests were added
  • If breaking changes 🪚 are introduced: add the breaking change label
  • If bugs 🐞 are fixed: add the backport <release branch> label

How to test

For large datasets:

For the sort, see the "how to test" of geonetwork/geonetwork-ui#1684.
Make sure the initial sort is correctly set on most recent.

@LHBruneton-C2C
LHBruneton-C2C force-pushed the duckdb-upgrade-geonetwork-ui branch 5 times, most recently from 85807e5 to 1f09e36 Compare September 2, 2026 12:24
@LHBruneton-C2C
LHBruneton-C2C marked this pull request as ready for review September 2, 2026 12:32
@LHBruneton-C2C
LHBruneton-C2C force-pushed the duckdb-upgrade-geonetwork-ui branch from 1f09e36 to 796470b Compare September 2, 2026 13:25
@LHBruneton-C2C
LHBruneton-C2C requested a review from tkohr September 2, 2026 14:03

@tkohr tkohr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @LHBruneton-C2C , works mostly fine !

I can't manage to open the second record from the "how to test" section which seems to be due to its size. There is also an error in the console, but it also appears on other record and on prod:

Image

Also couldn't get the chart to work on this really small record which works on prod 🤔 :
https://data.lillemetropole.fr/catalogue/dataset/5ce5c566-871c-437b-8d85-dc37d0b66b84

Maybe some more testing with more records will be necessary!?

Comment thread apps/datahub/project.json
"styles": ["resources/styles.css"],
"styles": [
"resources/styles.css",
"node_modules/@angular/material/prebuilt-themes/indigo-pink.css"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This may also be needed in the home app.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks, I'll add it to be sure.

Comment on lines +17 to +19
const SORT_BY_RESOURCE_DATE: SortByField = ['desc', 'resourceDate.date']

const SORT_BY_METADATA_DATE: SortByField = [['desc', 'createDate']]
const SORT_BY_METADATA_DATE: SortByField = ['desc', 'createDate']

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Didn't test by creating new datasets, but I see that the sorts are different for the existing ones.

Comment thread tools/e2e/commands.ts
cy.intercept(
'POST',
`/geonetwork/srv/api/search/records/_search?bucket=bucket&relatedType=fcats&relatedType=hassources`,
`/geonetwork/srv/api/search/records/_search?bucket=bucket&relatedType=fcats&relatedType=hassources&relatedType=siblings&relatedType=associated`,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ouf, good find!

Comment thread package.json
"overrides": {
"geonetwork-ui": {
"@camptocamp/ogc-client": "1.3.1-dev.bb345f0"
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Didn't see this mentioned in the PR description, but I guess it's on purpose thanks to the gn-ui update.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yep, blaming this line, you can see that the PR adding it already mentionned it could be removed as soon as geonetwork-ui is updated ;)

@LHBruneton-C2C

LHBruneton-C2C commented Sep 3, 2026

Copy link
Copy Markdown
Member Author

Also couldn't get the chart to work on this really small record which works on prod 🤔 :
https://data.lillemetropole.fr/catalogue/dataset/5ce5c566-871c-437b-8d85-dc37d0b66b84

It's not working on prod for me:
image

I'll try another small one just to be sure.

With https://data.lillemetropole.fr/catalogue/dataset/cfe9a2dc-e308-4b01-9ebd-5cd1209a0ff3:
image

@LHBruneton-C2C
LHBruneton-C2C force-pushed the duckdb-upgrade-geonetwork-ui branch from 796470b to 148aff7 Compare September 3, 2026 07:18
@LHBruneton-C2C
LHBruneton-C2C requested a review from tkohr September 3, 2026 07:18

@tkohr tkohr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ok the other records I had tested quickly also worked for me, so I'll approve.

@LHBruneton-C2C
LHBruneton-C2C force-pushed the duckdb-upgrade-geonetwork-ui branch from 148aff7 to b582550 Compare September 3, 2026 11:29
@LHBruneton-C2C
LHBruneton-C2C force-pushed the duckdb-upgrade-geonetwork-ui branch from b582550 to d3f695c Compare September 3, 2026 11:37
@LHBruneton-C2C
LHBruneton-C2C merged commit 04f2896 into main Sep 3, 2026
7 checks passed
@LHBruneton-C2C LHBruneton-C2C changed the title chore: upgrade geonetwork-ui Upgrade geonetwork-ui for duckdb optimization, resourceDate sort and new default basemap Sep 9, 2026
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.

2 participants