Skip to content

Conversation

@anup39
Copy link
Member

@anup39 anup39 commented Oct 27, 2025

This PR adds following:

  1. New download url for metadata xml , also it removes the Dublin Core download and its related component.
  2. The MapStore2 submodule is also updated to latest commit to include this fix Fix #11542 Build failure due to 3D tiles geosolutions-it/MapStore2#11547

@anup39 anup39 self-assigned this Oct 27, 2025
@anup39 anup39 added enhancement New feature or request geonode-ui labels Oct 27, 2025
@gemini-code-assist
Copy link

Summary of Changes

Hello @anup39, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses issue #2155 by modernizing the metadata download capabilities. It introduces a dedicated mechanism for fetching ISO metadata XML, enhancing the system's ability to provide standardized data. Concurrently, the legacy Dublin Core download feature has been deprecated and removed, streamlining the codebase and reducing maintenance overhead. A significant update to the MapStore2 submodule is also included, ensuring the project benefits from the latest upstream developments and bug fixes.

Highlights

  • New ISO Metadata XML Download: Implemented a new API endpoint and logic (getMetadataDownloadLinkByPk) for downloading ISO metadata XML, replacing the previous Dublin Core method.
  • Dublin Core Removal: The Dublin Core metadata download functionality, including its plugin (DublinCoreDownload.jsx) and related configurations in localConfig.json, has been completely removed.
  • MapStore2 Submodule Update: The MapStore2 submodule has been updated to a newer commit (b82943a5abf30348b7e6509f0ad3cb0da3ffe5d8), incorporating upstream changes and fixes as mentioned in the PR description.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly updates the metadata download URL and removes the deprecated Dublin Core download functionality, including related components and configurations. The MapStore2 submodule has also been updated as intended. The changes are logical and well-contained. I've provided a couple of suggestions to improve code style and remove a potential debugging leftover in a test file.

Comment on lines +726 to +728
export const getMetadataDownloadLinkByPk = (pk) => {
return getEndpointUrl(RESOURCES, `/${pk}/iso_metadata_xml`);
}

Choose a reason for hiding this comment

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

medium

For conciseness and improved readability, this function can be simplified into a single-line arrow function with an implicit return. This is a common pattern for functions that only contain a return statement.

export const getMetadataDownloadLinkByPk = (pk) => getEndpointUrl(RESOURCES, `/${pk}/iso_metadata_xml`);


describe('gnDownloadMetaData epic', () => {
beforeEach(done => {
global.__DEVTOOLS__ = true;

Choose a reason for hiding this comment

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

medium

This line appears to be a debugging leftover. Setting global variables within tests is generally discouraged as it can lead to side effects and make tests less isolated and predictable. Please remove this line.

@anup39 anup39 requested a review from allyoucanmap October 27, 2025 08:02
@anup39 anup39 linked an issue Oct 27, 2025 that may be closed by this pull request
@allyoucanmap allyoucanmap requested a review from dsuren1 October 27, 2025 11:28
@allyoucanmap allyoucanmap assigned dsuren1 and unassigned anup39 Oct 27, 2025
@allyoucanmap allyoucanmap removed their request for review October 27, 2025 11:30
global.__DEVTOOLS__ = true;
setTimeout(done);
});
afterEach(done => {
Copy link

@dsuren1 dsuren1 Oct 28, 2025

Choose a reason for hiding this comment

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

Suggested change
afterEach(done => {
afterEach(done => {
delete global.__DEVTOOLS__;

Copy link

Choose a reason for hiding this comment

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

Adding cleanup after test

@dsuren1 dsuren1 merged commit 7293322 into GeoNode:master Oct 28, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request geonode-ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update CesiumJS version The Download ISO metadata button will call the view to obtain the proper ISO xml content

2 participants