[Maybe] Use name
or title
consistently?
#91
Labels
Dev
This is a dev priority ticket, not strictly user-facing.
name
or title
consistently?
#91
We have 3 objects in our NOFO objects.
They are in a one-to-many hierarchical relationships. So 1 Nofo can have many Sections. And 1 Section can have many Subsections.
However, one thing that I find very confusing is the "name", "title" fields. Looking at those models, it goes like this:
nofo.title
section.name
subsection.name
I used "title" because that's what Grants.Gov is using (example here: https://grants.gov/search-results-detail/355839) but "name" seemed more appropriate for the smaller sections and subsections. It was 100% up to me what we called them and I walked right into this rake. But it annoys me that we call this field different things when it performs the same function.
Changing them would be a bunch of work and mean having to migrate the data but I find this very annoying.
If we wanted to do this, we would need to pick which one to go with (maybe "title" for everything?) and then migrate.
We can only do this before we have a public API, otherwise we will cause a breaking change and it will be much harder to coordinate that.
The text was updated successfully, but these errors were encountered: