Coder Social home page Coder Social logo

mywind_test_data's Introduction

CareSet MyWind

This started out as a hacked fork of https://github.com/dalers/mywind Which is itself an example of the Microsoft Northwind database

Since then it has grown into a test database that is specifically designed to both show-off and to deeply test the capabilities of two CareSet Open Source Projects.

It is modified specifically as a test platform for DURC and Zermelo

Which are the Laravel data viewing and data editing projects from CareSet.

Use:

php load_databases.php

At this point the reports should work. However, there is not really enough data included here to really test some of the features designed to work with larger datasets. If you would like, you can generate random data which will inflate the contents of MyWind_northwind_data with somewhat reasonable results. To do this, run

php inflate_mywind.php 10000 

Which will generate the kind of data that you might expect a small business to actually have.

This will ask for your root password to MySQL and will delete and reload all of the MyWind_XXX databases

The northwind_data and northwind_model tables

The original port of that db structure lives under the northwind_start subdirectory.

It is super helpful to see the diagram: https://raw.githubusercontent.com/dalers/mywind/master/northwind-erd.png

which has been copied to /diagrams for good measure.

The version of the northwind database in this directory splits the original databases into multiple database, in order to intentionally add complexity to the DURC compiler. It also either enforces the DURC naming conventions or uses Foreign Keys to ensure that the DURC can understand and properl model the relationships in the data

Tests:

  • Verify that cross database linking is occuring correctly when DURC is called with both the northwind_model and northwind_data database as arguments
  • verify that all of the select2 drop downs are working for object creation
  • verify that the listing of data in the list mode in DURC is working correctly, and paging correctly.

The aaa and irs test database tables

The irs database is an actual list of non-profit names. The aaa database has a bunch of random DURC related test tables, but mostly it has a table called "donation" which links to nonprofitcorp_id which should invoke DURC to use a select2 chooser that hits the irs database, which has enough rows that it servers as a reasonable test of the select2 functionality.

Tests:

  • Make sure that you can create new donations in the aaa database, and select very different nonprofit organizations by name.
  • donations should support soft-delete
  • Verify that Foreign Keys are working using foreignkeytestthingy, etc
  • Verify that funnything table has reasonable editing functionality. This is just a list of commonly used MySQL data types
  • The 'Should be Ignored' table is there precicely to show that DURC will ignore tables with spaces in the names
  • All of the bookstore data tables are tests to make certain that basic select2 linking works correctly.
  • the blog and comment tables are similar, but for the simpler one to many data model works.
  • the sibling table exists to ensure that DURC can handle self-referential tables, even double links to self-referential tables
  • test_created_only exists to ensure that DURC can hendle the case where there is no updated_at field correctly.
  • test_boolean has only fields that should just be checkboxes
  • vote table exists to ensure that tables with out names work correctly and that the number is not misused as a linking column etc.
  • the magic field table supports the creation of markdown and several code fields, as well as user editable datetime and date. This should automatically envoke special editors in DURC.

mywind_test_data's People

Contributors

ftrotter avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.