Closed chouinar closed 11 months ago
https://github.com/navapbc/template-application-flask/issues/200
Removes log statement that relies on variables no longer in psycopg 3.
The upgrade to psycopg3 got this error during migrations: AttributeError: 'ConnectionInfo' object has no attribute 'ssl_attribute_names' - https://github.com/navapbc/platform-test-flask/actions/runs/6275581568/job/17043454952
AttributeError: 'ConnectionInfo' object has no attribute 'ssl_attribute_names'
These aren't available anymore and looking through the connection info object, I don't see any equivalent. Looking at the docs for version 2, these attributes say Only available if psycopg was built with libpq >= 9.5 https://www.psycopg.org/docs/extensions.html#psycopg2.extensions.ConnectionInfo.ssl_attribute
Only available if psycopg was built with libpq >= 9.5
While the docs for psycopg3 mention libpq as being the backing library it uses, I don't see any mention of these parameters in their docs. https://www.psycopg.org/psycopg3/docs/api/connections.html#psycopg.Connection.pgconn - so seems to just be gone entirely?
Updated tests
Ticket
https://github.com/navapbc/template-application-flask/issues/200
Changes
Removes log statement that relies on variables no longer in psycopg 3.
Context for reviewers
The upgrade to psycopg3 got this error during migrations:
AttributeError: 'ConnectionInfo' object has no attribute 'ssl_attribute_names'
- https://github.com/navapbc/platform-test-flask/actions/runs/6275581568/job/17043454952These aren't available anymore and looking through the connection info object, I don't see any equivalent. Looking at the docs for version 2, these attributes say
Only available if psycopg was built with libpq >= 9.5
https://www.psycopg.org/docs/extensions.html#psycopg2.extensions.ConnectionInfo.ssl_attributeWhile the docs for psycopg3 mention libpq as being the backing library it uses, I don't see any mention of these parameters in their docs. https://www.psycopg.org/psycopg3/docs/api/connections.html#psycopg.Connection.pgconn - so seems to just be gone entirely?
Testing
Updated tests