As a stakeholder interested in showing an quick-question survey to readers, I should be able to add a new quick survey specifying:
- survey code name (identifier for the survey)
- type (quick, external)
- a question to ask to the readers (i18n json key, + json qqq & en values) - these questions can come from the WikimediaMessages extension
- possible answers as a list of text options (i18n json key, + json qqq & en values) with a qualifier (positive, neutral, negative)
- where (an EL schema name) to log the answers
- which % of users will see the survey
- if the survey is enabled or not
- the platform targets for the survey (mobile, desktop, etc).
- For each platform, which version of it is targeted (stable, beta, alpha)
AC:
- Configuration for quick surveys is created
- and can be accessed from php & in the browser JS
- Fields specified can be changed in the configuration
- There's an example quick survey with all config values that is disabled
- If a survey gets disabled, then the definition of the survey is not sent to the client. e.g. if no surveys are enabled no config data will be accessible from mw.config