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

remove upper limit #174

Draft
wants to merge 16 commits into
base: master
Choose a base branch
from

Commits on Nov 19, 2024

  1. Configuration menu
    Copy the full SHA
    294321e View commit details
    Browse the repository at this point in the history
  2. fix: tests LocalProxy

    * it is not working anymore with localproxy and it seams not necessary
    utnapischtim committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    07acd2e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7cb181b View commit details
    Browse the repository at this point in the history
  4. change: add proxy file

    * use the proxy file instead of creating the _db variable in both files
    
    * this removes a DeprecationWarning from flask-sqlalchemy, which
      states that the support of the use '.db' will be removed
    utnapischtim committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    1785799 View commit details
    Browse the repository at this point in the history
  5. fix: WeakKeyDictionary

    * the error indicates that db.init_app is not called, but it is and it
      works in other contexts. It may that the `db = invenio_db = shared.db`
      line in conftest.py is not working as expected anymore. The only found
      solution is this. The drawback is, if that is the only solution it has
      to be done also in the other packages which are using this function.
      With the default value it is backward compatible but as the tests
      indicates it may not work without adding the db parameter to the
      function call
    utnapischtim committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    9bb8784 View commit details
    Browse the repository at this point in the history
  6. fix: remove warning and black problems

    * added D202, pydocstyle and black do not habe the same opinion
    
    * remove warning by using StringEncryptedType instead of EncryptedType.
      This removes a warning and there is further a notice in the code that
      the base type of EncryptedType will change in the future and it is
      better to replace it with StringEncryptedType
    utnapischtim committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    8244aef View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    eb010d3 View commit details
    Browse the repository at this point in the history
  8. setup: remove upper pins

    utnapischtim committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    6492e05 View commit details
    Browse the repository at this point in the history
  9. refactor: move MockEntryPoint to independent file

    * this change makes it possible to import the MockEntryPoints from an
      independend file. this class is used in two tests but defined in one
      of them. placing it into a separated file makes it independent.
    utnapischtim committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    0ba97c1 View commit details
    Browse the repository at this point in the history
  10. cli: password is per default hided

    * this leads to the problem that the program couldn't connect to the
      database
    utnapischtim committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    e382de9 View commit details
    Browse the repository at this point in the history
  11. setup: increase min sqlalchemy dependency

    * apply new correct return values to cli calls
    
    * refactor code
    
    * remove unused code
    utnapischtim committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    3846460 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    a4dad43 View commit details
    Browse the repository at this point in the history
  13. setup: increase flask-alembic

    * flask-alembic >= 3.0 needs flask >= 3.0 and flask-sqlalchemy >= 3.0
    
    * added some explanation comments
    
    * apply db.session.query over Model.query syntax
    utnapischtim committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    7fbb042 View commit details
    Browse the repository at this point in the history
  14. fix: select of BinaryExpressions

    * sqlalchemy.exc.ArgumentError: Column expression, FROM clause, or other
      columns clause element expected, got
      [<sqlalchemy.sql.elements.BinaryExpression object at 0x7fa3a0>,
      <sqlalchemy.sql.elements.BinaryExpression object at 0x7fa3ad246690>].
      Did you mean to say select(<sqlalchemy.sql.elements.BinaryExpression
      object at 0x7fa3b1145c10>, <sqly.sql.elements.BinaryExpression object at
      0x7fa3ad246690>)
    
      don't give the array to the select but give the elements to the select
      method
    
    * AttributeError: 'Engine' object has no attribute 'execute' -> change
      to session
    
    * TypeError: scoped_session.execute() got an unexpected keyword argument
      'a' -> change to dict
    utnapischtim committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    0fe66b0 View commit details
    Browse the repository at this point in the history
  15. uow: possible solution for the rollback problem

    * the rollback should only rollback whats in that savepoint. using
      session.begin_nested creates a subtransaction which can then
      rolledback
    utnapischtim committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    2d220f1 View commit details
    Browse the repository at this point in the history
  16. release: v2.0.0

    utnapischtim committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    db26fa3 View commit details
    Browse the repository at this point in the history