Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add missing history_with_actions fields#117

Merged
seba-aln merged 3 commits intomasterpubnub/python:masterfrom
fix/add-missing-history-fieldspubnub/python:fix/add-missing-history-fieldsCopy head branch name to clipboard
Apr 11, 2022
Merged

Add missing history_with_actions fields#117
seba-aln merged 3 commits intomasterpubnub/python:masterfrom
fix/add-missing-history-fieldspubnub/python:fix/add-missing-history-fieldsCopy head branch name to clipboard

Conversation

@seba-aln
Copy link

@seba-aln seba-aln commented Mar 29, 2022

feat: add methods to include additional fields in fetch_messages

@seba-aln seba-aln requested a review from kleewho as a code owner March 29, 2022 12:50
@seba-aln seba-aln force-pushed the fix/add-missing-history-fields branch 4 times, most recently from 61d8721 to 8e17153 Compare March 30, 2022 08:18
@seba-aln seba-aln force-pushed the fix/add-missing-history-fields branch from 8e17153 to 37ab538 Compare March 30, 2022 08:24
Copy link

@kleewho kleewho left a comment

Choose a reason for hiding this comment

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

I can't tell why, but we have something like this in Java SDK:

@SerializedName("message_type")
    @Getter(AccessLevel.NONE)
    private final String messageType;
    private int getMessageType() {
        if (messageType == null || messageType.isEmpty()) {
            return 0;
        } else {
            return Integer.parseInt(messageType);
        }
    }

Which means that if message type is not set the default that the SDK user see is 0. I'll try to find a ticket or something that maybe tell us more

self._count = None
self._include_meta = None
self._include_message_actions = None
self._include_message_type = None
Copy link

Choose a reason for hiding this comment

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

I don't think we have it in Kotlin SDK :/

Copy link
Author

Choose a reason for hiding this comment

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

i've included all fields that were required to completely mimic the behavior of REST endpoint

@seba-aln
Copy link
Author

seba-aln commented Apr 1, 2022

@client-engineering-bot release

@seba-aln seba-aln merged commit 973ffbc into master Apr 11, 2022
@seba-aln seba-aln deleted the fix/add-missing-history-fields branch April 11, 2022 07:58
@github-actions
Copy link

🚀 Release successfully completed 🚀

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.