Skip to content

Issue #70#84

Open
ehammo wants to merge 1 commit into
devfrom
issue_70
Open

Issue #70#84
ehammo wants to merge 1 commit into
devfrom
issue_70

Conversation

@ehammo
Copy link
Copy Markdown
Member

@ehammo ehammo commented Jun 27, 2019

Added Board CRUD following the new arch/style
Created integration tests for board endpoints

Created integration tests for board endpoints
Copy link
Copy Markdown
Contributor

@viniciusalbuquerque viniciusalbuquerque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we just need to be sure if topics would be an array.

validateFullBoard (Board) {
Joi.validate(Board, Joi.object({
id: Joi.string().required(),
topics: Joi.array().items(Joi.string()).required(),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think 'topics' is not going to be an array. I think it's going to be a dictionary like:
{1: 'Less', 2: Keep, 3: 'More', 4: 'Start', 5: 'Stop'}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not an array?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is. What I mean is that it won't be an array.

Copy link
Copy Markdown
Contributor

@viniciusalbuquerque viniciusalbuquerque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make the changes with the new version of branch dev


getRoutes () {
this.app.get('/', (req, res) => {
this.genericRouter.execute(this.boardController.getAllBoards
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changed and you either have to use executeOld or pass a mapper to the execute function

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing for all of the definitions here in this file

}

// todo : remove unused params
// eslint-disable-next-line no-use-before-define
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants