Project

Profile

Help

Issue #1766

closed

Pulp API is incompatible with Django 1.10

Added by rbarlow about 8 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Platform Release:
2.10.1
OS:
Triaged:
Yes
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Easy Fix, Pulp 2
Sprint:
Sprint 6
Quarter:

Description

These appear in the system log on Fedora Rawhide:

pulp[1487]: py.warnings:WARNING: (1487-25344) /usr/lib/python2.7/site-packages/pulp/server/webservices/urls.py:260: RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.
pulp[1487]: py.warnings:WARNING: (1487-25344)   url(r'^v2/users/(?P<login>[^/]+)/$', users.UserResourceView.as_view(), name='user_resource')
pulp[1487]: py.warnings:WARNING: (1487-25344)
pulp[1488]: py.warnings:WARNING: (1488-69920) /usr/lib/python2.7/site-packages/pulp/server/webservices/urls.py:260: RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.
pulp[1488]: py.warnings:WARNING: (1488-69920)   url(r'^v2/users/(?P<login>[^/]+)/$', users.UserResourceView.as_view(), name='user_resource')
Actions #1

Updated by mhrivnak about 8 years ago

  • Priority changed from Normal to High
  • Severity changed from 2. Medium to 3. High
  • Triaged changed from No to Yes
  • Tags Easy Fix added
Actions #2

Updated by jcline@redhat.com almost 8 years ago

  • Groomed changed from No to Yes
  • Sprint Candidate changed from No to Yes

Looking at the roadmap[0], we will need to complete this next sprint if we don't want to break in Fedora Rawhide (and potentially 24/23, depending on how the package maintainer feels). Therefore I've flagged it to be considered next planning meeting

[0] https://code.djangoproject.com/wiki/Version1.10Roadmap

Actions #3

Updated by amacdona@redhat.com almost 8 years ago

  • Sprint Candidate changed from Yes to No

https://code.djangoproject.com/ticket/22218

Looks like the new codepath only exists in Django >= 1.6

We need to defer this issue until we can lock to Django==1.8

Actions #4

Updated by bmbouter almost 8 years ago

  • Subject changed from Django URL API deprecation warnings in the log to Pulp API is incompatible with Django 1.10
  • Sprint Candidate changed from No to Yes

asmacdo and I talked about this on IRC and I had suggested that we should defer until we lock onto Django 1.8, but I now realize that 1.10 will be added to rawhide, and possibly F24 and F23. This will break Pulp. As such, I'm re-titling it to show the severity more clearly. I'm also adding it back as a sprint candidate based on it's severity.

I propose that we write a super-simple compatibility layer which will have two implementations, the existing implementation and a new one. The new codepath will execute for Django 1.6+ and it will adhere to what the warnings recommend after we rewrite the urls.py file to use the new form. The existing codepath will execute for Django 1.5-.

A new task should be created also to remove this compatibility layer when we do lock onto Django 1.8 (the LTS).

Actions #5

Updated by mhrivnak almost 8 years ago

  • Sprint/Milestone set to 24
Actions #6

Updated by amacdona@redhat.com over 7 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to amacdona@redhat.com
Actions #8

Updated by amacdona@redhat.com over 7 years ago

  • Status changed from ASSIGNED to POST

Added by Austin Macdonald over 7 years ago

Revision 315e0653 | View on GitHub

Update urls syntax for Django 1.10

Also adds a compat_urls.py file to support Django versions older than 1.6.

closes #1766

Added by Austin Macdonald over 7 years ago

Revision 315e0653 | View on GitHub

Update urls syntax for Django 1.10

Also adds a compat_urls.py file to support Django versions older than 1.6.

closes #1766

Actions #9

Updated by Anonymous over 7 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #10

Updated by semyers over 7 years ago

  • Platform Release set to 2.10.1
Actions #11

Updated by semyers over 7 years ago

  • Status changed from MODIFIED to 5
Actions #12

Updated by semyers over 7 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #13

Updated by bmbouter about 6 years ago

  • Sprint set to Sprint 6
Actions #14

Updated by bmbouter about 6 years ago

  • Sprint/Milestone deleted (24)
Actions #15

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF