Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the new properties for linked resources to show link direction and type #1584

Closed
giohappy opened this issue Oct 13, 2023 · 0 comments · Fixed by #1586
Closed

Use the new properties for linked resources to show link direction and type #1584

giohappy opened this issue Oct 13, 2023 · 0 comments · Fixed by #1586
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@giohappy
Copy link

giohappy commented Oct 13, 2023

Two new properties linked_by and linked_to are returned by the linked_resources API endpoint for a resource, where linked resources are split on "Link to" and "Link from " linkages.
These two properties contain an array of links, with the same structure as the current resources property, with the addition of internal.
The value of the internal property says if the link is managed by the application (true) or explicitly created by the user through the metadata editor (false)

The client will enhance the "Linked Resources" tab by splitting the links into 4 sections:

  • Linked to
    • resources inside the resource.linked_to array and having internal=false
  • Linked by
    • resources inside the resource.linked_by array and having internal=false
  • Uses
    • resources inside the resource.linked_to array and having internal=true
  • Used by
    • resources inside the resource.linked_by array and having internal=true

The section will be shown only if the array is not empty.

The client will stop using the deprecated resources property

@giohappy giohappy added this to the 4.2.0 milestone Oct 13, 2023
@giohappy giohappy added the enhancement New feature or request label Oct 13, 2023
dsuren1 added a commit to dsuren1/geonode-mapstore-client that referenced this issue Oct 16, 2023
@dsuren1 dsuren1 linked a pull request Oct 16, 2023 that will close this issue
giohappy pushed a commit that referenced this issue Oct 18, 2023
* #1584: Linked resources refer to new properties

* Order updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants