Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Fix #890 Enable search solr #906

Merged
merged 6 commits into from
Jun 2, 2017
Merged

Fix #890 Enable search solr #906

merged 6 commits into from
Jun 2, 2017

Conversation

Saphyel
Copy link
Contributor

@Saphyel Saphyel commented May 24, 2017

Fixes #890
Is blocking #916

Changes proposed in this PR

  • Enable it locally
  • Enable it in Plat.sh
  • Fix the annoyance of ESU

@Saphyel Saphyel self-assigned this May 24, 2017
@Saphyel Saphyel requested a review from pvhee May 24, 2017 14:28
Copy link
Contributor

@pvhee pvhee left a comment

Choose a reason for hiding this comment

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

@Saphyel search doesn't seem to be working (or itsn't enabled properly) on plat.sh?

Sample search: https://pr-906-6ew4uwq-tx3mbsqmxtu74.eu.platform.sh/search?text=bake

@Saphyel
Copy link
Contributor Author

Saphyel commented May 24, 2017

@pvhee is not working properly in plat.sh but I'm fixing it

I also upgraded it to 6.3 that accepts multiple cores (maybe something good for the future?)

@Saphyel Saphyel force-pushed the 890 branch 3 times, most recently from 16c5a89 to 57d65e6 Compare May 25, 2017 11:03
@pvhee
Copy link
Contributor

pvhee commented May 25, 2017

@Saphyel can we separate module updates in their own PRs please? will make it easier, and I don't think this work requires you to update the modules?

@Saphyel
Copy link
Contributor Author

Saphyel commented May 25, 2017

@pvhee indeed this requires it because unfortunately I can't update the config easily... it requires some fields (that should not require), doesn't show the proper values, etc...

I guess because we were using a dev version this is expected.

About split this PR, why ? update those modules now is minimal in the PR and is related with this task.

If we separate this into 2 I have to take care of 2 PR and make sure that works fine in the both sites and if one fails we might need to revert 2 PR.. I don't want to over complicate this issue more than needed.

@pvhee
Copy link
Contributor

pvhee commented May 25, 2017

@Saphyel we could consider running Docker in Travis. This will make the setup in Travis cleaner and more on par with local dev?

@Saphyel
Copy link
Contributor Author

Saphyel commented May 25, 2017

@pvhee we use serveral images so if Travis support a network of containers it will possible or if we use an external address to connect with that services.

@pvhee
Copy link
Contributor

pvhee commented May 25, 2017

@Saphyel docker-compose is supported by Travis, so we could use this. Will add to a new ticket, that we can handle before finishing off solr integration here if this would make our life with Travis easier.

@pvhee
Copy link
Contributor

pvhee commented May 25, 2017

^^ #912

@Saphyel
Copy link
Contributor Author

Saphyel commented May 31, 2017

@pvhee @pradip3271 ready to be merge! (Travis is having issues at the moment so better wait a bit)

@pvhee
Copy link
Contributor

pvhee commented May 31, 2017

@Saphyel Travis should also fail if errors are detected in the Drupal-Solr connection, see e.g.

 360  31/May 16:45  search_a  error     Drupal\search_api_solr\SearchApiSolrExc 
                    pi                  eption: Solr HTTP error: OK (500)       
                                                                                
                                                                                
                                                                                
                                        Error 500                               
                                        {metadata={error-class=org.apache.solr. 
                                        common.SolrException,root-error-class=o 
                                        rg.apache.solr.core.Solr   

@Saphyel Saphyel force-pushed the 890 branch 2 times, most recently from a156d07 to fcdedb8 Compare June 1, 2017 14:22
@@ -1,3 +1,4 @@
@not-on-travis
Feature: Search
Copy link
Contributor

Choose a reason for hiding this comment

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

@Saphyel we need to find a way in which we can test search on Travis, as this is a critical part of the application. Any ideas?

Copy link
Contributor Author

@Saphyel Saphyel Jun 1, 2017

Choose a reason for hiding this comment

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

I think I found the issue, is related with the bootstrap of solr on travis.

Drupal is trying to use Solr before than Solr is ready

Copy link
Contributor

@pvhee pvhee left a comment

Choose a reason for hiding this comment

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

Fix search testing on Travis

@Saphyel
Copy link
Contributor Author

Saphyel commented Jun 1, 2017

@adamclark-dev do you mind to take a look to the whole PR?

@@ -8,6 +8,6 @@ cd ..
# Check the config match with the info.yml
#phing config:check
# Run behat tests
vendor/bin/behat
vendor/bin/behat --tags=~not-on-travis
Copy link
Contributor

Choose a reason for hiding this comment

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

@Saphyel is the not-on-travis tag still relevant now that we use docker on Travis, so we should be able to run all tests anyways?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed all of them, so there is not harm

Copy link
Contributor

Choose a reason for hiding this comment

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

So why are you keeping the not-on-travis tag? Remove as well, keeping things consistent.

provider: views
label_display: '0'
views_label: ''
visibility: { }
Copy link
Contributor

Choose a reason for hiding this comment

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

@Saphyel upgrade path to consider?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

what do you want to add in the upgrade path? In the comic relief site works fine

Copy link
Contributor

Choose a reason for hiding this comment

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

Aren't you proposing a new config? How will sites get this automatically included via their upgrade path? Also consider rnd.com. For a full discussion pls refer to #926

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Then I have a question @pvhee shall I use our old way or should this be block until we have a decision about the thunder implementation?

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we're ready to fully roll out config updates in the update hooks, but I want us to consider this. Shouldn't block this PR though

@@ -20,4 +19,4 @@ Feature: Search
@default-content
Scenario: Search in the DB Vitkauskas
Given I am on "search?text=Vitkauskas"
Then I should see the link "YPlan partners with Comic Relief"
Then I should see the link "YPlan partners with"
Copy link
Contributor

Choose a reason for hiding this comment

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

@Saphyel I think we would benefit of writing additional tests for searching media, could this be part of this PR or do you prefer to tackle in a new issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I prefer other issue because QA can handle that

Copy link
Contributor

Choose a reason for hiding this comment

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

@pvhee pvhee merged commit 60f0245 into develop Jun 2, 2017
@pvhee pvhee deleted the 890 branch June 2, 2017 13:42
Saphyel pushed a commit that referenced this pull request Jun 7, 2017
* Fix #897 Remove modernizr

* 862 remove copying gem from composer

* 862 update sass grunt path

* 862 add default img update twig style

* 862 update pl version npm

* 862 remove spaces twig

* Fix #897 Enable modernizr from node

* fixes #910 article, partner page to run in local (#910)

* fixes #910 for article, partner page to run in local

* #910 Reformat code

* #912 Use docker-compose to run Travis build

* 863 - Initial module build to display articles in block by taxonomy type

* 863 - Fix incorrectly named template and add default value to admin form

* 863 - Add installation configuration for feature articles block

* 863 - Reformat code to match drupal code style

* 863 - Remove superfluous class from feature articles template

* 863 - Add article link to feature article nodes

* 863 - Add behat tests for feature articles

* #912 Add cache

* 912 Fix Media feature test

* #917 Exclude broken stuff

* 912 Travis cache not work as expected

* 912 Fix Media tests

* 863 - Migrate custom feature articles logic to allow for feature articles to be displayed as custom block or paragraph

* 863 - Reformat code to match drupal 8 guidelines

* 863 - Add feature article dependencies to module

* 863 - add dockblocks to feature articles module

* 863 - Remove custom block, migrate template to run off of teasers and add config to module

* 863 - Remove uuid from feature article config items

* 863 - Fix feature article background colour to use colours function

* 863 - Add missing config dependencies to feature articles module

* 863 - Add background colour class to feature articles module

* 863 - Add default content for feature articles module

* 823 - Update feature articles test url

* 863 - Remove tests on non existent regions for feature articles behat tests

* 863 - Update pattern lab version for feature articles

* 863 - Add newline to feature articles test

* 863 fix layout

* 884 update meta icon block config (#900)

* 884 update block config

* 884 Add admin theme metablock config

* 863 - Add title and update default content to include titles

* 863 - max 3 items

* 863 - separate layout from styles

* 863 fix logo campaign position

* 863 - update bhat test

* 863 - add new line github warning

* 863 - add new line github warning

* 863 recovering old campaign styles

* 863 - Remove config hash and uuid from exported config

* 863 minor fix mobile logo size

* 863 - Fix featured articles to be filtered by display date

* 863 - Fix tests due to ordering changes in feature articles module

* 865 - exclude articles from being categorised as all (#925)

* 865 - Update config to exclude articles and add update script

* 865 - Add tests to test exclude from aggregator views feature

* 863 - Correct incorrectly remove .gitignore extension

* 865 - Remove un-necessary field from configuration, breaking install.

* 865 - Remove un-necessary test as is covered by news articles test

* 865 - Add missing line endings to files

* 865 - Fix behat test path for exclusion test

* 865 - Add missing config_devel to articles module

* 865 - Rename exclude aggregator fields to match naming conventions

* 865 - Refference new field-article-exclude-aggr field name in behat tests

* fix 930

* 863 - Update cr.install to fix missing function brace

* Fix #890 Enable search solr (#906)

* 890 Enable Solr on platform.sh

* 890 Enable cr_solr on local

* 890 Fix ESU issue

* 890 Fix more tests

* 890 Fix tags on tests

* 890 Remove tag on travis

* 924 Quote block config

* 924 Single msg config

* 924 Story config

* 863 - Fix issue with field not being allowed in twig due to missing #type (#936)

* 867 - Add views_ajax_history module

* 942 Adding xls, xlsx file types to downloadables (#946)

* 943 - update names  and description of sing msg padding option (#947)

* 943 - update names  and description of sing msg padding option

* 937 Add custom node link

* 937 Remove readmore link from content wall display

* 949 - Change configuration to hide from feature articles paragraph type. (#950)

* 949 - Change configuration to hide from feature articles paragraph type.

* 949 - Add javascript tag to test to fix failing test

* 949 - Move add publish up to fix feature article exclude test.

* 867 - Add scroll into view for submit button on behat test

* 949 - Reinstall article configuration as part of install and fix incorrect module configuration

* 949 - Add new line toy cr_article configuration.
@bimsonz bimsonz mentioned this pull request Jun 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants