Skip to content

UNDESIRABLE? UCDs 'meta.id;meta.ref` resolve entry to the datalink viewer #242

@kimakan

Description

@kimakan

Currently, columns with the UCDs main.id;main.ref resolve the entry to /datalink/<datalink_id>/?job=<job_id>.

  • First, it only works for the tables in the query results and breaks in the tables provided by /serve/table/<schema_name>/<table_name. In the serve module, it resolves to /serve/table/<schema_name>/<table_name>/NaN.
  • Second, I don't think that this behavior is desirable for the most use-cases. Usually, the user would like to click on the ID of the object and go straight to some kind of object viewer that presents all relevant information in a nice form. Personally, I would remove this feature all together. However, maybe there is something I'm missing because I'm not quiet sure why it was done in the first place.

The code in question:

if (column.ucd) {
if (column.ucd.indexOf('meta.ref') > -1) {
if (column.ucd.indexOf('meta.note') > -1) {
column.meta = 'note';
} else if (column.ucd.indexOf('meta.image') > -1) {
column.meta = 'image';
} else if (column.ucd.indexOf('meta.file') > -1) {
column.meta = 'file';
} else if (column.ucd.indexOf('meta.ref.url') > -1) {
column.meta = 'link';
} else if (column.ucd.indexOf('meta.id') > -1) {
column.meta = 'datalink'
} else {
column.meta = 'reference';
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions