martinkearn / sports-team-organiser

A website for organising a sports team including who is playing and their payments.
MIT License
0 stars 0 forks source link

Object labels should be set at the class level #271

Open martinkearn opened 1 month ago

martinkearn commented 1 month ago

Every object has a "label" which generated in the service and/or used in the EntityTitleLink component.

This is all unnecessary. The Label is always based on concatenation of other properties so it should be set in the class on the setter for those properties and stored in data.

This will remove a lot of code and round trips.