-
-
Notifications
You must be signed in to change notification settings - Fork 277
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
Fix : BB #348/340 #345
Fix : BB #348/340 #345
Conversation
Hmm, I think we're in an undesirable situation where the update to the ORM (-data-js) requires an update of various parts of the web server. A similar situation will prevent me from merging #339 straight away: the fetchPage-related change on the ORM will not be necessary once we use the newer version of the ORM (it comes included by default) The situation that is problematic is that I made all the necessary modifications as part of developing the merge tool, and all that work is in PR #333 Our options are:
I was hoping I'd have the time to get 333 finished and it wouldn't be a problem, but I was wrong. I'll look at implementing option 2 to allow us to move forward |
Sorry I thought I was closing the comment, accidentally closed the PR. There is another solution, instead of using bookshelf I can write raw-sql query, that will work |
What do you think? @MonkeyDo |
I think that would work, but there's duplication of efforts there that I'm not fond of. Sorry, I should have realized earlier that it would solve these issues. In any case, let's leave this PR open until it is all figured out. |
OK, I wasn't as stupid as I thought, and I did almost all of the ORM update work on a separate branch, so I'm doing a little bit of cherry picking, some cleaning and some testing, and I'll open a new PR (currently draft #346 ). |
Haha ofcourse :) Yeah alright. Let's look at this once that is merged :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I merged the master branch and resolved the small conflicts that popped up, and tested again, that's working great !
@MonkeyDo |
No it's been merged. |
Problem
Revision page was showing duplicate entities.
https://tickets.metabrainz.org/browse/BB-340
Solution
I added merge:false, remove:false in model.fetchAll()..
Also changed bookbrainz-data-js's version in package.json from 2.3 to 2.5. 2.3's package.json had bookshelf@0.13 as it's required dependency and remove:false;merge:false fix came in 0.14 version.
Also changed package-json.lock accordingly. It was updated automatically :P