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

PLAN-1253 #1526

Merged
merged 2 commits into from
May 23, 2024
Merged

PLAN-1253 #1526

merged 2 commits into from
May 23, 2024

Conversation

george-silva
Copy link
Contributor

  1. creates the infrastructure to support list/retrieve endpoints for treatment goals (serializer, routers, views, etc)
  2. creates tests for said infra
  3. changes queryset for other viewsets to be limited to public projects for now. later on we should filter based on request.user


class TreatmentGoalViewSet(ListModelMixin, RetrieveModelMixin, GenericViewSet):
queryset = TreatmentGoal.objects.filter(
project__visibility=ProjectVisibility.PUBLIC
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 seems like a good approach for now

Copy link
Contributor

@lastminutediorama lastminutediorama left a comment

Choose a reason for hiding this comment

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

ok, lgtm, thanks for all of these tests

@george-silva george-silva merged commit 73d74c2 into main May 23, 2024
6 checks passed
@george-silva george-silva deleted the plan-1253 branch May 23, 2024 16:27
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