Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/bulk reindex urls #175

Merged
merged 27 commits into from
Dec 12, 2018
Merged

Conversation

peggles2
Copy link
Contributor

SRCH-183 - Update the SearchgovUrl#fetch method to set that boolean to false
SRCH-181 - Update the SearchgovURL.fetch_required scope to look for records where that boolean is true

@MothOnMars
Copy link
Contributor

@peggles2 , I thought you were going to make all the re-index changes on one branch? This PR duplicates the db/structure.sql changes made in #172, but lacks the specs for the column addition. I think it would be best to wait for #172 to be merged to master, and then open a PR with only the additive changes so that we don't have two PRs open with the same db change.

@MothOnMars
Copy link
Contributor

Adding a Do Not Merge label to this, as it's dependent on the migration in #172

app/models/searchgov_url.rb Outdated Show resolved Hide resolved
db/structure.sql Outdated Show resolved Hide resolved
spec/models/searchgov_url_spec.rb Show resolved Hide resolved
spec/models/searchgov_url_spec.rb Outdated Show resolved Hide resolved
@MothOnMars
Copy link
Contributor

@peggles2 , there are some conflicts in the VCR cassettes. I recommend checking out those cassettes from master, and then re-recording them to update them:

$ git checkout master spec/vcr_cassettes/search/gov
$ rspec spec/lib/tasks/searchgov_spec.rb

@peggles2 peggles2 force-pushed the feature/bulk_reindex_urls branch 2 times, most recently from fbd20e2 to 4ecf352 Compare November 21, 2018 15:28
@MothOnMars
Copy link
Contributor

Almost there - just a few stylistic & indendation changes to make

Parissa Eggleston and others added 10 commits November 26, 2018 12:45
…e_affiliate_has_the_jobs_govbox_enabled.yml
* SRCH-179 - Add a boolean column to the searchgov_urls

* update structure.sql

* migration file for enqueued for reindex to searachgov_url

* update migration, update test cases

* typo

* remove extra space

* migrated database
remove parenthesis in rspec test
lib/jobs.rb Outdated Show resolved Hide resolved
lib/jobs.rb Outdated Show resolved Hide resolved
Copy link
Contributor

@MothOnMars MothOnMars left a comment

Choose a reason for hiding this comment

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

LGTM! 🎊

app/models/searchgov_url.rb Show resolved Hide resolved
@peggles2 peggles2 merged commit 30fca50 into GSA:master Dec 12, 2018
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.

None yet

2 participants