Project

Profile

Help

Issue #3216

CreatedResourceSerializer missing "Meta.model" attribute

Added by bizhang almost 2 years ago. Updated 6 months ago.

Status:
MODIFIED
Priority:
Normal
Category:
-
Sprint/Milestone:
Start date:
Due date:
Severity:
2. Medium
Version:
Platform Release:
Blocks Release:
OS:
Backwards Incompatible:
No
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:
Sprint 30

Description

Right now this breaks when we try to access the live API

AssertionError at /api/v3/docs/
Class CreatedResourceSerializer missing "Meta.model" attribute

The error originates from django rest framework's get_fields() function [0].

I would suggest we remedy this by adding the necessary Meta.model and Meta.fields to the CreatedResourceSerializer1

[0] https://github.com/encode/django-rest-framework/blob/master/rest_framework/serializers.py#L977
[1] https://github.com/pulp/pulp/blob/3.0-dev/pulpcore/pulpcore/app/serializers/task.py#L21

Associated revisions

History

#1 Updated by amacdona@redhat.com almost 2 years ago

  • Sprint/Milestone set to 52
  • Triaged changed from No to Yes

#2 Updated by dkliban@redhat.com almost 2 years ago

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

#3 Updated by dkliban@redhat.com almost 2 years ago

  • Status changed from ASSIGNED to MODIFIED

#4 Updated by bmbouter over 1 year ago

  • Sprint set to Sprint 30

#5 Updated by bmbouter over 1 year ago

  • Sprint/Milestone deleted (52)

#6 Updated by daviddavis 6 months ago

  • Sprint/Milestone set to 3.0

#7 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3)

Please register to edit this issue

Also available in: Atom PDF