Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@spencern
Copy link
Contributor

Impact: breaking
Type: feature

Issue

This PR removes the search-mongo and ui-search plugins from the imports/plugins/included directory of reaction. It also removes the search bar from the operator orders UI that depended upon the search-mongo. It cleans up the util functions run by some of the migrations used to setup the mongo search collections.

We're doing this because we've found that some of the app event hooks within this plugin fire even when the plugin is disabled. Having these events run can cause considerable slowness when publishing a product to the catalog. This issue is exacerbated when importing and publishing large sets of products simultaneously.

When updating our storefront and operator UIs, we've moved away from using this search package. While there are better search options for most users of Reaction, such as ElasticSearch, we do plan to support basic search functionality out of the box for both the storefront and for the operator UIs.

The operator order management UI is very sluggish. This PR does not attempt to resolve any issues related to the order management UI.

Breaking changes

Removes order search bar from operator order UI.
Removes search-mongo and ui-search plugins from reaction.

Testing

  1. Ensure the app builds successfully from a fresh install or from an existing install.
  2. Check the operator orders panel. Ensure orders load and that the filters continue to work.

This commit removes our `search-mongo` plugin from the
`imports/plugins/included` directory of `reaction`.

We're doing this because we've found that some of the app event hooks
within this plugin fire even when the plugin is disabled.
When a custom search plugin is used, having these events run can
cause considerable slowness when publishing a product to the catalog.
This issue is exacerbated when importing and publishing large sets
of products simultaneously.

We'll include `search-mongo` as an optional plugin, but keep it OSS.

BREAKING CHANGE: Removes `search-mongo` plugin from `included` plugins.
Install `search-mongo` into your `custom` plugins directory to maintain
identical functionality.

Signed-off-by: Spencer Norman <[email protected]>
Removes order operator search bits.
Also updates `searchcollections.js` util files to run
`buildAccountSearch` and `buildOrderSearch` as noop.

Signed-off-by: Spencer Norman <[email protected]>
@spencern spencern changed the title Spencer chore move search to contrib feat: remove search plugins Mar 19, 2019
@spencern spencern merged commit 4e3dfcd into develop Mar 19, 2019
@spencern spencern deleted the spencer-chore-move-search-to-contrib branch March 19, 2019 21:37
@jeffcorpuz jeffcorpuz mentioned this pull request Mar 19, 2019
@MarcusSorealheis
Copy link

We should consider adding MongoDB Atlas Search to the framework. It's free for most people and is a fast-growing and simple to use alternative to text matching in MongoDB.

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.

4 participants