Class: Labimotion::ApplicationEntity
- Inherits:
-
Entities::ApplicationEntity
- Object
- Entities::ApplicationEntity
- Labimotion::ApplicationEntity
- Defined in:
- lib/labimotion/entities/application_entity.rb
Overview
ApplicationEntity This class serves as the base entity for the Labimotion module, inheriting from the core ApplicationEntity and providing custom formatting.
Direct Known Subclasses
ElementRevisionEntity, ElementVariationEntity, ElnElementEntity, GenericEntity, GenericKlassEntity, GenericPublicEntity, KlassRevisionEntity, KlassShareEntity, PropertiesEntity, SegmentRevisionEntity, UserEntity, UserKlassSettingEntity, VocabularyEntity
Constant Summary collapse
- DISPLAYED_IN_LIST_CONDITION =
Common condition for fields that should not be displayed in list views
{ unless: :displayed_in_list }.freeze
- WITH_OWNERSHIP_CONDITION =
Ownership is opt-in per call site and deliberately does NOT reuse
displayed_in_list. That option is passed astrueon the payloads submitted to the central Template Hub (labimotion_hub_api.rb:76, :103), so keying ownership on it would ship local user identity off-instance; and it is hardcodedfalseon all three Designer list endpoints, which are the only places ownership is wanted. Off by default, sodownload_klassexports and Hub submissions stay clean without having to opt out. { if: :with_ownership }.freeze
- ELN_TIMESTAMP_FORMAT =
ISO 8601. A zone name (strftime '%Z', e.g. "UTC") is not a valid ISO zone designator, so clients parsing it with moment.js fall back to
new Date()— engine-specific behaviour. '%Y-%m-%dT%H:%M:%S%z'