Project

Profile

Help

Issue #6468

closed

Schema generation throws scary errors but succeeds

Added by daviddavis over 4 years ago. Updated over 4 years 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'
Actions #1

Updated by fao89 over 4 years ago

  • Triaged changed from No to Yes
Actions #2

Updated by dkliban@redhat.com over 4 years ago

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

Added by dkliban@redhat.com over 4 years ago

Revision 16524dd8 | View on GitHub

Fixes KeyError during OpenAPI schema generation.

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

Actions #3

Updated by pulpbot over 4 years ago

  • Status changed from ASSIGNED to POST
Actions #4

Updated by dkliban@redhat.com over 4 years ago

  • Status changed from POST to MODIFIED
Actions #5

Updated by dkliban@redhat.com over 4 years ago

  • Sprint/Milestone set to 3.4.0
Actions #6

Updated by dkliban@redhat.com over 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF