There are several oddities in the Node views data, which show up in the user interface when you go to add fields to a view:
a) Two fields are missing help: Sticky and Promoted.
b) There are several pairs of fields that appear twice in the list with no obvious reason why they're different. The reason is that the fields appear in two tables, such as node and node_field_data. I think we need to either remove one field or distinguish between them by changing the field name or help. Here are two examples:
I'm pretty sure these are just coming from the base EntityViewsData. Actually I'm not sure why the node type field is in the entity field data table anyway (I don't think you can change it on a per-translation basis ?!?), so for now I'm putting this in the Views component because we may need to fix it there.
Comment | File | Size | Author |
---|---|---|---|
tworevisions.png | 11.09 KB | jhodgdon | |
twotypes.png | 8.08 KB | jhodgdon | |
missinghelp.png | 12.79 KB | jhodgdon | |
missinghelp2.png | 7.81 KB | jhodgdon |
Comments
Comment #1
dawehnerAre we sure that we don't have an issue for point b)?
We (plach, I) discussed that problem for quite a while. There are issues like the problem that they affect the potential query,
so we maybe should not tackle that in an issue which takes care about usability.
Comment #2
jhodgdonI don't know if there is another issue or not, sorry.
What we did for some of the other duplicated fields that appear in more than one table, such as Language fields, si we changed the Title and Description of these based on which table it is in. This is in EntityViewsData, for instance:
We may just need to do this more generically, for any fields that are duplicated between base table and data table. Either that or maybe remove duplicated fields from the base table if they also appear in the data table, aside from Language, which actually has a different meaning on each... but things like Node ID and Content Type don't.
Either that or we will have to do it case-by-case in the specific *ViewsData classes. :(
Comment #3
Lendudea) is related to #2424065: Remove "Error: missing help" messages, should you show help error messages when the title really doesn't need any additional help (like the case seems to be for front and sticky)
Comment #4
dawehnerI think we are done with this oddity now.
Comment #5
jhodgdonIndeed. (2) was fixed in the base class by removing the dups, and (1) was fixed on the issue mentioned in #3. So really this is a duplicate.