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

Fix sqlalchemy warnings before sqlalchemy 1.4 #168

Open
jelly opened this issue May 10, 2020 · 2 comments
Open

Fix sqlalchemy warnings before sqlalchemy 1.4 #168

jelly opened this issue May 10, 2020 · 2 comments

Comments

@jelly
Copy link
Member

jelly commented May 10, 2020

/usr/lib/python3.8/site-packages/sqlalchemy/orm/relationships.py:1912: SAWarning: Setting backref / back_populates on relationship CVEVersion.version_parent to refer to viewonly relationship CVE.versions will be deprecated in SQLAlchemy 1.4, and will be disallowed in a future release.  viewonly relationships should not be mutated (this warning may be suppressed after 10 occurrences)
  util.warn_limited(
/usr/lib/python3.8/site-packages/sqlalchemy/orm/relationships.py:1912: SAWarning: Setting backref / back_populates on relationship CVE.versions to refer to viewonly relationship CVEVersion.version_parent will be deprecated in SQLAlchemy 1.4, and will be disallowed in a future release.  viewonly relationships should not be mutated (this warning may be suppressed after 10 occurrences)
@anthraxx
Copy link
Member

some more

/usr/lib/python3.9/site-packages/sqlalchemy/orm/relationships.py:1993: SAWarning: Setting backref / back_populates on relationship CVE.versions to refer to viewonly relationship CVEVersion.version_parent should include sync_backref=False set on the CVE.versions relationship.  (this warning may be suppressed after 10 occurrences)
  util.warn_limited(
/usr/lib/python3.9/site-packages/sqlalchemy/orm/relationships.py:1993: SAWarning: Setting backref / back_populates on relationship CVEVersion.version_parent to refer to viewonly relationship CVE.versions should include sync_backref=False set on the CVEVersion.version_parent relationship.  (this warning may be suppressed after 10 occurrences)
  util.warn_limited(
/usr/lib/python3.9/site-packages/sqlalchemy/orm/relationships.py:1993: SAWarning: Setting backref / back_populates on relationship Advisory.versions to refer to viewonly relationship AdvisoryVersion.version_parent should include sync_backref=False set on the Advisory.versions relationship.  (this warning may be suppressed after 10 occurrences)
  util.warn_limited(
/usr/lib/python3.9/site-packages/sqlalchemy/orm/relationships.py:1993: SAWarning: Setting backref / back_populates on relationship AdvisoryVersion.version_parent to refer to viewonly relationship Advisory.versions should include sync_backref=False set on the AdvisoryVersion.version_parent relationship.  (this warning may be suppressed after 10 occurrences)
  util.warn_limited(
/usr/lib/python3.9/site-packages/sqlalchemy/orm/relationships.py:1993: SAWarning: Setting backref / back_populates on relationship CVEGroupVersion.version_parent to refer to viewonly relationship CVEGroup.versions should include sync_backref=False set on the CVEGroupVersion.version_parent relationship.  (this warning may be suppressed after 10 occurrences)
  util.warn_limited(
/usr/lib/python3.9/site-packages/sqlalchemy/orm/relationships.py:1993: SAWarning: Setting backref / back_populates on relationship CVEGroupEntryVersion.version_parent to refer to viewonly relationship CVEGroupEntry.versions should include sync_backref=False set on the CVEGroupEntryVersion.version_parent relationship.  (this warning may be suppressed after 10 occurrences)
  util.warn_limited(
/usr/lib/python3.9/site-packages/sqlalchemy/orm/relationships.py:1993: SAWarning: Setting backref / back_populates on relationship CVEGroupPackageVersion.version_parent to refer to viewonly relationship CVEGroupPackage.versions should include sync_backref=False set on the CVEGroupPackageVersion.version_parent relationship.  (this warning may be suppressed after 10 occurrences)
  util.warn_limited(

@jelly
Copy link
Member Author

jelly commented Oct 21, 2021

Related sqlalchemy 1.4 upgrade will most likely blocked by kvesteri/sqlalchemy-continuum#255

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

No branches or pull requests

2 participants