Skip to content

Commit 5fde75c

Browse files
authored
Merge pull request #11 from libremfg/fix/property-type
Change Equipment class property type
2 parents bb6de71 + 787b998 commit 5fde75c

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ $ ./rhize-importer.exe \
101101
This project is licensed under the MIT License - see the LICENSE file for details.
102102

103103
## Change log
104+
- v1.6.1 J.W.
105+
- Change Equipment Class import to setup Properties as Default Type instead of Instance Type
104106
- v1.6.0 J.W.
105-
- Change to allow user/pass authentication if both flags are set.
107+
- Change to allow user/pass authentication if both flags are set
106108
- v1.5.0 J.W.
107109
- Change to use sub-commands for specifying target instead of `target` flag
108110
- Change to authenticate with a client rather than client and user

commands/equipmentClass.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func equipmentClass(ctx context.Context, client *graphql.Client, equipmentClassD
3939

4040
bound := domain.PropertyBindingTypeBound
4141
static := domain.PropertyBindingTypeStatic
42-
classType := domain.Isa95PropertyTypeInstanceType
42+
propertyType := domain.Isa95PropertyTypeDefaultType
4343

4444
equipmentClassName := equipmentClassData.Label
4545

@@ -86,7 +86,7 @@ func equipmentClass(ctx context.Context, client *graphql.Client, equipmentClassD
8686
ID: types.StringPtr(propertyId),
8787
Label: types.StringPtr(propertyName),
8888
BindingType: bindingType,
89-
PropertyType: &classType,
89+
PropertyType: &propertyType,
9090
}
9191
if uom != "" {
9292
property.ValueUnitOfMeasure = &domain.UnitOfMeasureRef{

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/joho/godotenv"
1010
)
1111

12-
const versionString = "rhize-data-collection-import v1.6.0"
12+
const versionString = "rhize-data-collection-import v1.6.1"
1313

1414
func main() {
1515
log.Println(versionString)

0 commit comments

Comments
 (0)