(core): automatic start of services
Description
In our XML applications, it is often tedious to start services manually. When developing, people tend to forget the <start>
tags. It is also confusing to be able to start some services at the bottom, and most UI services through the shorter syntax start="true"
attributes of menus and views. When a service uses a deferred object, it can not benefit from the short syntax and needs to be started with <start>
tag at the end of the configuration.
Proposal
Actually, <start>
tags are not necessary for most cases. They are there for two reasons:
- the start order
- the will to not start a service (very rare case)
I would propose to explicit these two exceptional cases and consider that all services should be started by default. I would add two attributes to the <service>
tag:
- start="false|true", with true by default
- priority="N", with 0 by default, a lower value means the service should be started before.
This would also probably means we would stop using start
tags in GUI views configurations, which would harmonize everything.
Functional specifications
Usually a refactor does not alter functional specifications, but if there is any change to the workflow, UX/UI design, screenshots, etc..., please describe it here
Technical specifications
Details of the implementation
Test plan
Describe how you will verify that the implementation fulfils the specifications