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

Fix msgTypes + Add sort_by/sort_order args to MessageFilter/PostFilter #104

Merged

Conversation

philogicae
Copy link
Member

@philogicae philogicae commented Feb 19, 2024

Found issues:

  • Missing sort_by/sort_order filters: issue 95 on SDK
  • message_types passed as arg to MessageFilter breaks if nb elements > 1

Proposed solution:

  • Modified MessageFilter/PostFilter + Added SortBy/SortOrder enums
  • Fix typo on msgType -> msgTypes
  • Also requires merging of PR on PyAleph repo

@hoh

MHHukiewitz
MHHukiewitz previously approved these changes Feb 19, 2024
Copy link
Member

@MHHukiewitz MHHukiewitz left a comment

Choose a reason for hiding this comment

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

.Thank you for the contribution! Also, good finds on msgTypes and enum_as_str 👍

@philogicae
Copy link
Member Author

Fixed the isort test failing

src/aleph/sdk/utils.py Outdated Show resolved Hide resolved
@MHHukiewitz MHHukiewitz merged commit f60cedc into aleph-im:main Feb 20, 2024
10 checks passed
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.

2 participants