Task #4185
closed[pyramid] switch routing to be fully pyramid only
100%
Description
We need to start moving the code back to pyramid. We should start with making routes work only in PYRAMID, if that's possible.
- need to investigate if we can make it work
- we should have a one common place to define those like we had before
- can we support pylons DELETE/PUT fake request mapping, or should we re-do all the routes not to use them (it's really a POST faked by special parameter to mimic DELETE/PUT)
Updated by Daniel D over 8 years ago
One issue with moving urls to pyramid is that generating urls for tests can't use the url generator.
You can't use request.route_path('someroute')
unless there is a request context - which means the tests would have to be done as:
url = ADMIN_PREFIX + '/some/route/' + str(id)
vs
url = request.route_path('someroute', id=id)
Although this might be good in actually finding route changing mistakes.
Updated by Daniel D over 8 years ago
We can add middleware to support the fake _method arg, but it's a better idea to use POST/GET's for everything, since web browsers only support that and the endpoints are not actually REST in the end.
Updated by Marcin Kuzminski [CTO] over 8 years ago
Yes, firstly we should remove all DELETE/UPDATE/PUT fake calls.
- probably already needs route changing and matching
as for ADMIN prefix, there for sure must be a way to generate urls for tests.
Updated by Marcin Kuzminski [CTO] over 8 years ago
- Target version changed from v4.4 to v4.5
Updated by Marcin Kuzminski [CTO] about 8 years ago
- Target version changed from v4.5 to v4.6
Updated by Marcin Kuzminski [CTO] almost 8 years ago
- Target version changed from v4.6 to v4.7
Updated by Marcin Kuzminski [CTO] over 7 years ago
- Target version changed from v4.7 to v5.0
Updated by Redmine Integration over 7 years ago
pullrequest created by marcink (status: under_review). https://internal-code.rhodecode.com/rhodecode-enterprise-ce/pull-request/2892
Updated by Redmine Integration over 7 years ago
Commit c94a1c499e73 by Marcin Kuzminski marcin@rhodecode.com on default branch references this issue. https://internal-code.rhodecode.com/rhodecode-enterprise-ce/changeset/c94a1c499e73ad6b74bab6fde2ad274858d48ded
Updated by Redmine Integration over 7 years ago
pullrequest merged by marcink (status: approved). https://internal-code.rhodecode.com/rhodecode-enterprise-ce/pull-request/2892
Updated by Marcin Kuzminski [CTO] over 6 years ago
- Status changed from New to Closed
resolved many time ago