-
Notifications
You must be signed in to change notification settings - Fork 103
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
BUG 518 AP@10 change was not actually merged #604
Comments
Or rather, while merged, the deployed quepid still displays the old version (not installed into the DB on deployment?) |
Well... Hell..... |
Can you open up a FRESH pr... And we'll track the steps of merging it, and confirming that deploys pick up this new change? I'm a bit nervous that the seed data "create or update" logic isn't working the way we want.... |
This needs investigation, the ap10.js file is in the correct place, so it is the DB update process on deploy that likely has the issue. |
It looks like the use of first_or_create when loading the scorers (db/seeds.rb) is not updating the older version. In the migrate subdirectory, there is 20201203212611_bugfix_ap_ndcg_scorers.rb that performed a manual update of the DB for some earlier issue. Ruby is not my forte, but I think there needs to either be one of these scripts run to force the update, or the first_or_create should be changed to some form of update. It is not clear to me if this is actually where the DB update comes from, but I think that it is. |
Tried creating a migration, first step was successful, empty migration file created. Added the necessary code. Second step failed with: Creating a pull request for the migration file, but not clear how to run it in production. |
Build fails: Have to solve the migrate problem first, apparently. |
Trying to update the ruby version has not resolved the situation. No amount of updating/installing gets past this error: Fetching source index from https://rubygems.org/ After much gymnastics, mysql and concurrent ruby installed. The migration code needs a guard against nil value, as there are no scores in the DB that is in the docker container. This is now beyond my ability to diagnose. The migration file to update the db is in the branch, fix-ap. That branch currently fails it's circle-ci due to the unmigrated migration. I am not convinced that this migration is actually a fix for the unupdated DB in production. |
Deleting the entire quepid source tree, recloning, and building from scratch enabled running the migration. |
So... We may have a conceptual problem in how db:seeds work.... This command is what actually seeds the database, and it is run by I need to find out if changing and loading seed data for an already deployed app is considered good practice, or if seeds are really meant to seed a new setup... And for an existing setup, then migrations are the way to go.... Asking my local Ruby community for input ;-) |
I have reached out to my community of experts on this... and will follow up tomorrow ;-) |
|
and in produciton! |
#535 purported to fix #518 that #519 was also supposed to have fixed. MR 519 had the change to db/scorers/[email protected] that is now missing from the current master.
The text was updated successfully, but these errors were encountered: