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

RELEASE 2.0.0 #243

Merged
merged 475 commits into from
Jun 5, 2019
Merged

RELEASE 2.0.0 #243

merged 475 commits into from
Jun 5, 2019

Conversation

jenow
Copy link
Contributor

@jenow jenow commented Jun 5, 2019

2.0.0 (2019-06-05)

Breaking changes

Bug fixes

New features

  • [ #196 ] Add custom WebviewClient (jenow)
  • [ #191 ] Wrap Realtime controller for Android SDK (jenow)
  • [ #189 ] Wrap Server controller for Android SDK (jenow)
  • [ #188 ] Wrap Collection controller for Android SDK (jenow)
  • [ #185 ] Wrap Auth controller for Android SDK (jenow)
  • [ #184 ] Wrap Document controller for Android SDK (jenow)
  • [ #178 ] Build android AAR SDK (jenow)
  • [ #159 ] Generate C# SDK on Linux and Windows (jenow)
  • [ #156 ] Generate Python SDK (jenow)
  • [ #75 ] Add StartQueuing and StopQueuing (jenow)
  • [ #73 ] Replay queue (jenow)

Enhancements

  • [ #195 ] Wrap Listeners for android (jenow)
  • [ #194 ] [Fix] Change some char* to const char* (alexandrebouthinon)
  • [ #187 ] [KZL-372] Add namespace kuzzleio for C structs (alexandrebouthinon)
  • [ #192 ] Throw only possible exception in controller Index, Collection and Kuzzle object (Aschen)
  • [ #183 ] Add a mapping argument to existing collection.create methods (scottinet)
  • [ #182 ] Rename deprecated method ReplayQueue to PlayQueue (Aschen)
  • [ #180 ] Change options.offline_mode type (Aschen)
  • [ #153 ] Remove pointer type on KuzzleError (jenow)

Others

Optimizations


benoitvidis and others added 22 commits November 13, 2018 17:54
[bugfix] Fix document.validate unmarshalling
## What does this PR do?

Since users are now able to write their own protocol implemetation we check if the notifications channel are not nil before closing them.

### How should this be manually tested?

See travis.

:arrow_right: https://github.com/kuzzleio/sdk-cpp
fix collection.searchSpecifications by adding the missing query parameter.
Fix cancelSubs which was checking if notificationChannel was null before closing onReconnectChannel ... Bad copy paste I guess :p
#233 introduced a bug, making the SDK crashes when WebSocket is invoked without HTTP headers/with nil headers, since we try to dereference a nil value.
This PR fixes the problem by adding a guard against nil HTTP headers.

* [websocket] allow passing HTTP headers to the ctor
* [bugfix] do not dereference a nil value
…tion-links

doc: updated docs links to doc v2
This PR fixes a segfault case occuring when closing an unconnected WebSocket instance.
## What does this PR do?

Move the offline queue from the `Protocol` and `Websocket` to `Kuzzle`.
What does this PR do?

This PR add to Travis:

    Linux: amd64, i386, arm64 and armhf.
    MacOS: amd64 and i386.
    Windows: amd64 and i386.

And enable Nightly Builds using cron jobs.

* [ci] Add cache, multiple Go version for Linux
* [ci] Add MacOS amd64 and Linux i386 builds
* [ci] Add windows amd64 build
* [ci] Add more and more environment
* [ci] Add ARM64 Linux build
* [ci] Add more ARMVx Linux builds
* [ci] Clean scripts
* [ci] Force execution on one core for arm builds
* [ci] Add conditions to builds
* [ci] Make latest Go version to 1.12.x
* [ci] Enable multi os builds for release PRs
* [ci] Add Slack notifications
* [review] Apply @benoitvidis suggestions
Make the SDK Go README looks like the SDK JS one.

* [readme] Make README looks pretty
* [review] Apply suggestions from @scottinet

Co-Authored-By: alexandrebouthinon <bouthinon.alexandre@gmail.com>
The protocol.Connect method is supposed to return a boolean telling if this is a first connection, or a reconnection.
Problem is, that status is computed at the beginning of that Connect method, and then set to true if this is a first connection, meaning that the status detection flag cannot be used.

As a result, the event.Connected event is never triggered.

Also, the event.Reconnected event is never triggered if no jwt is set.
@jenow jenow added the release label Jun 5, 2019
@jenow jenow self-assigned this Jun 5, 2019
@codecov
Copy link

codecov bot commented Jun 5, 2019

Codecov Report

Merging #243 into master will decrease coverage by 0.13%.
The diff coverage is 46.05%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #243      +/-   ##
==========================================
- Coverage      89%   88.86%   -0.14%     
==========================================
  Files         243      244       +1     
  Lines        4364     4463      +99     
==========================================
+ Hits         3884     3966      +82     
+ Misses        453      443      -10     
- Partials       27       54      +27
Impacted Files Coverage Δ
kuzzle/queue.go 2.98% <ø> (-22.02%) ⬇️
index/get_auto_refresh.go 88.23% <ø> (ø)
ms/pexpire.go 100% <ø> (ø) ⬆️
kuzzle/disconnect.go 0% <0%> (ø) ⬆️
document/get.go 90.47% <0%> (-9.53%) ⬇️
document/count.go 84% <0%> (-8%) ⬇️
document/mCreate.go 100% <100%> (ø) ⬆️
document/mCreateOrReplace.go 100% <100%> (ø) ⬆️
document/mUpdate.go 100% <100%> (ø) ⬆️
document/mReplace.go 100% <100%> (ø) ⬆️
... and 27 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7de5e2d...587c887. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Jun 5, 2019

Codecov Report

Merging #243 into master will decrease coverage by 0.13%.
The diff coverage is 46.05%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #243      +/-   ##
==========================================
- Coverage      89%   88.86%   -0.14%     
==========================================
  Files         243      244       +1     
  Lines        4364     4463      +99     
==========================================
+ Hits         3884     3966      +82     
+ Misses        453      443      -10     
- Partials       27       54      +27
Impacted Files Coverage Δ
kuzzle/queue.go 2.98% <ø> (-22.02%) ⬇️
index/get_auto_refresh.go 88.23% <ø> (ø)
ms/pexpire.go 100% <ø> (ø) ⬆️
kuzzle/disconnect.go 0% <0%> (ø) ⬆️
document/get.go 90.47% <0%> (-9.53%) ⬇️
document/count.go 84% <0%> (-8%) ⬇️
document/mCreate.go 100% <100%> (ø) ⬆️
document/mCreateOrReplace.go 100% <100%> (ø) ⬆️
document/mUpdate.go 100% <100%> (ø) ⬆️
document/mReplace.go 100% <100%> (ø) ⬆️
... and 27 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7de5e2d...587c887. Read the comment docs.

@jenow jenow merged commit de4982f into master Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants