This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- current implementation --> | |
<fieldType name="text" class="solr.TextField" omitNorms="false"> | |
<analyzer> | |
<tokenizer class="solr.StandardTokenizerFactory"/> | |
<filter class="solr.StandardFilterFactory"/> | |
<filter class="solr.LowerCaseFilterFactory"/> | |
<filter class="solr.PorterStemFilterFactory"/> | |
<filter class="solr.ASCIIFoldingFilterFactory"/> | |
<!--<filter class="solr.PhoneticFilterFactory" encoder="DoubleMetaphone" inject="true"/>--> | |
</analyzer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"products"=> | |
[{"id"=>2166, | |
"permalink"=>"jil-sander-coat", | |
"name"=>"Jil Sander Coat", | |
"variants"=> | |
[{"id"=>4341, | |
"price"=>"295.0", | |
"sku"=>"JIL01550", | |
"size_hash"=>{"name"=>"clothing-size", "value"=>"S", "id"=>18}, | |
"on_hand"=>0}], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"products"=> | |
[{"id"=>1603, | |
"permalink"=>"giuseppe-zanotti-platform-pump-1", | |
"name"=>"Giuseppe Zanotti Platform Pump", | |
"variants"=> | |
[{"id"=>3215, | |
"price"=>"175.0", | |
"sku"=>"GIU01363", | |
"size_hash"=>{}, | |
"on_hand"=>0}], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"filters"=> | |
["Booties", | |
"Dresses", | |
"Handbags", | |
"Outerwear", | |
"Shoes", | |
"Tops", | |
"Women's Clothing"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"id"=>1610, | |
"permalink"=>"givenchy-sandal", | |
"name"=>"Givenchy Sandal", | |
"variants"=> | |
[{"id"=>3229, | |
"price"=>"95.0", | |
"sku"=>"GIV01310", | |
"size_hash"=>{"name"=>"shoes-size", "value"=>"7.5", "id"=>4}, | |
"on_hand"=>0}], | |
"taxons"=>[{"id"=>65, "name"=>"Sandals"}], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Finished in 23 minutes 33.49 seconds | |
465 examples, 2 failures, 11 pending | |
Failed examples: | |
rspec ./spec/requests/flash_sales_spec.rb:97 # FlashSales checking pagination paginates products | |
rspec ./spec/requests/flash_sales_spec.rb:122 # FlashSales checking pagination lets user navigate with next and previous links work (also 2nd page test) | |
Finished in 23 minutes 33.49 seconds | |
465 examples, 2 failures, 11 pending |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rspec ./spec/controllers/white_glove_request_controllers_spec.rb:5 # WhiteGloveRequestsController displays contact detail form after new request | |
rspec ./spec/requests/consign_form_spec.rb:23 # Consign visitor creates consignment should return to consignment form on bad email | |
rspec ./spec/requests/consign_form_spec.rb:31 # Consign visitor creates consignment should not have submission button when terms not accepted | |
--- | |
1) Consign visitor creates consignment should return to consignment form on bad email | |
Failure/Error: fill_in "consignor_name", :with => "James Tailor" | |
Capybara::ElementNotFound: | |
cannot fill in, no text field, text area or password field with id, name, or label 'consignor_name' found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Failures: | |
1) WhiteGloveRequestsController displays contact detail form after new request | |
Failure/Error: post :create, :white_glove_request => { "location" => "San Francisco" } | |
OpenURI::HTTPError: | |
503 Service Temporarily Unavailable | |
# ./app/models/white_glove_request.rb:23:in `check_location' | |
# ./app/controllers/white_glove_requests_controller.rb:23:in `block in create' | |
# ./app/controllers/white_glove_requests_controller.rb:22:in `create' | |
# ./spec/controllers/white_glove_request_controllers_spec.rb:6:in `block (2 levels) in <top (required)>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd ~/ | |
sudo apt-get update | |
# install some basic programs | |
sudo apt-get install -y sqlite3 libsqlite3-dev libssl-dev openssl zlib1g zlib1g-dev zlibc | |
sudo apt-get install -y libxslt-dev libxml2-dev | |
sudo apt-get install -y git | |
sudo apt-get install -y default-jre |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
158 @product_results = @searcher.retrieve_products.includes( :variants => {:option_values => :option_type}) | |
159 | |
160 @products_results.each do |p| | |
161 fs = p.flash_sales.select { |s| s.id == @flash_sale.id }.first | |
162 fsv = fs.flash_sale_variants.select { |v| v.product == e }.first | |
163 p.position = fsv.position | |
164 end |