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

LITE-28177: Listing products that an account have at least one deployment #44

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

akodelia
Copy link
Contributor

No description provided.

installation: dict = Depends(get_installation),
):
products_ids = db.query(Deployment.product_id).options(
joinedload(Deployment.product),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason to have a separate query for the products here? I mean, Postgresql supports fields in distinct + you already joined all the data and can just go through it. Is it possible to do?

@akodelia akodelia force-pushed the feature/LITE-28177-get-products branch from 22d84c0 to f550ad8 Compare July 24, 2023 14:55
@akodelia akodelia force-pushed the feature/LITE-28177-get-products branch from f550ad8 to 54be559 Compare July 24, 2023 14:58
@akodelia akodelia requested a review from d3rky July 24, 2023 15:00
@d3rky d3rky merged commit c5d2987 into master Jul 24, 2023
4 checks passed
@d3rky d3rky deleted the feature/LITE-28177-get-products branch July 25, 2023 13:20
@akodelia akodelia restored the feature/LITE-28177-get-products branch August 9, 2023 13:23
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