Skip to content

Conversation

miketheman
Copy link
Member

Resolves:

RemovedIn20Warning: The legacy calling style of select() is deprecated
and will be removed in SQLAlchemy 2.0.
Please use the new calling style described at select().

and

RemovedIn20Warning: Using strings to indicate column or relationship
paths in loader options is deprecated and will be removed in
SQLAlchemy 2.0.  Please use the class-bound attribute directly.

@miketheman miketheman requested a review from a team as a code owner May 26, 2023 15:35
@miketheman miketheman enabled auto-merge (squash) May 29, 2023 13:51
Updates caller syntax to resolve:

```
RemovedIn20Warning: The legacy calling style of select() is deprecated
and will be removed in SQLAlchemy 2.0.
Please use the new calling style described at select().
```

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
Resolves:

```
RemovedIn20Warning: Using strings to indicate column or relationship
paths in loader options is deprecated and will be removed in
SQLAlchemy 2.0.  Please use the class-bound attribute directly.
```

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
As a way to allow us to change the `joinedload` calls to class-based, we
need to be able to traverse the relationship from the Macaroon-side.

Adding `viewonly` to the relationship allows us to know that the related
models won't be changed in the context of the loader.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
@miketheman miketheman force-pushed the miketheman/sqa-warnings branch from 98c75a7 to ebb00a7 Compare May 29, 2023 19:27
Resolves:

```
RemovedIn20Warning: Passing a chain of multiple join conditions to
Query.join() is deprecated and will be removed in SQLAlchemy 2.0.
Please use individual join() calls per relationship.
```

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
@miketheman miketheman force-pushed the miketheman/sqa-warnings branch from ebb00a7 to bb4f141 Compare May 29, 2023 19:34
@miketheman miketheman merged commit f26355c into pypi:main May 30, 2023
@miketheman miketheman deleted the miketheman/sqa-warnings branch May 30, 2023 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants