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

Bookmark manager no longer tracks per database #859

Merged
merged 5 commits into from Nov 25, 2022

Conversation

robsdedude
Copy link
Member

@robsdedude robsdedude commented Nov 22, 2022

  • The experimental bookmark manager feature was changed to no longer track bookmarks per database. This effectively changes the signature of almost all bookmark manager related methods:
    • neo4j.BookmarkManger and neo4j.AsyncBookmarkManger abstract base classes: - update_bookmarks has no longer a database argument. - get_bookmarks has no longer a database argument. - The get_all_bookmarks method was removed. - The forget method was removed.
    • neo4j.GraphDatabase.bookmark_manager and neo4j.AsyncGraphDatabase.bookmark_manager factory methods:
      • initial_bookmarks is no longer a mapping from database name to bookmarks but plain bookmarks.
      • bookmarks_supplier no longer receives the database name as an argument. - bookmarks_consumer no longer receives the database name as an argument.

Depends on

- The experimental bookmark manager feature was changed to no longer track
  bookmarks per database.
  This effectively changes the signature of almost all bookmark
  manager related methods:
  - `neo4j.BookmarkManger` and `neo4j.AsyncBookmarkManger` abstract base
    classes:
    - ``update_bookmarks`` has no longer a ``database`` argument.
    - ``get_bookmarks`` has no longer a ``database`` argument.
    - The ``get_all_bookmarks`` method was removed.
    - The ``forget`` method was removed.
  - `neo4j.GraphDatabase.bookmark_manager` and
    `neo4j.AsyncGraphDatabase.bookmark_manager` factory methods:
    - ``initial_bookmarks`` is no longer a mapping from database name
      to bookmarks but plain bookmarks.
    - ``bookmarks_supplier`` no longer receives the database name as
      an argument.
    - ``bookmarks_consumer`` no longer receives the database name as
      an argument.
@robsdedude robsdedude marked this pull request as ready for review November 24, 2022 09:27
Copy link
Contributor

@bigmontz bigmontz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔖 👔

tests/unit/async_/test_bookmark_manager.py Show resolved Hide resolved
@robsdedude robsdedude merged commit f8e3f88 into neo4j:5.0 Nov 25, 2022
@robsdedude robsdedude deleted the bookmark-manager-without-db branch November 25, 2022 09:25
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.

None yet

2 participants