Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.
/ pulp Public archive

Remove ability to delete content units #3407

Merged
merged 1 commit into from
Apr 4, 2018
Merged

Remove ability to delete content units #3407

merged 1 commit into from
Apr 4, 2018

Conversation

dralley
Copy link
Contributor

@dralley dralley commented Apr 4, 2018

@dralley dralley added the 3.0 label Apr 4, 2018
pass


class CreateReadNamedModelViewSet(mixins.CreateModelMixin,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Am I the only one that finds this a liiiiittle bit ridiculous?

Copy link
Contributor

@daviddavis daviddavis Apr 4, 2018

Choose a reason for hiding this comment

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

Yes. Maybe have viewsets extend these mixins directly instead of creating a base viewset for each possible combination?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll write up a refactor task which we can discuss next sprint planning

@daviddavis
Copy link
Contributor

I tried testing this out but I am getting AttributeError: 'NoneType' object has no attribute 'model'.

@@ -94,11 +94,13 @@ def import_serializers(self):
def import_viewsets(self):
# circular import avoidance
from pulpcore.app.viewsets import (GenericNamedModelViewSet, NamedModelViewSet,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Man, this code smells real bad.

Copy link
Contributor

Choose a reason for hiding this comment

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

Agreed

@dralley
Copy link
Contributor Author

dralley commented Apr 4, 2018

Test failure is unrelated

Copy link
Contributor

@daviddavis daviddavis left a comment

Choose a reason for hiding this comment

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

👍 tested and it works well.

@dralley dralley merged commit 37b96ca into pulp:3.0-dev Apr 4, 2018
@dralley dralley deleted the 3445-content-unit branch April 4, 2018 19:55
zjhuntin pushed a commit that referenced this pull request May 12, 2020
Update celery stack to v4 so we no longer have to maintain code for both
3 and 4

closes #3407
https://pulp.plan.io/issues/3407
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants