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

[RFC] Added typing support #36

Merged
merged 3 commits into from
Jul 9, 2018
Merged

[RFC] Added typing support #36

merged 3 commits into from
Jul 9, 2018

Conversation

jeremyharris
Copy link
Collaborator

Adds type support to versions. You can now save versions that have fields with non scalar types, and all version entities now respect the field's type.

@chris48s
Copy link
Contributor

Will leave maintainer to review, but quick drive-by comment:

In order to get those Postgres builds to pass, you'll need to run them against version 9.4 or above for jsonb support (Travis CI uses version 9.1 by default ). You can do that by adding

addons:
  postgresql: "9.4"

to .travis.yml.

@jeremyharris
Copy link
Collaborator Author

Thanks @chris48s, I added it to the travis yaml. If José wants, we can remove that change and I can add a skip to the test case if it's in the postgresql build.

* @param string $direction Direction (toPHP or toDatabase)
* @return array
*/
protected function _convertFieldsToType(array $fields, $direction)
Copy link
Owner

Choose a reason for hiding this comment

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

Can we get a test for this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is implicitly tested in the new tests, except for the invalid argument exception which I can add a test for.

Copy link
Owner

Choose a reason for hiding this comment

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

I want an explicit test.

@coveralls
Copy link

coveralls commented May 25, 2018

Coverage Status

Coverage increased (+3.03%) to 78.634% when pulling 2f55cb8 on jeremyharris:types into 9805605 on josegonzalez:master.

@jeremyharris
Copy link
Collaborator Author

ping

@josegonzalez josegonzalez merged commit 10ad5a7 into josegonzalez:master Jul 9, 2018
@jeremyharris
Copy link
Collaborator Author

Thanks a bunch!

@jeremyharris jeremyharris deleted the types branch July 9, 2018 16:26
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.

4 participants