-
Notifications
You must be signed in to change notification settings - Fork 18
Fix _geo point not being correctly parsed #147
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
Conversation
154: Fix geo point with tests r=bidoubiwa a=oplik0 # Pull Request ## Related issue Fixes #143 ## What does this PR do? - this is a corrected version of #147 - the issue with tests was a Jest issue that appears to have been fixed in v28. - While experimenting with this, I also updated the firebase packages - decided to leave them at newer versions instead of rolling these changes back - Made some small changes to tests to align them with output format of `adaptFields` - Re-added logging geopoint information to `adaptFields` to align with tests - Added eslint-import-resolver-typescript, because without it the eslint import plugin doesn't work with `exports` in `package.json` which marked all `firebase-admin` imports as lint errors. ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Co-authored-by: oplik0 <[email protected]>
the import plugin doesn't support `exports` property in package.json so it doesn't see newer firebase-admin exports. eslint-import-resolver-typescript fixes this
c605539
to
1fdb61e
Compare
9c9fb01
to
bf2ba8b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few questions, but Well Done!!!
@@ -0,0 +1,118 @@ | |||
'use strict' | |||
/* | |||
* Copyright 2022 Meilisearch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have to change this every year?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question, I looked at other plugins and they don't have that disclaimer on top of the file. Im opining an issue to remove them
…isearch into fix_geo_point
bf2ba8b
to
342e4ff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🎉
bors merge |
Build succeeded:
|
fixes: #143
If a user provides a field named
_geo
with aGeoPoint
type, the type will be transformed into a Meilisearch geopoint compatible format.In firestore:
In Meilisearch it becomes: