Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Flutter App for Memri Flutter App for Memri
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 211
    • Issues 211
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MemriMemri
  • Flutter App for MemriFlutter App for Memri
  • Merge requests
  • !361

Add Sample Data

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Aziz Berkay Yesilyurt requested to merge aziz/sample-data into dev Aug 16, 2022
  • Overview 20
  • Commits 30
  • Pipelines 12
  • Changes 16

This MR adds a way to upload sample data to provide a way to test our app without using any plugins. The idea is to use the same data structures used by Whatsapp plugin to minimize the changes. This might be problematic when we decide to change the whatsapp plugin itself.

The idea is to read a list of json files from https://gitlab.memri.io/memri/sample-dataset repository and import them to the pod.

Summary of the high level changes:

  • Added sample_data.dart which fetches a list of json files and creates respective objects.
  • Added an enum to switch between data sources in project_provider.
  • Inbox only shows Messages and MessageChannels with service = whatsapp.

Limitations:

  • No way to clean up created data made by sample data.
  • Data structure is coupled with Whatsapp plugin, some changes there might break this feature.
Edited Aug 17, 2022 by Aziz Berkay Yesilyurt
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: aziz/sample-data