Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Refactoring and test fixes #14

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Refactoring and test fixes #14

wants to merge 16 commits into from

Conversation

moooji
Copy link

@moooji moooji commented Sep 2, 2015

Changes:

  • Fixed issue that most of the tests would always pass incorrectly
  • Hardened various tests to check for correct property values
  • Removed deprecated save methods
  • Changed to deferred indexing of documents so that only documents will be indexed that have successfully been stored in the database. Furthermore, MongoDB performance is not any longer affected by indexing and no data loss will occur in MongoDB in case that the search index is unavailable
  • "underscore" has been replaced with "lodash" for better performance and stronger checks
  • renderMapping function has been refactored and simplified so that it is easier to comprehend and debug
  • Various bug fixes and stronger checks

Additions:

  • options can now be supplied to registerModel function, which makes it possible to pass elasticsearch "index settings" for index creation
  • Tests have been added and documentation has been updated

Breaking change:

  • "modelname" has been renamed to more standard "modelName"

…nd what / how is happening

- Switched from "underscore" to "lodash" package for stronger checks and better performance
Refactoring of renderMapping function
Feature - registerModel takes now options to supply elasticsearch "index settings"
Added tests and updated documentation for "index settings"
- Fixed issue that most of the tests would always pass incorrectly
- Hardened various tests to check for correct property values
- Removed deprecated save methods
- Changed to deferred indexing of documents so that only documents will be indexed that have successfully been stored in the database. Furthermore, MongoDB performance is not any longer affected by indexing and no data loss will occur in MongoDB case that the search index is unavailable
- Various bug fixes
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant