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

Add facility query param for commissioning proposals #141

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

nmaytan
Copy link
Collaborator

@nmaytan nmaytan commented Jan 30, 2025

Closes #140

@nmaytan nmaytan requested a review from JunAishima January 30, 2025 20:35
@JunAishima
Copy link
Contributor

this PR depends on #139 (the facility field must exist in Proposal)

)
else:
proposals = Proposal.find(
Proposal.pass_type_id == "300005", projection_model=ProposalIdView
proposals = await Proposal.find(And(*query)).find(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any reason why the projection was dropped ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It wasn't dropped, there was no projection used when filtering results before: - I kept it the same as I was unsure if there was a reason for this. That said, it seems to me that we could add it in the final find op.

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.

Endpoint to retrieve commissioning proposals needs facility query parameter
3 participants