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

Stats implementation #283

Closed
wants to merge 52 commits into from

Conversation

ikbalkaya
Copy link
Contributor

@ikbalkaya ikbalkaya commented Dec 21, 2021

This PR includes full implementation of Rest.stats function for Flutter plugin. As stats is a slightly complicated and big object, this pull request might seem a bit huge but the scope is still just a map of a function.
Implemenation contains

  • New type definitions on Flutter side for code generation
  • New encoders for Java
  • New encoders for Swift/Objective-C
  • Function mappings
  • A paginated result viewer addition to example app.

There were some differences between native implementations

  • Structures were formed slightly differently. I created an issue in ably-java for this Stats structure is not fully compatible with spec ably-java#733
  • The way stats params were received was a bit more structured in Objective C than Java. In Objective C there is a dedicated object for this, where it's a Param[] in Java. I have created a separate category in Objective C to build that object from the map sent from Dart side.

@github-actions github-actions bot temporarily deployed to staging/pull/283/dartdoc December 21, 2021 17:49 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/283/dartdoc December 22, 2021 15:55 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/283/dartdoc December 22, 2021 16:08 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/283/dartdoc December 23, 2021 11:37 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/283/dartdoc December 23, 2021 12:18 Inactive
@ikbalkaya ikbalkaya self-assigned this Dec 23, 2021
@ikbalkaya ikbalkaya added the enhancement New feature or improved functionality. label Dec 23, 2021
@ikbalkaya ikbalkaya marked this pull request as ready for review December 23, 2021 16:04
@ikbalkaya ikbalkaya removed the request for review from tiholic December 23, 2021 16:04
@ikbalkaya ikbalkaya linked an issue Dec 29, 2021 that may be closed by this pull request
@ikbalkaya ikbalkaya linked an issue Jan 5, 2022 that may be closed by this pull request
@@ -1,47 +0,0 @@
## Code generation to keep platform constants in sync
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this removed purposely? I think it may be usefull 🤔

@ikurek
Copy link
Contributor

ikurek commented Feb 8, 2022

Closing this in favor of #324

@ikurek ikurek closed this Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improved functionality.
Development

Successfully merging this pull request may close these issues.

REST and Realtime Statistics (Stats) Implement stats Rest and Realtime clients
3 participants