Project

Profile

Help

Issue #6468

Schema generation throws scary errors but succeeds

Added by daviddavis 7 months ago. Updated 5 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 71
Quarter:

Description

Calling http :/pulp/api/v3/docs/api.json succeeds but throws errors:

Traceback (most recent call last):
  File "/usr/local/lib/pulp/lib64/python3.7/site-packages/drf_yasg/inspectors/base.py", line 50, in call_view_method
    return view_method()
  File "/home/vagrant/devel/pulpcore/pulpcore/app/viewsets/base.py", line 250, in get_queryset
    filters[lookup] = self.kwargs[key]
KeyError: 'exporter_pk'

Associated revisions

Revision 16524dd8 View on GitHub
Added by dkliban@redhat.com 6 months ago

Fixes KeyError during OpenAPI schema generation.

fixes: #6468 https://pulp.plan.io/issues/6468

History

#1 Updated by fao89 7 months ago

  • Triaged changed from No to Yes

#2 Updated by dkliban@redhat.com 6 months ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dkliban@redhat.com
  • Sprint set to Sprint 71

#3 Updated by pulpbot 6 months ago

  • Status changed from ASSIGNED to POST

#4 Updated by dkliban@redhat.com 6 months ago

  • Status changed from POST to MODIFIED

#5 Updated by dkliban@redhat.com 5 months ago

  • Sprint/Milestone set to 3.4.0

#6 Updated by dkliban@redhat.com 5 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF