import { Person, Organization, Report } from "models"
import { createHierarchy } from "../../stories/OrganizationStories"
import { createPerson } from "../../stories/PersonStories"
import { createReport } from "../../stories/ReportStories"

const buildupLotsOfData = [
  {
    name: "Create active advisor",
    number: 2000,
    runnable: createPerson,
    userTypes: ["existingAdmin"],
    arguments: { role: Person.ROLE.ADVISOR, status: Person.STATUS.ACTIVE }
  },
  {
    name: "Create inactive advisor",
    number: 10000,
    runnable: createPerson,
    userTypes: ["existingAdmin"],
    arguments: { role: Person.ROLE.ADVISOR, status: Person.STATUS.INACTIVE }
  },
  {
    name: "Create active principal",
    number: 10000,
    runnable: createPerson,
    userTypes: ["existingAdmin"],
    arguments: { role: Person.ROLE.PRINCIPAL, status: Person.STATUS.ACTIVE }
  },
  {
    name: "Create inactive principal",
    number: 10000,
    runnable: createPerson,
    userTypes: ["existingAdmin"],
    arguments: { role: Person.ROLE.PRINCIPAL, status: Person.STATUS.INACTIVE }
  },
  {
    name: "Create advisor organization",
    number: 200,
    runnable: createHierarchy,
    userTypes: ["existingAdmin"],
    arguments: {
      type: Organization.TYPE.ADVISOR_ORG,
      status: Organization.STATUS.ACTIVE,
      subOrgs: false
    }
  },
  {
    name: "Create principal organization",
    number: 1000,
    runnable: createHierarchy,
    userTypes: ["existingAdmin"],
    arguments: {
      type: Organization.TYPE.PRINCIPAL_ORG,
      status: Organization.STATUS.ACTIVE,
      subOrgs: false
    }
  },
  {
    name: "Create published report",
    number: 200000,
    runnable: createReport,
    userTypes: ["existingAdmin"],
    arguments: { state: Report.STATE.PUBLISHED }
  }
]

export default buildupLotsOfData

@@ -1642,16 +1642,19 @@
 d report
+ #1
 %22,%0A    n
@@ -1661,19 +1661,1271 @@
 umber: 2
+5
 000
+,%0A    runnable: createReport,%0A    userTypes: %5B%22existingAdmin%22%5D,%0A    arguments: %7B state: Report.STATE.PUBLISHED %7D%0A  %7D,%0A  %7B%0A    name: %22Create published report #2%22,%0A    number: 25000,%0A    runnable: createReport,%0A    userTypes: %5B%22existingAdmin%22%5D,%0A    arguments: %7B state: Report.STATE.PUBLISHED %7D%0A  %7D,%0A  %7B%0A    name: %22Create published report #3%22,%0A    number: 25000,%0A    runnable: createReport,%0A    userTypes: %5B%22existingAdmin%22%5D,%0A    arguments: %7B state: Report.STATE.PUBLISHED %7D%0A  %7D,%0A  %7B%0A    name: %22Create published report #4%22,%0A    number: 25000,%0A    runnable: createReport,%0A    userTypes: %5B%22existingAdmin%22%5D,%0A    arguments: %7B state: Report.STATE.PUBLISHED %7D%0A  %7D,%0A  %7B%0A    name: %22Create published report #5%22,%0A    number: 25000,%0A    runnable: createReport,%0A    userTypes: %5B%22existingAdmin%22%5D,%0A    arguments: %7B state: Report.STATE.PUBLISHED %7D%0A  %7D,%0A  %7B%0A    name: %22Create published report #6%22,%0A    number: 25000,%0A    runnable: createReport,%0A    userTypes: %5B%22existingAdmin%22%5D,%0A    arguments: %7B state: Report.STATE.PUBLISHED %7D%0A  %7D,%0A  %7B%0A    name: %22Create published report #7%22,%0A    number: 25000,%0A    runnable: createReport,%0A    userTypes: %5B%22existingAdmin%22%5D,%0A    arguments: %7B state: Report.STATE.PUBLISHED %7D%0A  %7D,%0A  %7B%0A    name: %22Create published report #8%22,%0A    number: 250
 00,%0A    

Split single reports scenario into 8 parallel ones