Skip to content

Hydrate dash id keys#10

Merged
camsaul merged 3 commits into
metabase:masterfrom
plexus:hydrate-dash-id-keys
May 3, 2017
Merged

Hydrate dash id keys#10
camsaul merged 3 commits into
metabase:masterfrom
plexus:hydrate-dash-id-keys

Conversation

@plexus

@plexus plexus commented May 3, 2017

Copy link
Copy Markdown
Contributor

When hydrating, check for keys ending in either _id or -id.

Also fixes a test that would fail depending on the timezone.

Closes #6.

plexus added 3 commits May 3, 2017 16:52
java.sql.Timestamp/valueOf converts between local time and UTC, so the
result can be different when using #inst, depending on your timezone.
When hydrating, check for keys ending in either _id or -id.

Fixes metabase#6
Arguments to `some` were in the wrong order. Added a test for
`automagically-batched-hydrate` so this won't happen again.
@camsaul

camsaul commented May 3, 2017

Copy link
Copy Markdown
Member

@plexus this looks great, I'll play around with it and then if it all looks good I'll hit merge

@camsaul

camsaul commented May 3, 2017

Copy link
Copy Markdown
Member

Looks good. Thanks for the contribution

@camsaul
camsaul merged commit bc7de9f into metabase:master May 3, 2017
@camsaul

camsaul commented May 3, 2017

Copy link
Copy Markdown
Member

@plexus I've released version 1.0.3 which includes your changes.

@plexus
plexus deleted the hydrate-dash-id-keys branch May 3, 2017 19:03
@plexus

plexus commented May 3, 2017

Copy link
Copy Markdown
Contributor Author

Great! Thanks for the quick response 😍

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.

Make sure hydrate works with fields that end in -id

2 participants