Marketplace/Fake Data: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
Line 29: Line 29:
* Generate packaged apps with multiple versions
* Generate packaged apps with multiple versions
* Create script that generates a database suitable for local dev (syncdb, loaddata, generate accounts, apps, etc)
* Create script that generates a database suitable for local dev (syncdb, loaddata, generate accounts, apps, etc)
* Add ability to load config file/JSON data describing data to create
* Generate identicons (https://github.com/blog/1586-identicons) or other distinct image for apps
* Generate identicons (https://github.com/blog/1586-identicons) or other distinct image for apps



Revision as of 17:23, 2 September 2014

Tools and libraries for generating data are needed to exercise every part of our code without unnecessary storing/sharing of data from production.

To meet this need, convenience functions for generating data are being added to zamboni (currently they live here: https://github.com/mozilla/zamboni/blob/2efc0527/mkt/webapps/tasks.py#L849-L965 ), and are used by a simple command line app, ./manage.py generate_apps (see Marketplace/Fake_Data/App_Generator for details and planned features.)

Types of data to generate

  • Hosted apps
  • Packaged apps
  • Packaged app versions
  • User accounts
  • User reviews
  • Icons
  • Previews
  • Localized strings

User stories

New developers

A new developer follows the instructions on https://zamboni.readthedocs.org/ to create a new development configuration. He creates an admin user account and runs a command that creates a variety of apps, some of them owned by his new account, some not.

Existing developers

A Zamboni developer needs to create apps in a specific state with specific properties, and so runs a command with flags/options specifying what's needed.

marketplace-dev deployment

When Zamboni is deployed in a non-production role, a variety of different apps are created with status and data appropriate for every use case that QA needs to test. A list of cases to generate can be found here: https://etherpad.mozilla.org/app-types

TODO

  • Generate apps with various statuses
  • Generate packaged apps
  • Generate packaged apps with multiple versions
  • Create script that generates a database suitable for local dev (syncdb, loaddata, generate accounts, apps, etc)
  • Add ability to load config file/JSON data describing data to create
  • Generate identicons (https://github.com/blog/1586-identicons) or other distinct image for apps

Bugs

Tracking bug: 1059418.

No results.

0 Total; 0 Open (0%); 0 Resolved (0%); 0 Verified (0%);