Hi there! We encountered an issue with passing field names from a datasource plugin, which is documented here: Setting of config.displayName appears to clash with Grafana handling of displayName · Issue #53 · fifemon/graphql-datasource · GitHub. It boils down to a lack of clarity (or understanding) about how exactly the field name/title/label should be passed by the datasource. There appear to be at least three options:
Based on the (not so clear) discussion in this PR, I was left with the impression that
displayNameFromDS would be the correct way to go. But in actual implementation, both options (2) and (3) lead to undesirable results when an Outer Join transformation is applied (see Missing columns in Organize Fields transformation after Outer Join (New in 7.4) · Issue #31104 · grafana/grafana · GitHub). I.e., it appears that setting either
config.displayNameFromDS interferes with Grafana’s subsequent handling of field names.
All in all, can anyone confirm that option (1) - i.e. setting
fields[..].name - is the correct approach for setting a title? And under what circumstances should the other approaches be used? This feels like an important interface to get right.