Skip to content

Upgrade to pg@7 #312

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

Merged
merged 1 commit into from
Dec 19, 2017
Merged

Upgrade to pg@7 #312

merged 1 commit into from
Dec 19, 2017

Conversation

robinbiondi
Copy link

Description

Hello,

In this PR, we upgrade to pg@7 as it has been done on version 3.x
This fixes #311. (When a DB fail over, server goes down until restart)

Related issues

  • connect to <link_to_referenced_issue>

Checklist

  • [x ] New tests added or existing tests modified to cover all changes
  • [ x] Code conforms with the style
    guide

@slnode
Copy link

slnode commented Dec 7, 2017

Can one of the admins verify this patch? To accept patch and trigger a build add comment ".ok\W+to\W+test."

@slnode
Copy link

slnode commented Dec 7, 2017

Can one of the admins verify this patch?

1 similar comment
@slnode
Copy link

slnode commented Dec 7, 2017

Can one of the admins verify this patch?

@dhmlau
Copy link
Member

dhmlau commented Dec 7, 2017

@slnode test please

@dhmlau
Copy link
Member

dhmlau commented Dec 8, 2017

@robinbiondi, I'm working on dropping Node 0.10 and 0.12 in our tests through this PR: #313. After that, your PR should be good to go.

@robinbiondi
Copy link
Author

@dhmlau Great! Thank you!

@dhmlau
Copy link
Member

dhmlau commented Dec 18, 2017

@slnode test please

@dhmlau
Copy link
Member

dhmlau commented Dec 18, 2017

@robinbiondi , I've dropped CI tests for Node 0.10 and 0.12 in #313. In order for this PR to reflect the new changes, you would need to make some changes in the PR. Rebasing PR (which you need to do anyway) might do the work, but if not, you'd need to make some changes to force the PR picking up the changes.

@robinbiondi
Copy link
Author

@dhmlau Okay! I did rebase. It seems that the PR picked up the changes right ? Let me know

@dhmlau
Copy link
Member

dhmlau commented Dec 18, 2017

@slnode test please

@b-admike
Copy link
Contributor

@robinbiondi Thank you for your contribution! Looks like we have all the bases covered from https://node-postgres.com/guides/upgrading.

Copy link
Contributor

@b-admike b-admike left a comment

Choose a reason for hiding this comment

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

With regards to tests, it'd be great if you could backport our initialization test to the 2.x branch. See #296.

@robinbiondi
Copy link
Author

robinbiondi commented Dec 19, 2017

@b-admike Okay. But there is no file postgresql.initialization.test.js on 2.x. So what do you want me to backport ?

@robinbiondi
Copy link
Author

@b-admike @dhmlau I took the initialization tests from 3.x and added them to my PR.
I had to remove one of them because the case is not handled in 2.x and is not related to my PR (honours multiple user-defined settings). Anyway I found where the problem come from and created a related issue #314.
Let me know if we're good to go with this PR.

@b-admike
Copy link
Contributor

b-admike commented Dec 19, 2017

@robinbiondi Thank you for including the test cases and creating the issue! We can follow up with that issue with another PR. I'm happy with this patch. @slnode test please

@dhmlau dhmlau merged commit a62c69e into loopbackio:2.x Dec 19, 2017
@dhmlau dhmlau added this to the Sprint 51 milestone Dec 19, 2017
@cadesalaberry
Copy link

cadesalaberry commented Jan 12, 2018

@kjdelisle @jannyHou @loay @b-admike @ssh24 @virkt25 @dhmlau @zbarbuto

Could you publish a release on npm with these changes?

Cheers

@dhmlau
Copy link
Member

dhmlau commented Jan 12, 2018

@cadesalaberry , it's just released as 4.0.0. Thanks!

@cadesalaberry
Copy link

Hey, @dhmlau this PR only makes sense for loopback-2.xare you sure you meant to create a new 4.0.0?

Would it be safe to use the 4.0.0 connector with loopback 2?

@dhmlau
Copy link
Member

dhmlau commented Jan 12, 2018

@cadesalaberry, sorry that I didn't realize it was for 2.x when releasing it. You're right. The changes are now released as 2.9.0.
Thanks @bajtos !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants