-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from root-systems/feature/add-params-to-task-…
…plan backend to create all the respective objects and relations on order start
- Loading branch information
Showing
28 changed files
with
371 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { createStructuredSelector } from 'reselect' | ||
|
||
import getTaskPlans from '../../tasks/getters/getTaskPlans' | ||
import getParentTaskPlans from '../../tasks/getters/getParentTaskPlans' | ||
|
||
const getDashboardProps = createStructuredSelector({ | ||
taskPlans: getTaskPlans | ||
taskPlans: getParentTaskPlans | ||
}) | ||
|
||
export default getDashboardProps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
exports.up = function (knex, Promise) { | ||
return knex.schema.table('taskPlans', function (table) { | ||
table.json('params').references('taskPlans.id') | ||
}) | ||
} | ||
|
||
exports.down = function (knex, Promise) { | ||
return knex.schema.table('taskPlans', function (table) { | ||
table.dropColumn('params') | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
exports.up = function (knex, Promise) { | ||
return knex.schema.createTableIfNotExists('orders', function (table) { | ||
table.increments('id') | ||
table.integer('agentId').references('agents.id') | ||
}) | ||
} | ||
|
||
exports.down = function (knex, Promise) { | ||
return knex.schema.dropTableIfExists('orders') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
exports.up = function (knex, Promise) { | ||
return knex.schema.table('taskPlans', function (table) { | ||
table.dropColumn('assignee') | ||
table.integer('assigneeId').references('assignee.id') | ||
}) | ||
} | ||
|
||
exports.down = function (knex, Promise) { | ||
return knex.schema.table('taskPlans', function (table) { | ||
table.string('assignee').notNullable() | ||
table.dropColumn('assigneeId') | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { combineEpics } from 'redux-observable' | ||
|
||
import { epic as agents } from 'dogstack-agents' | ||
import ordering from './ordering/epic' | ||
import { epic as taskPlans } from './tasks/dux/plans' | ||
import { epic as taskWorks } from './tasks/dux/works' | ||
import { epic as orders } from './ordering/dux/orders' | ||
|
||
export default combineEpics( | ||
agents, | ||
ordering, | ||
orders, | ||
taskPlans, | ||
taskWorks | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import createModule from 'feathers-action' | ||
|
||
const module = createModule('orders') | ||
|
||
export const actions = module.actions | ||
export const updater = module.updater | ||
export const epic = module.epic |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.