Skip to content

Conversation

@TobiasPott
Copy link
Member

This PR adds invariant culture to the conversion methods used in Parse.
It prevents conversion based on a device's locale (e.g. french or german) to error on numbers encoded with invariant/US locale (which uses . instead of , as decimal delimiter).

In addition a test method is added (to check this method on the developers machine locale)
The test might be extended to explicitly use non-invariant locales for testing (e.g. german or french) to allow it to properly work on machines not using those locales by default.
I'm not quite sure on what basis I should pick those locales to test again, except for those two I know of which caused the error described in issue #305. (Feedback is appreciated on this one)

This pull request handles issue #305

…(french, german or similar) using , instead of . as decimal separators.

Closes issue parse-community#305
@codecov
Copy link

codecov bot commented Feb 4, 2019

Codecov Report

Merging #308 into master will decrease coverage by 0.31%.
The diff coverage is 40%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #308      +/-   ##
==========================================
- Coverage   59.09%   58.77%   -0.32%     
==========================================
  Files          91       91              
  Lines        6126     6128       +2     
==========================================
- Hits         3620     3602      -18     
- Misses       2506     2526      +20
Impacted Files Coverage Δ
Parse/Internal/ParseCorePlugins.cs 85.31% <ø> (ø) ⬆️
Parse/Public/ParseObject.cs 64.95% <0%> (-0.16%) ⬇️
Parse/Public/ParseClient.cs 74.07% <0%> (ø) ⬆️
Parse/Public/Utilities/Conversion.cs 100% <100%> (ø) ⬆️
Parse/Internal/Utilities/ParseUserExtensions.cs 28.57% <0%> (-42.86%) ⬇️
Parse/Internal/Utilities/ParseQueryExtensions.cs 33.33% <0%> (-33.34%) ⬇️
Parse/Internal/Utilities/ParseObjectExtensions.cs 50% <0%> (-25%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d0577f4...36ef6b0. Read the comment docs.

…I instead of parse.com key as the parse service is shut down since early 2017
…gisterSubclass methods, which take a reference to Type and un-/ register it as parse subclass
@TobiasPott TobiasPott merged commit 8d99527 into parse-community:master Feb 28, 2019
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.

1 participant