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

Pull in some object store changes #3718

Merged
merged 7 commits into from
Jun 8, 2016
Merged

Pull in some object store changes #3718

merged 7 commits into from
Jun 8, 2016

Conversation

bdash
Copy link
Contributor

@bdash bdash commented Jun 6, 2016

These changes are primarily recent work related to formatting error messages. The aim here is simply to reduce the diff between our version of the object store and upstream to avoid future merge issues.

@austinzheng
Copy link
Contributor

Looks good to me.

ObjectSchemaValidationException(object_type), m_old_property(old_property), m_new_property(new_property)
{
if (new_property.type != old_property.type) {
m_what = "Property types for '" + old_property.name + "' property do not match. Old type '" + string_for_property_type(old_property.type) +
"', new type '" + string_for_property_type(new_property.type) + "'";
m_what = util::format("Property types for '%1' property doe not match. Old type '%2', new type '%3'.",
Copy link
Contributor

@austinzheng austinzheng Jun 7, 2016

Choose a reason for hiding this comment

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

"do not"

@austinzheng
Copy link
Contributor

It still looks good.

@bdash bdash force-pushed the mar/update-object-store branch from f61d2a7 to dbeb922 Compare June 7, 2016 22:48
tgoyne and others added 6 commits June 7, 2016 15:49
The main motivation for this is that building error messages via string
concatenation is tedious and makes it hard to judge what the actual message
looks like when there are a lot of parts being inserted, to the extent that
I've been tempted to leave out some potentially useful information because the
code was getting unwieldy.

It also has some small functional benefits: bools are printed as true/false
rather than 1/0, and it is optimized for minimizing the compiled size.
Currently it cuts ~30 KB off librealm-object-store.dylib even with the addition
of new functionality.
make_unique<TableView> causes ambiguous call with NDK's default gnustl.
Compiler fails to decide which constructor of Query to use.
This brings them into line with the equivalent exceptions used by
`Results`. `DetatchedAccessorException` is removed as it is never
thrown by `List`.
@bdash bdash force-pushed the mar/update-object-store branch from dbeb922 to b81362f Compare June 7, 2016 22:50
@tgoyne
Copy link
Member

tgoyne commented Jun 7, 2016

👍

@bdash bdash merged commit 4ab337f into master Jun 8, 2016
@bdash bdash deleted the mar/update-object-store branch June 8, 2016 00:37
@bdash bdash removed the S:Review label Jun 8, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants