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 0.2.0 #74

Merged
merged 24 commits into from
May 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
fdffc90
Remove multitenancy pipes (#50)
Aschen Mar 23, 2021
a15ca5b
docs(devices): remove sensor keyword on some of our new docs
Leodau Mar 25, 2021
6e5254c
keep frontend folder
Njuelle Mar 25, 2021
62ff5a8
Add API actions to prune payloads collection (#49)
Yoann-Abbes Apr 2, 2021
6ae0fab
add mUnlink feature tests and documentation (#60)
rolljee Apr 7, 2021
638d34c
Change separator for assets and devices IDs (#63)
Aschen Apr 8, 2021
0412a57
Fix search (#64)
jenow Apr 9, 2021
32c4e14
Forward API options to custom controllers actions (#65)
jenow Apr 9, 2021
35eef8e
Adds "refresh" option support to DeviceController (#66)
jenow Apr 12, 2021
0e5feb3
Upgrade kuzzle 2.11 (#68)
Aschen Apr 13, 2021
31c8865
fix options on unlink
jenow Apr 13, 2021
f3f80d1
Merge pull request #70 from kuzzleio/fix-options
Njuelle Apr 13, 2021
7ccc154
Make keyword fields also filtrable (#69)
jenow Apr 14, 2021
d45a97a
fix(deviceService): wrong types definition
Apr 14, 2021
c1e7e68
Merge branch '1-dev' of github.com:kuzzleio/kuzzle-plugin-device-mana…
Apr 14, 2021
9941b30
refacto(deviceService): move decoders in the DeviceService
Apr 14, 2021
c7dc7af
Smoll wording improvements (#71)
xbill82 Apr 16, 2021
65fca52
Custom mappings for devices and assets for a tenant group only (#61)
Yoann-Abbes May 4, 2021
0226718
Release 0.2.0
Yoann-Abbes May 4, 2021
e0af20d
Add deploy job (#62)
Aschen Apr 7, 2021
8c966ce
merge ok
rolljee Apr 1, 2021
71f900e
fix conflicts
rolljee May 7, 2021
f7fe41d
desactivate deadlinks tests
Yoann-Abbes May 11, 2021
26da407
Merge branch '0.2.0-proposal' of github.com:kuzzleio/kuzzle-plugin-de…
Yoann-Abbes May 11, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 20 additions & 42 deletions .github/workflows/pull_request.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,6 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- uses: actions/[email protected]
with:
node-version: "12"
Expand All @@ -30,39 +19,28 @@ jobs:
needs: [lint]
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- uses: actions/[email protected]
with:
node-version: "12"
- uses: ./.github/actions/functional-test

documentation-dead-links:
name: Dead links
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- uses: actions/[email protected]
with:
node-version: "12"
- uses: ./.github/actions/dead-links
# documentation-dead-links:
# name: Dead links
# runs-on: ubuntu-18.04
# steps:
# - uses: actions/checkout@v2
# - name: Cache node modules
# uses: actions/cache@v2
# env:
# cache-name: cache-node-modules
# with:
# path: ~/.npm
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-build-${{ env.cache-name }}-
# ${{ runner.os }}-build-
# ${{ runner.os }}-
# - uses: actions/[email protected]
# with:
# node-version: "12"
# - uses: ./.github/actions/dead-links
62 changes: 20 additions & 42 deletions .github/workflows/push_master.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,6 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- uses: actions/[email protected]
with:
node-version: "12"
Expand All @@ -33,42 +22,31 @@ jobs:
needs: [lint]
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- uses: actions/[email protected]
with:
node-version: "12"
- uses: ./.github/actions/functional-test

documentation-dead-links:
name: Dead links
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- uses: actions/[email protected]
with:
node-version: "12"
- uses: ./.github/actions/dead-links
# documentation-dead-links:
# name: Dead links
# runs-on: ubuntu-18.04
# steps:
# - uses: actions/checkout@v2
# - name: Cache node modules
# uses: actions/cache@v2
# env:
# cache-name: cache-node-modules
# with:
# path: ~/.npm
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-build-${{ env.cache-name }}-
# ${{ runner.os }}-build-
# ${{ runner.os }}-
# - uses: actions/[email protected]
# with:
# node-version: "12"
# - uses: ./.github/actions/dead-links

documentation-production:
name: Deployment Doc Prod
Expand Down
18 changes: 18 additions & 0 deletions doc/1/classes/assets-custom-properties/constructor/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
code: false
type: page
title: Constructor
description: AssetsCustomProperties class constructor
---

# AssetsCustomProperties

This class is used within the plugin in order to register custom properties definitions to the `assets` collection.
They are automatically loaded at application startup.
---

## Constructor

```ts
AssetsCustomProperties()
```
6 changes: 6 additions & 0 deletions doc/1/classes/assets-custom-properties/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
code: true
type: branch
title: AssetsCustomProperties
description: Kuzzle IoT Platform - AssetsCustomProperties class
---
44 changes: 44 additions & 0 deletions doc/1/classes/assets-custom-properties/register-metadata/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
code: true
type: page
title: registerMetadata
description: Add properties definition to the 'metadata' field
---

# registerMetadata

Add properties definition to the `metadata` field of the `assets` collection.


```ts
registerMetadata (mapping: JSONObject, options: JSONObject);
```

<br/>

| Arguments | Type | Description |
|-----------|-----------------------|---------------------------------------------|
| `mapping` | <pre>JSONObject</pre> | Mapping definiton of the `metadata` property |
| `options` | <pre>JSONObject</pre> | Additional options |

### options

| Properties | Type | Description |
|-----------|-----------------------|---------------------------------------------|
| `tenantGroup` | <pre>string</pre> | Name of the group for which the mapping should apply. If unspecified, mappings will apply to every group who does not have specific definition. |

## Usage

```ts
import { DeviceManagerPlugin } from 'kuzzle-plugin-device-manager';

const deviceManagerPlugin = new DeviceManagerPlugin();

deviceManagerPlugin.assets.registerMetadata({
serial: {
type: 'keyword',
fields: {
text: { type: 'text' } }
}
}, { tenantGroup: 'water_management' });
```
18 changes: 18 additions & 0 deletions doc/1/classes/devices-custom-properties/constructor/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
code: false
type: page
title: Constructor
description: DevicesCustomProperties class constructor
---

# DevicesCustomProperties

This class is used within the plugin in order to register custom properties definitions to the `devices` collection.
They are automatically loaded at application startup.
---

## Constructor

```ts
DeviceCustomProperties()
```
6 changes: 6 additions & 0 deletions doc/1/classes/devices-custom-properties/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
code: true
type: branch
title: DevicesCustomProperties
description: Kuzzle IoT Platform - DevicesCustomProperties class
---
62 changes: 62 additions & 0 deletions doc/1/classes/devices-custom-properties/register-measure/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
code: true
type: page
title: registerMeasure
description: Add properties definition to the 'measures' field
---

# registerMeasure

Add properties definition to the `measures` field of the `devices` collection.


```ts
registerMeasure (measureName: string, mapping: JSONObject, options: JSONObject);
```

<br/>

| Arguments | Type | Description |
|-----------|-----------------------|---------------------------------------------|
| `measureName` | <pre>string</pre> | Name of the measure you are willing to add to the `measures` field |
| `mapping` | <pre>JSONObject</pre> | Mapping definiton of the custom measure property |
| `options` | <pre>JSONObject</pre> | Additional options |

### options

| Properties | Type | Description |
|-----------|-----------------------|---------------------------------------------|
| `tenantGroup` | <pre>string</pre> | Name of the group for which the mapping should apply. If unspecified, mappings will apply to every group who does not have specific definition |

## Usage

```ts
import { DeviceManagerPlugin } from 'kuzzle-plugin-device-manager';

const deviceManagerPlugin = new DeviceManagerPlugin();

deviceManagerPlugin.devices.registerMeasure(
'temperature',
{
dynamic: 'false',
properties: {
fahrenheit: { type: 'float' },
celsius: { type: 'float' }
}
},
{ tenantGroup: 'water_management' });

deviceManagerPlugin.devices.registerMeasure(
'humidity',
{
dynamic: 'false',
properties: {
percentage: {
type: 'keyword',
fields: {
text: { type: 'text' } }
}
}
},
{ tenantGroup: 'air_quality' });
```
44 changes: 44 additions & 0 deletions doc/1/classes/devices-custom-properties/register-metadata/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
code: true
type: page
title: registerMetadata
description: Add properties definition to the 'metadata' field
---

# registerMetadata

Add properties definition to the `metadata` field of the `devices` collection.


```ts
registerMetadata (mapping: JSONObject, options: JSONObject);
```

<br/>

| Arguments | Type | Description |
|-----------|-----------------------|---------------------------------------------|
| `mapping` | <pre>JSONObject</pre> | Mapping definiton of the `metadata` property |
| `options` | <pre>JSONObject</pre> | Additional options |

### options

| Properties | Type | Description |
|-----------|-----------------------|---------------------------------------------|
| `tenantGroup` | <pre>string</pre> | Name of the group for which the mapping should apply. If unspecified, mappings will apply to every group who does not have specific definition. |

## Usage

```ts
import { DeviceManagerPlugin } from 'kuzzle-plugin-device-manager';

const deviceManagerPlugin = new DeviceManagerPlugin();

deviceManagerPlugin.devices.registerMetadata({
serial: {
type: 'keyword',
fields: {
text: { type: 'text' } }
}
}, { tenantGroup: 'water_management' });
```
Loading