Skip to content

Refactors Controllers to split Controllers and Routers #534

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

Merged
merged 3 commits into from
Feb 20, 2016
Merged

Refactors Controllers to split Controllers and Routers #534

merged 3 commits into from
Feb 20, 2016

Conversation

flovilmart
Copy link
Contributor

  • Improves tests and coverage, fix bugs

@nlutsenko that's what we were talking about yesterday.

- Improves tests and coverage, fix bugs
@flovilmart flovilmart changed the title WIP: Refactors Controllers to split Controllers and Routers Refactors Controllers to split Controllers and Routers Feb 20, 2016
@flovilmart flovilmart changed the title Refactors Controllers to split Controllers and Routers WIP: Refactors Controllers to split Controllers and Routers Feb 20, 2016
@facebook-github-bot
Copy link

@flovilmart updated the pull request.

2 similar comments
@facebook-github-bot
Copy link

@flovilmart updated the pull request.

@facebook-github-bot
Copy link

@flovilmart updated the pull request.

@flovilmart flovilmart changed the title WIP: Refactors Controllers to split Controllers and Routers Refactors Controllers to split Controllers and Routers Feb 20, 2016
@facebook-github-bot
Copy link

@flovilmart updated the pull request.

@nlutsenko
Copy link
Contributor

Looks good so far, will take a deeper look in a bit.

@nlutsenko nlutsenko self-assigned this Feb 20, 2016
@flovilmart
Copy link
Contributor Author

@nlutsenko, we should add a piece around architecture in the CONTRIBUTING.md

@flovilmart
Copy link
Contributor Author

And could improve branch coverage in the controllers to 100% as the design begs for them to be fully test drive

@flovilmart flovilmart closed this Feb 20, 2016
@flovilmart flovilmart reopened this Feb 20, 2016
// Small additional tests to improve overall coverage
describe("FilesController",()=>{

it("should properly expand objects", (done) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we testing the fact that the controller doesn't expand non-necessary objects?
Can we have a reverse test? Say - expand a file with just a name, so it has the full url?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is already covered by the integration tests that are run through Parse.File.save

@nlutsenko
Copy link
Contributor

Yup, that's why we have very good coverage on the SDKs - the controllers should be tested as much as possible... Agreed about architecture in CONTRIBUTING.md, but not sure how many people actually read it before sending a Pull Request, and in a little bit - that piece will actually disappear, since we won't need an architecture doc, as the code will look nicer 😜

Can merge as is, the question about the test is not that relevant.

@flovilmart
Copy link
Contributor Author

You can merge as is, as the coverage improves compared to the master. I'll make another PR for more tests if needed.

@nlutsenko
Copy link
Contributor

We can make them as we go, merging now. Awesome work, sir!

nlutsenko added a commit that referenced this pull request Feb 20, 2016
Refactors Controllers to split Controllers and Routers
@nlutsenko nlutsenko merged commit 6f4a7a6 into parse-community:master Feb 20, 2016
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.

3 participants