Page MenuHomePhabricator

External surveys can be configured from the extension configuration
Closed, ResolvedPublic1 Estimated Story Points

Description

As a stakeholder interested in showing an external survey to readers, I should be able to add an external survey specifying:

  • survey code name (identifier for the survey)
  • type (quick, external)
  • a phrase to explain what the survey is about (i18n json key, + json qqq & en values)
  • the external link to the survey
  • the link to privacy policy with a text for such link (i18n json key, + json qqq & en values)
  • if the survey is enabled or not
  • which % of users will see the survey
  • platform targets for the survey (mobile, desktop, etc)...
    • For each platform, which version of it is targeted (stable, beta, alpha)

AC:

  • Configuration for external surveys is created
    • and can be accessed from php & in the browser JS
    • Fields specified can be changed in the configuration of the extension
    • There's an example external survey with all config values that is disabled
    • Disabled surveys are not sent or accessible from the browser

Event Timeline

Jhernandez raised the priority of this task from to Medium.
Jhernandez updated the task description. (Show Details)
Jhernandez subscribed.

@Jdlrobson, isn't this task about configuring external surveys? If yes, https://gerrit.wikimedia.org/r/#/c/229989/ should be sufficient.

Change 230941 had a related patch set uploaded (by Bmansurov):
Add example configuration for external surveys

https://gerrit.wikimedia.org/r/230941

Change 230941 merged by jenkins-bot:
Add example configuration for external surveys

https://gerrit.wikimedia.org/r/230941

Does this send localized config or just the keys for the i18n?

See question : https://phabricator.wikimedia.org/T107586#1537181
And my answer https://phabricator.wikimedia.org/T107586#1538869

@Jdlrobson @rmoen @bmansurov @phuedx lets sync on this since both tasks
this and T107586 should do the same strategy regarding sending localized
(or not).

This one is done by design of the quick surveys version of the task, so I'm closing this one but let's address the concerns of i18n on T107586