Remove "_type" / "pulp_type" as a public-facing field, and MasterModelSerializer
"_type" / "pulp_type" is a field that shows up on models using master-detail inheritance. However, there is no way to query these types generically. In order to query these types, you have to provide the app name and the type name, which are the two components of that field. Therefore it doesn't really provide the end user any valuable information.
This is probably a leftover relic from when the /content/ endpoint existed and returned content of all types.
Pulpcore still needs this information for various things, but, the user doesn't. Therefore we can remove it from the serializers.
"_type" / "pulp_type" is the only thing provided by MasterModelSerializer, so the whole thing can go. Everything inheriting from MasterModelSerializer can inherit from ModelSerializer instead.
Removing _type field
Required PR: https://github.com/pulp/pulp_file/pull/284 Required PR: https://github.com/pulp/pulpcore-plugin/pull/137 Required PR: https://github.com/PulpQE/pulp-smash/pull/1220 Required PR: https://github.com/pulp/pulp-certguard/pull/31
#5 Updated by fao89 about 2 years ago
Docker uses _type:
I'm wondering if I should remove _type on core and add it on docker serializers
#6 Updated by fao89 about 2 years ago
- Status changed from ASSIGNED to POST
Please register to edit this issue