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

Feat/remove result from list endpoint #1577

Merged
merged 12 commits into from
Feb 6, 2025

Conversation

paaragon
Copy link
Collaborator

Summary

This PR removes the result from the response in the list endpoint

Details and comments

@paaragon paaragon changed the base branch from main to cos-result January 30, 2025 08:52
@paaragon paaragon marked this pull request as ready for review January 30, 2025 15:29
@@ -145,10 +145,10 @@ def list(self, request):

page = self.paginate_queryset(queryset)
Copy link
Member

Choose a reason for hiding this comment

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

@paaragon let's use this opportunity to migrate the queryset too. The idea as we commented is to put all the logic related with the ORM in the Repositories. In this case the philosophy would be similar to what we did in the list for functions: https://github.ibm.com/IBM-Q-Software/qiskit-serverless/blob/main/gateway/api/views/programs.py#L104

@Tansito Tansito self-requested a review February 5, 2025 23:10
Copy link
Member

@Tansito Tansito left a comment

Choose a reason for hiding this comment

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

Thanks for the refactor @paaragon ! We couldn't remove the get_queryset but for another chance.

As my last comment before merge I think we can remove the method filter_queryset, we are not using it from what I know. With that I think we are going to be able to merge this.

Copy link
Member

@Tansito Tansito left a comment

Choose a reason for hiding this comment

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

LGTM!

@Tansito Tansito merged commit 03741fd into cos-result Feb 6, 2025
7 checks passed
@Tansito Tansito deleted the feat/remove-result-from-list-endpoint branch February 6, 2025 19:59
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