Skip to content
This repository was archived by the owner on Sep 28, 2022. It is now read-only.

3.0.0#91

Merged
jenow merged 178 commits into
masterfrom
3-dev
May 11, 2020
Merged

3.0.0#91
jenow merged 178 commits into
masterfrom
3-dev

Conversation

@jenow
Copy link
Copy Markdown
Contributor

@jenow jenow commented May 11, 2020

3.0.0 (2020-05-11)

Bug fixes

  • [ #56 ] Auth controller tests + Fix Task (jenow)

New features

Others


ycombes and others added 30 commits August 19, 2019 13:00
## What does this PR do ?

This PR adds the Kuzzle and WebSocket class plus :
- AbstractProtocol class (Used to create new protocols)
- EventListener class (Used to handle events)
- Task class (Used to create a new CompletableFuture to handle response of queries)
- Response class (Used as a structure)
- KuzzleOptions and WebSocketOptions class

### How should this be manually tested?
Run `cd kuzzle-sdk-java && ./gradlew test`
## What does this PR do ?

Move the `kuzzle-sdk-java` directory to /
What does this PR do ?

Depends on #46 
Add rules to generate and publish the .jar
## What does this PR do ?

Add auth controller with unit tests and documentation.

### How should this be manually tested?

```sh
./gradlew test
```

### Other changes

- Added test snippet documentation
- Reformat code with new prettier rules
y-abs and others added 27 commits April 10, 2020 13:46
Co-Authored-By: Adrien Maret <amaret93@gmail.com>
Co-Authored-By: Adrien Maret <amaret93@gmail.com>
Co-Authored-By: Adrien Maret <amaret93@gmail.com>
## What does this PR do ?

This PR implements the `collection:refresh` method with its unit tests.

<!-- Uncomment this section to link PR on other SDKs
https://github.com/kuzzleio/sdk-cpp/pull/ ⬅️ 🔵
-->

### How should this be manually tested?

Clone this branch and run unit tests
`./gradlew test`

When it succeed, compile it

`./gradlew jar`

Initiate another java project by adding the compiled SDK as a dependency.

Then, run Kuzzle, create an index `nyc-open-data`, a `yellow-taxi` collection
Finally, run this code

```java
import io.kuzzle.sdk.*;
import io.kuzzle.sdk.Options.KuzzleOptions;
import io.kuzzle.sdk.Options.Protocol.WebSocketOptions;
import io.kuzzle.sdk.Protocol.WebSocket;

import java.util.concurrent.ConcurrentHashMap;

public class refreshCollection {
    private static Kuzzle kuzzle;

    public static void main(String[] args) {
        WebSocketOptions opts = new WebSocketOptions();
        opts.setAutoReconnect(true).setConnectionTimeout(42000);

        try {
            WebSocket ws = new WebSocket("localhost", opts);

            kuzzle = new Kuzzle(ws, (KuzzleOptions) null);

            kuzzle.connect();

            kuzzle.getCollectionController().refresh("nyc-open-data", "yellow-taxi").get();
            
        }  catch (Exception e) {
            e.printStackTrace();
        }

        kuzzle.disconnect();
    }
};
```
## What does this PR do ?

This PR implements the `collection:list` method with its unit tests.

<!-- Uncomment this section to link PR on other SDKs
https://github.com/kuzzleio/sdk-cpp/pull/ ⬅️ 🔵
-->

### How should this be manually tested?

Clone this branch and run unit tests
`./gradlew test`

When it succeed, compile it

`./gradlew jar`

Initiate another java project by adding the compiled SDK as a dependency.

Then, run Kuzzle, create an index `nyc-open-data`, a `yellow-taxi` collection.
Finally, run this code

```java
import io.kuzzle.sdk.*;
import io.kuzzle.sdk.Options.KuzzleOptions;
import io.kuzzle.sdk.Options.Protocol.WebSocketOptions;
import io.kuzzle.sdk.Protocol.WebSocket;

import java.util.concurrent.ConcurrentHashMap;

public class listCollection {
    private static Kuzzle kuzzle;

    public static void main(String[] args) {
        WebSocketOptions opts = new WebSocketOptions();
        opts.setAutoReconnect(true).setConnectionTimeout(42000);

        try {
            WebSocket ws = new WebSocket("localhost", opts);

            kuzzle = new Kuzzle(ws, (KuzzleOptions) null);

            kuzzle.connect();

           ConcurrentHashMap<String, Object> result = kuzzle.getCollectionController().list("nyc-open- 
           data").get();
           System.out.println(result);
            
        }  catch (Exception e) {
            e.printStackTrace();
        }

        kuzzle.disconnect();
    }
};
```
…ications

Add collection:searchSpecifications
Add Getting started documentation
@jenow jenow added the release label May 11, 2020
@jenow jenow merged commit 312f3ea into master May 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants