Skip to content

Unnecessary details request on Map Open #2563

@offtherailz

Description

@offtherailz

Description

When you open the map a request is anyway sent to attributes/attribute/details for that resource. If the attribute doesn't exists (ergo the map doesn't have a detail card) the request responds 404 not found.
This happens even if you don't have the details plugin installed.

In case of Bug (otherwise remove this paragraph)

Browser Affected
any

Steps to reproduce

  • Open the debug console
  • Open a map without details card

Expected Result

  • no failure requests

Current Result

  • You see the request to attributes/details failing

Other useful information (optional):

This is because there is an epic in maps that performs this anyway. A better approch is to send the request for all attribute and add it to the attributes informations to the mapinfo (canRead, canWrite ...)
This is a more complete and general approch that can help future developments, and doesn't cost too much more
As an alternative this request to attributes/details should run only if Details plugin is present.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions