-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
app:datalinkconcern the datalink-appconcern the datalink-appapp:queryconcern the query-appconcern the query-appcategory:datalinkcategory:web-GUIinvalidpriority:high
Description
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 theservemodule, 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:
daiquiri/daiquiri/core/static/core/js/table.js
Lines 116 to 130 in 5ae2a14
| 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
Labels
app:datalinkconcern the datalink-appconcern the datalink-appapp:queryconcern the query-appconcern the query-appcategory:datalinkcategory:web-GUIinvalidpriority:high