Skip to content

Fix custom properties#598

Merged
yahia-kerim merged 1 commit intomongoosastic:masterfrom
callumgare:fix-custom-properties
Aug 25, 2022
Merged

Fix custom properties#598
yahia-kerim merged 1 commit intomongoosastic:masterfrom
callumgare:fix-custom-properties

Conversation

@callumgare
Copy link
Copy Markdown
Contributor

@callumgare callumgare commented May 6, 2022

As far as I can tell the "customProperties" option is broken. The docs mention a option called customProperties can be passed in but looking at the actual code such an option is never used. A properties option is however used so I can only assume this what the docs mean to say instead of customProperties.

There is a test for customProperties but it doesn't work for a number of reasons including the fact that it doesn't call createMapping() which the docs state (and I can confirm) is needed for these properties to be used.

I have updated the documentation and fixed + extended the tests.

@stale
Copy link
Copy Markdown

stale Bot commented Aug 13, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale Bot added the stale label Aug 13, 2022
@callumgare
Copy link
Copy Markdown
Contributor Author

This is still applicable

@guumaster guumaster requested a review from yahia-kerim August 24, 2022 14:56
@guumaster
Copy link
Copy Markdown
Member

LGTM. Please @yahiakr if you can review and approve.

@guumaster guumaster removed the stale label Aug 24, 2022
Copy link
Copy Markdown
Collaborator

@yahia-kerim yahia-kerim left a comment

Choose a reason for hiding this comment

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

Hey @callumgare, Thank you for your contribution.

LGTM!

@yahia-kerim yahia-kerim merged commit f585e4f into mongoosastic:master Aug 25, 2022
callumgare added a commit to callumgare/mongoosastic that referenced this pull request Sep 19, 2022
callumgare added a commit to callumgare/mongoosastic that referenced this pull request Sep 19, 2022
guumaster pushed a commit that referenced this pull request Sep 19, 2022
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.

3 participants