You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rtxm
changed the title
Decouple Core APIs (Component and Internal) of Card BO from its parents.
Define Core APIs and properties (Component and Internal) of Card BO and dependencies.
Nov 25, 2015
rtxm
changed the title
Define Core APIs and properties (Component and Internal) of Card BO and dependencies.
Define Core APIs and properties of Card BO and dependencies.
Nov 25, 2015
Depends on #94, #96.
Core API
We distinguish to kinds of core API:
Internal methods are used by the component only. In particular, methods and callbacks for the views are found here.
Business methods and properties
set_title
get_title
(or property)delete
: prepare component to be deleted. It's up to the column BO to actually delete it, and to the column Data Model to destroy the DataCard.Internal methods and properties
uid
: to get the card uuid (prop)?data
: to get DataCardreload
: to initialise all feature components. See Card component : handle features in a generic manner. #96.View specific
Methods to move elsewhere
move_card
: only Boards can do that.Methods and properties to remove
column
: remove from card API. If you need to communicate with parent, usecomp.answer
to send an event. Maybe still needed in features API.must_reload_search
,reload_search
: send an event instead. See Centralize History feature at board level #85, bubbling events.board
: if you need to communicate with ancestor, send an event.Features API
To be grouped apart, with comments. These functions will be moved to extensions when those have their own data models.
favorites
: remove direct access to Column, usecomp.answer
to send an event.weight
get_authorized_users
: remove direct access to Column, usecomp.answer
to send an event.get_authorized_users
get_available_labels
: remove direct access to Column, usecomp.answer
to send an event.*_member*
methods: remove direct access to history/column, usecomp.answer
to send an event.The text was updated successfully, but these errors were encountered: