Skip to content

Commit

Permalink
Bugfix/104 (#125)
Browse files Browse the repository at this point in the history
* fix #104 by updating existing cases

* document improvement
  • Loading branch information
epugh authored Apr 28, 2020
1 parent 832d59c commit bb78a00
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Speed of development has been an issue with Quepid. In this release we've worke

### Improvements

* Community member reported the default demo TMDB Elasticsearch server on port 9200 had no data. Having seem random "drive by vandalism" of our demo Solr and ES servers that run on default ports, we want to move away. Yes, security by obscurity. https://github.com/o19s/quepid/pull/103 by @epugh changes default used in Wizard to port 8985 and 9206.
* Community member reported the default demo TMDB Elasticsearch server on port 9200 had no data. Having seem random "drive by vandalism" of our demo Solr and ES servers that run on default ports, we want to move away. Yes, security by obscurity. https://github.com/o19s/quepid/pull/103 by @epugh changes default used in Wizard to port 8985 and 9206. https://github.com/o19s/quepid/pull/125 and https://github.com/o19s/quepid/issues/104 migrate existing URLs to the new ones.
* Increase Developer Happiness by speeding up the `bin/setup_docker` script by caching RubyGems. 50% speed up! https://github.com/o19s/quepid/pull/105 by @nathancday.
* Remove the concept of "communal" i.e shared with everyone scorers. This feature has been in Quepid for years, yet even @softwaredoug didn't remember it! https://github.com/o19s/quepid/pull/99 by @epugh fixes https://github.com/o19s/quepid/issues/98.
* In the beginning of Quepid, before there was a Search Relevancy community, there was just one, slightly janky scorer, that wasn't like any of the standard search geek scorers (looking at you NDCG) that we use today. We are building towards supporting many scorers, so it's time to remove the `DEFAULTS` definition of a scorer, and the related scope in ActiveRecord. https://github.com/o19s/quepid/pull/97 by @epugh.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
class UpdateDemoSolrEsToNonDefaultPorts < ActiveRecord::Migration
# Our demo Solr and ES instances were getting drive by vandalism by running on
# default ports on the Internet. So we moved to non defaults. Update existing
# cases. https://github.com/o19s/quepid/issues/104
def change

solrTries = Try.where("search_url like '%quepid-solr.dev.o19s.com:8983/solr%'")
solrTries.each do |try|
try.search_url.sub!("8983","8985") # the new default demo port.
try.save!
end

esTries = Try.where("search_url like '%quepid-elasticsearch.dev.o19s.com:9200%'")
esTries.each do |try|
try.search_url.sub!("9200","9206") # the new default demo port.
try.save!
end
end
end
2 changes: 1 addition & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20200413184942) do
ActiveRecord::Schema.define(version: 20200428150211) do

create_table "annotations", force: :cascade do |t|
t.text "message", limit: 65535
Expand Down

0 comments on commit bb78a00

Please sign in to comment.