Remove remaining session query usages#62758
Conversation
|
Thanks @kunaljubce !! Good catch !! Will work on this prek hooks again to see what we can do to catch this types of patterns ! |
Sure @Prab-27, please lemme know if you're occupied with other tasks. I can pick it up as well. |
|
@kunaljubce Thanks !! Could you please share your thoughts @ephraimbuddy since you created that issue and we are working on it :) It is good to check each sides - Could you please confirm weather any deprecated All Done (including this only )! I have checked from my end But @potiuk I'd like to confirm that this .venev files are packages that we use them so we don't need to remove deprecated query from it - |
* Remove remaining session.query usages * Remove remaining session.query usages * Change as per review comment * Minor comment update in compat.sdk
* Remove remaining session.query usages * Remove remaining session.query usages * Change as per review comment * Minor comment update in compat.sdk
relates to: #45461
Details
As part of 45461, as far as I understand, only a last couple of
session.queryinstances were left behind:These instances have been replaced with
session.executeandsession.scalars, dependending on their corresponding usages in the source code. Also fixed a potential dangling import issue I ran into with the prek pre-push hook:Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.