Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Upgrade requirements September 2022#7064

Merged
pdelboca merged 8 commits into
masterfrom
upgrade-requirements-september-2022
Sep 14, 2022
Merged

Upgrade requirements September 2022#7064
pdelboca merged 8 commits into
masterfrom
upgrade-requirements-september-2022

Conversation

@amercader
Copy link
Copy Markdown
Member

@amercader amercader commented Sep 8, 2022

      File "/home/adria/dev/pyenvs/ckan-py3/src/ckan/ckan/tests/pytest_ckan/fixtures.py", line 98, in <module>
        register(factories.Sysadmin, "sysadmin")
      File "/home/adria/dev/pyenvs/ckan-py3/lib/python3.8/site-packages/pytest_factoryboy/fixture.py", line 124, in register
        assert model_name != factory_name, (
    AssertionError: Naming collision for <Sysadmin for <class 'ckan.model.user.User'>>:
       * factory fixture name: sysadmin
       * model fixture name: sysadmin
      Please provide different name for model fixture.
    assert 'sysadmin' != 'sysadmin'

The upgrade causes several auth related errors in functional tests
* docutils pinnned at 0.17 because sphinx-rtd-theme doesn't support a bigger version
* pytest-factoryboy pinnned at 2.4.0 because on 2.5.0 we get:

      File "/home/adria/dev/pyenvs/ckan-py3/src/ckan/ckan/tests/pytest_ckan/fixtures.py", line 98, in <module>
        register(factories.Sysadmin, "sysadmin")
      File "/home/adria/dev/pyenvs/ckan-py3/lib/python3.8/site-packages/pytest_factoryboy/fixture.py", line 124, in register
        assert model_name != factory_name, (
    AssertionError: Naming collision for <Sysadmin for <class 'ckan.model.user.User'>>:
       * factory fixture name: sysadmin
       * model fixture name: sysadmin
      Please provide different name for model fixture.
    assert 'sysadmin' != 'sysadmin'
SQLAlchemy 1.4.2 mixed model.Package and model.PackageExtra as both have
a state column
lxml is a requirement of feedgen, currently unmaintained.
Mako is a requirement of alembic, which has its version unpinned
@amercader amercader marked this pull request as ready for review September 8, 2022 17:21
@pdelboca pdelboca merged commit af24d9d into master Sep 14, 2022
@pdelboca pdelboca deleted the upgrade-requirements-september-2022 branch September 14, 2022 07:49
@pdelboca
Copy link
Copy Markdown
Member

pdelboca commented Sep 14, 2022

Great @amercader ! Thanks for this, looks great and it's good to have CKAN running on latest versions! 🚀

I'm gonna take a look at Flask-Login issue once it's merged to avoid noise in the PR.

@TomeCirun
Copy link
Copy Markdown
Contributor

hey @amercader @pdelboca I've tested a bit the new flask-login version, at line 70 in app.post we are sending the header with the token, but it seems that before_request in admin.py module executes first even before our request_loader, so when it checks for access it would fail.
I've tried to comment out before_request, just to see if request_loader is going to execute, and it would, we have the user, but it's too late.

I m not sure why we have this behavior, but I will keep digging, and see if I can fix something.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants