Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post data pushed to the feedback and occupancy table #198

Merged
merged 1 commit into from Jul 20, 2016
Merged

Post data pushed to the feedback and occupancy table #198

merged 1 commit into from Jul 20, 2016

Conversation

StanCallewaert
Copy link
Contributor

This issue should be fully fixed now: #181.

return 1;
break;
default:
return 2;
Copy link
Member

Choose a reason for hiding this comment

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

so when it's something different than these 2 URIs, you always have high occupancy?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They can only send low medium or high and at this point it is already to late to throw error messages because this code is executed after a 201 response has been sent. What is your proposal to improve this code?

Copy link
Member

Choose a reason for hiding this comment

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

I think the logic conclusion that you do validation before a 201 has been sent? :p

@pietercolpaert
Copy link
Member

I will merge this PR, but we should add a TODO to do better validation

@pietercolpaert pietercolpaert merged commit c1c26c6 into iRail:feature-postfeedback Jul 20, 2016
@StanCallewaert
Copy link
Contributor Author

@pietercolpaert agreed!

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.

None yet

2 participants