openspending/spendb

Clearer functions for dimension attributes

Closed this issue · 0 comments

pudo commented

At the moment, all dimensions have n attributes, but there's no way to specify what their respective function is. We should add model metadata to answer functions like the following:

  • If I want to show a whole dimension as a string label, which attribute do I use?
  • If I want to generate an URL slug for a dimension, which attribute do I use?
  • If I want to generate the unique set for a dimension, which attribute do I use?