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

Order submission urls correctly #2313

Merged
merged 3 commits into from
Sep 9, 2022
Merged

Order submission urls correctly #2313

merged 3 commits into from
Sep 9, 2022

Conversation

ciremusyoka
Copy link
Contributor

@ciremusyoka ciremusyoka commented Sep 7, 2022

Changes / Features implemented

  • Reorder ODK submission endpoints
  • Update submission permissions

Steps taken to verify this change does what is intended

  • ODK submissions are working

Side effects of implementing this change

Before submitting this PR for review, please make sure you have:

  • Included tests
  • Updated documentation

part of https://github.com/onaio/zebra/issues/6353

@ciremusyoka ciremusyoka requested review from ukanga, KipSigei and DavisRayM and removed request for ukanga and KipSigei September 8, 2022 12:51
@ciremusyoka ciremusyoka marked this pull request as ready for review September 8, 2022 12:52
Comment on lines +59 to 64
form = get_object_or_404(XForm, pk=form_pk)
username = form.user.username
elif project_pk:
username = Project.objects.get(pk=project_pk).user.username
project = get_object_or_404(Project, pk=project_pk)
username = project.user.username
else:
Copy link
Member

Choose a reason for hiding this comment

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

Did we have a sentry or otherwise exceptions for this? Should we update tests that verify that the 404 is raised on this serializer?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No we did not have a sentry report, I noted an exception while testing out and yes we should have tests to verify the 404.

@ciremusyoka ciremusyoka merged commit 959cdf4 into main Sep 9, 2022
@ciremusyoka ciremusyoka deleted the fix-submission-urls branch September 9, 2022 10:13
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