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

Two SQLAlchemy Warnings while running tests #254

Open
2 tasks
PonteIneptique opened this issue May 17, 2021 · 0 comments
Open
2 tasks

Two SQLAlchemy Warnings while running tests #254

PonteIneptique opened this issue May 17, 2021 · 0 comments
Labels

Comments

@PonteIneptique
Copy link
Member

  • Warning 1

tests/db_fixtures/wauchier.py:9: SAWarning: relationship 'ChangeRecord.word_token' will copy column word_token.id to column change_record.word_token_id, which conflicts with relationship(s): 'WordToken._changes' (copies word_token.id to change_record.word_token_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. The 'overlaps' parameter may be used to remove this warning.
Column(heading="Lemma"),

  • Warning 2

app/models/control_lists.py:72: SAWarning: SELECT statement has a cartesian product between FROM element(s) "control_lists" and FROM element "control_lists_user". Apply join condition(s) between each element to resolve.
ControlListsUser.control_lists_id == corpus.control_lists_id

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

No branches or pull requests

1 participant