Skip to content

Entity Ideas

WindBeneathYourWings edited this page Feb 19, 2022 · 1 revision

Entity

progammatic only??? - maybe

type extensions -- system level type -- profile level override / overlay

-- completely new types

type

  • extenible

  • target [entity]

profile types ????

system types can be stored in memory ???

Type

  • parent_id: 9

Type

  • target: "ad"

one target per type???

-- type is itself an entity

EntityType

access / permissions ??? - how do these work?

overlays only activate at the indibidual site level and possibly at the entity detail level.. possibly might be issues with that like styling

  • Hierarichal type vs. overlay ???? - two "types" of "type" -- lol

Product:Shirt

  • attr -- size (configurable) -- color (configurable)

When creating shirt "product" sku you select size and color

top - create-entity

  • filter on function handler -- specific entity

update-entity -- filter specific handler

lifecycle and event hooks - back to hooks??? - whether hook runs async or not???

-- you sould also need app context -- to alow multiple apps on same account --- hook need to include context like classifieds or blog for example - separate apps.

modules??

can tags be used??? - use tags as away to map functions to lifecycle and application?

hook_cls_entity_register - register entities with platform. hook_cls_entity_

hook_cls_entity_validate hook_cls_entity_precreate hook_cls_entity_postcreate

hook_entity_create hook_entity__name__create

ExecuteHook()

druid:entity

tags:

  • module:entity

  • hook:create

  • app:classifieds

  • priority: -- used for multiple match execution pipeline order

  • this function executes for these tags??? - cool,. yes?

trace logging - pull up log to easily see all interi communication based on hook executions.

modules

  • entity
    • hook: register_entities
    • hook: validate_entity

Ad

  • realestate:system -- realestate:profile:1 - overlay: true -- overlays activate when parent | root matched --- + neighborhood | widget:text | type:number --- - beds

When fetching type "realestate" applies all child overlays to system level type for profile? - owner / context???

GET entitity/xxxxx?finder=xxxx ????? - maybe

finder -> []items

Clone this wiki locally