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: refuse time and pagination parameters for message WS #337

Merged

Conversation

odesenfans
Copy link
Contributor

Problem: the message websocket could receive "startDate"/"endDate"
and pagination parameters.

Solution: use a slightly different Pydantic model for the websocket
to reject these parameters.

@odesenfans
Copy link
Contributor Author

Depends on #335.

@odesenfans odesenfans self-assigned this Oct 6, 2022
@odesenfans odesenfans force-pushed the od-messages-use-different-models-for-api-and-ws branch from e19d6a6 to 290f6f2 Compare October 6, 2022 03:28
@odesenfans odesenfans changed the base branch from master to dev October 6, 2022 04:04
@odesenfans odesenfans force-pushed the od-messages-use-different-models-for-api-and-ws branch from 290f6f2 to 7e9959b Compare October 6, 2022 23:24
Problem: the message websocket could receive "startDate"/"endDate"
and pagination parameters.

Solution: use a slightly different Pydantic model for the websocket
to reject these parameters.
@odesenfans odesenfans force-pushed the od-messages-use-different-models-for-api-and-ws branch from 7e9959b to ba305d4 Compare October 13, 2022 14:22
@odesenfans odesenfans assigned hoh and unassigned odesenfans Oct 13, 2022
@odesenfans odesenfans marked this pull request as ready for review October 13, 2022 14:22
@hoh hoh merged commit 598b58e into aleph-im:dev Oct 13, 2022
odesenfans added a commit to odesenfans/pyaleph that referenced this pull request Oct 14, 2022
Problem: the time filters are ignored in the messages.json endpoint
since aleph-im#337.

Solution: reactivate the filtering.
odesenfans added a commit that referenced this pull request Oct 14, 2022
Problem: the time filters are ignored in the messages.json endpoint
since #337.

Solution: reactivate the filtering.
odesenfans added a commit that referenced this pull request Oct 17, 2022
Problem: the time filters are ignored in the messages.json endpoint
since #337.

Solution: reactivate the filtering.
odesenfans added a commit that referenced this pull request Oct 27, 2022
Problem: the time filters are ignored in the messages.json endpoint
since #337.

Solution: reactivate the filtering.
odesenfans added a commit that referenced this pull request Jan 9, 2023
Problem: the time filters are ignored in the messages.json endpoint
since #337.

Solution: reactivate the filtering.
odesenfans added a commit that referenced this pull request Mar 21, 2023
Problem: the time filters are ignored in the messages.json endpoint
since #337.

Solution: reactivate the filtering.
odesenfans added a commit that referenced this pull request Mar 21, 2023
Problem: the time filters are ignored in the messages.json endpoint
since #337.

Solution: reactivate the filtering.
odesenfans added a commit that referenced this pull request Apr 24, 2023
Problem: the time filters are ignored in the messages.json endpoint
since #337.

Solution: reactivate the filtering.
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