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

Mark data for persistence update #3607

Merged
merged 7 commits into from
Apr 2, 2023
Merged

Conversation

Bibo-Joshi
Copy link
Member

Closes #3554. Closes #3601

Checklist for PRs

  • Added .. versionadded:: version, .. versionchanged:: version or .. deprecated:: version to the docstrings for user facing changes (for methods/class descriptions, arguments and attributes)
  • Created new or adapted existing unit tests
  • Documented code changes according to the CSI standard
  • Added myself alphabetically to AUTHORS.rst (optional)
  • Added new classes & modules to the docs and all suitable __all__ s

@Bibo-Joshi Bibo-Joshi marked this pull request as ready for review March 19, 2023 14:39
Copy link
Member

@Poolitzer Poolitzer left a comment

Choose a reason for hiding this comment

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

Just different wording suggestions, code is a great change!

Comment on lines 1385 to 1386
Note that for data that should be available globally in all handler callbacks,
independent of the chat/user, it is recommended use :attr:`bot_data` instead.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Note that for data that should be available globally in all handler callbacks,
independent of the chat/user, it is recommended use :attr:`bot_data` instead.
Note that for data which should be available globally in all handler callbacks,
e.g. independent of the chat/user, it is recommended to use :attr:`bot_data` instead.

Comment on lines 1432 to 1434
For :attr:`user_data` and :attr:`chat_data`, only those entries are updated that were used
or manually marked via :meth:`mark_data_for_update_persistence` since the last run of this
method.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
For :attr:`user_data` and :attr:`chat_data`, only those entries are updated that were used
or manually marked via :meth:`mark_data_for_update_persistence` since the last run of this
method.
For :attr:`user_data` and :attr:`chat_data`, only the entries are updated which either were
used or have been manually marked via :meth:`mark_data_for_update_persistence` since
the last run of this method.

Copy link
Member

@Poolitzer Poolitzer left a comment

Choose a reason for hiding this comment

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

LGTM

@Bibo-Joshi Bibo-Joshi merged commit d91bc45 into master Apr 2, 2023
@Bibo-Joshi Bibo-Joshi deleted the mark-data-for-persistence-update branch April 2, 2023 20:29
@github-actions github-actions bot locked and limited conversation to collaborators Apr 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants