Class: Labimotion::ApplicationEntity

Inherits:
Entities::ApplicationEntity
  • Object
show all
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.

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 as true on 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 hardcoded false on all three Designer list endpoints, which are the only places ownership is wanted. Off by default, so download_klass exports 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'