View Issue Details

IDProjectCategoryView StatusLast Update
0020578mantisbtplug-inspublic2016-02-08 05:10
Reportercproensa Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Product Version1.3.0-rc.2 
Summary0020578: move some events into core API
Description

Events that are not UI dependant, should be moved to core API
This way their use is consistent from all contexts: web UI, soap API, plugin code...

EVENT_REPORT_BUG_DATA (Chain)
EVENT_REPORT_BUG (Execute)
EVENT_UPDATE_BUG_DATA (Chain)
EVENT_UPDATE_BUG (Execute)
EVENT_BUG_ACTION (Execute)
EVENT_BUG_DELETED (Execute)
EVENT_BUGNOTE_EDIT (Execute)
EVENT_TAG_ATTACHED (Execute)
EVENT_TAG_DETACHED (Execute)
EVENT_MANAGE_PROJECT_UPDATE (Execute)
EVENT_MANAGE_VERSION_UPDATE (Execute)
EVENT_MANAGE_USER_UPDATE (Execute)

??
EVENT_ACCOUNT_PREF_UPDATE (Execute) *
EVENT_MANAGE_PROJECT_CREATE (Execute) **

  • api function possibly also used from within core
    ** probably not possible as is, project creation is not atomic

already in core api:
EVENT_BUGNOTE_ADD (Execute)
EVENT_BUGNOTE_DELETED (Execute)
EVENT_MANAGE_PROJECT_DELETE (Execute)
EVENT_MANAGE_VERSION_CREATE (Execute)
EVENT_MANAGE_VERSION_DELETE (Execute)
EVENT_MANAGE_USER_CREATE (Execute)
EVENT_MANAGE_USER_DELETE (Execute)

TagsNo tags attached.

Relationships

related to 0011993 acknowledged trigger events when bug added etc via soap 
related to 0013498 acknowledged EVENT_REPORT_BUG not raised via SOAP API 
related to 0020576 new create new event, preprocess bug action, type chain. 
related to 0014897 acknowledged Plugins events features request 

Activities

dregad

dregad

2016-02-08 04:29

developer   ~0052481

I think this is a good thing to do.

cproensa

cproensa

2016-02-08 04:46

developer   ~0052482

Last edited: 2016-02-08 05:10

not easy though.
I am reviewing those events to come up with the implied issues.

One common problem: some operations are not atomic, and are performed as several steps outside core api.
That situation is already an issue with some events, and can become an additional issue for other events if moving them into core.
However, that may be another thread of discussion, example: 0003759

dregad

dregad

2016-02-08 04:52

developer   ~0052484

Never said it would be easy ;-)

cproensa

cproensa

2016-02-08 04:56

developer   ~0052485

Another note:
triggering events from core may be open to ciclyc events?