Skip to content

Commit

Permalink
Merge pull request #335 from telefonicaid/task/add_autoprovision_flag…
Browse files Browse the repository at this point in the history
…_to_model

add autoprovision to model for iotagent-manager
  • Loading branch information
fgalan authored Apr 26, 2024
2 parents a1c302c + 40299fe commit 6c1865a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- Upgrade express dep from 4.16.4 to 4.19.2 due to a vulnerability
- Add: autoprovision flag to groups model for iotagent-manager
1 change: 1 addition & 0 deletions lib/model/Configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const Configuration = new Schema({
attributes: Array,
internalAttributes: Array,
timestamp: Boolean,
autoprovision: Boolean,
explicitAttrs: ExplicitAttrsType,
entityNameExp: String,
payloadType: String,
Expand Down
2 changes: 2 additions & 0 deletions lib/services/configurationData.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const provisioningAPITranslation = {
internal_attributes: 'internalAttributes',
static_attributes: 'staticAttributes',
timestamp: 'timestamp',
autoprovision: 'autoprovision',
explicitAttrs: 'explicitAttrs',
entityNameExp: 'entityNameExp',
payloadType: 'payloadType'
Expand Down Expand Up @@ -118,6 +119,7 @@ function save(theLogger, protocol, description, iotagent, resource, configuratio
'internal_attributes',
'static_attributes',
'timestamp',
'autoprovision',
'explicitAttrs',
'entityNameExp',
'payloadType'
Expand Down
2 changes: 2 additions & 0 deletions lib/services/configurations.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const retrievingAPITranslation = {
internalAttributes: 'internal_attributes',
staticAttributes: 'static_attributes',
timestamp: 'timestamp',
autoprovision: 'autoprovision',
description: 'description',
explicitAttrs: 'explicitAttrs',
entityNameExp: 'entityNameExp',
Expand Down Expand Up @@ -77,6 +78,7 @@ function translateToApi(logger, configurations) {
'cbHost',
'timezone',
'timestamp',
'autoprovision',
'explicitAttrs',
'entityNameExp',
'payloadType',
Expand Down

0 comments on commit 6c1865a

Please sign in to comment.