Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor config/middleware.py to more closely match poc-flask-views #3116

Merged
merged 1 commit into from Jun 21, 2016

Conversation

@brew
Copy link
Member

@brew brew commented Jun 15, 2016

To help with eventual merging of the Flask migration work (#2971), this PR restructures the CKAN middleware module to more closely match the file structure used by the poc-flask-views branch. This separates the Flask and Pylons apps, and common middleware code into different modules, making it a little easier to work with the separate concerns.

It was starting to become unmanageably large with a lot of separate
concerns in one place.

- Separate the flask and pylons app code into separate modules.
- Separate the common middleware code into a separate module.
@amercader
Copy link
Member

@amercader amercader commented Jun 16, 2016

For the reviewer, the only new thing apart from structure changes that this includes is a monkey-patch on the WebOb library. This was discussed on a past dev meeting, but all the details are in this commit: 09fd630

@wardi wardi merged commit 954205d into master Jun 21, 2016
1 of 2 checks passed
k-nut pushed a commit to k-nut/ckan that referenced this issue Jul 4, 2016
It was starting to become unmanageably large with a lot of separate
concerns in one place.

- Separate the flask and pylons app code into separate modules.
- Separate the common middleware code into a separate module.
@smotornyuk smotornyuk deleted the 3116-middleware-refactor branch Dec 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants