Closed manuelma closed 8 months ago
I'd prefer entity_byname also when its entity PublicItem. Since byname is used only with entities, it's bit more difficult to remember to switch to byname when the PublicItem is entity (compared to name, where it's more natural to call any PublicItem by 'name' only).
Regarding entity_class_name, I think we should go with the long form, since that's what it is called elsewhere in the code and in the UI. The shorter form could be ok, if we would then also switch to that everywhere else as well (although in GUI we should probably keep using entity class).
I was browsing through the code and realised class_name is used there much more than entity_class_name. So, ok also to switch to class_name. We don't have any other classes than entity classes in the foreseeable future. Maybe in the UI it's good to keep using entity class name to make things as clear as possible.
Forgot to update the tutorial.
We use class_name for entity and entity_group, and entity_class_name for everything else. We should make it consistent. I am not sure if I prefer entity_class_name over class_name. class_name can be nice too.
We also use byname for entity, and entity_byname for everything else. We could use entity_byname even for entity.