From 2e750323d7a9da63df3bcf18497f633989c2619b Mon Sep 17 00:00:00 2001 From: Levichev Dmitry Date: Fri, 22 Oct 2021 21:41:21 +0300 Subject: [PATCH] Update dependencies --- CHANGELOG.md | 5 +++++ component.json | 2 +- data/dummies.json | 2 +- data/dummies_map.json | 2 +- data/dummies_ref.json | 2 +- go.mod | 2 +- test/persistence/Item.go | 8 ++++---- test/persistence/ItemPersistenceFixture.go | 16 ++++++++-------- 8 files changed, 22 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f746c2..b0c2b09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Pip.Services Logo
Persistence components for Golang Changelog + +## 1.1.9 (2021-10-22) +### Features +- Updated dependencies for updating object fields by names in tags. + ## 1.1.8 (2021-10-21) ### Bug Fixes - Updated dependencies for fix integer values converting. diff --git a/component.json b/component.json index 03fe082..e63ec6b 100644 --- a/component.json +++ b/component.json @@ -1,6 +1,6 @@ { "name": "pip-services3-data-go", "registry": "github.com/pip-services3-go", - "version": "1.1.8", + "version": "1.1.9", "build": 0 } diff --git a/data/dummies.json b/data/dummies.json index 0b9ebd4..d727128 100644 --- a/data/dummies.json +++ b/data/dummies.json @@ -1 +1 @@ -[{"id":"ce871d1f3402481bbf83c9154c6987bc","key":"Key 2","content":"Content 2"}] \ No newline at end of file +[{"id":"c802a87397524107acfa36cb6c696594","key":"Key 2","content":"Content 2"}] \ No newline at end of file diff --git a/data/dummies_map.json b/data/dummies_map.json index 33dc534..5eb6af6 100644 --- a/data/dummies_map.json +++ b/data/dummies_map.json @@ -1 +1 @@ -[{"Content":"Content 2","Id":"c9b03fe3f7e44a729ca6ad6a124e1ded","Key":"Key 2"}] \ No newline at end of file +[{"Content":"Content 2","Id":"64743f23c75643f2878ce5e542a31a75","Key":"Key 2"}] \ No newline at end of file diff --git a/data/dummies_ref.json b/data/dummies_ref.json index db28120..d93d85c 100644 --- a/data/dummies_ref.json +++ b/data/dummies_ref.json @@ -1 +1 @@ -[{"id":"8394c624ff9d413cb5c9f7b08d08b4e4","key":"Key 2","content":"Content 2"}] \ No newline at end of file +[{"id":"fb74b2dabc714a1ea81beb63ea193389","key":"Key 2","content":"Content 2"}] \ No newline at end of file diff --git a/go.mod b/go.mod index 1c6b82c..6fa985f 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.16 require ( github.com/jinzhu/copier v0.2.8 - github.com/pip-services3-go/pip-services3-commons-go v1.1.2 + github.com/pip-services3-go/pip-services3-commons-go v1.1.3-25 github.com/pip-services3-go/pip-services3-components-go v1.2.0 github.com/stretchr/testify v1.7.0 ) diff --git a/test/persistence/Item.go b/test/persistence/Item.go index 4d5b446..ec42c30 100644 --- a/test/persistence/Item.go +++ b/test/persistence/Item.go @@ -1,8 +1,8 @@ package test_persistence type Item struct { - Id string `json:"id"` - FailingToUpdateThisField1 int64 `json:"failing_to_update_this_field_1,string"` - Failing_to_update_this_field_2 int64 `json:"failing_to_update_this_field_2,string"` - Updated_by string `json:"updated_by"` + Id string `json:"id"` + FailingToUpdateThisField1 int64 `json:"failing_to_update_this_field_1,string"` + FailingToUpdateThisField2 int64 `json:"failing_to_update_this_field_2,string"` + UpdatedBy string `json:"updated_by"` } diff --git a/test/persistence/ItemPersistenceFixture.go b/test/persistence/ItemPersistenceFixture.go index 6b786c9..9881009 100644 --- a/test/persistence/ItemPersistenceFixture.go +++ b/test/persistence/ItemPersistenceFixture.go @@ -15,10 +15,10 @@ type ItemPersistenceFixture struct { func NewItemPersistenceFixture(persistence IItemPersistence) *ItemPersistenceFixture { c := ItemPersistenceFixture{} c.item1 = Item{ - Id: "", - FailingToUpdateThisField1: 0, - Failing_to_update_this_field_2: 0, - Updated_by: "y76bh72c1", + Id: "", + FailingToUpdateThisField1: 0, + FailingToUpdateThisField2: 0, + UpdatedBy: "y76bh72c1", } c.persistence = persistence return &c @@ -35,8 +35,8 @@ func (c *ItemPersistenceFixture) TestCrudOperations(t *testing.T) { assert.NotNil(t, item1) assert.NotNil(t, item1.Id) assert.Equal(t, c.item1.FailingToUpdateThisField1, item1.FailingToUpdateThisField1) - assert.Equal(t, c.item1.Failing_to_update_this_field_2, item1.Failing_to_update_this_field_2) - assert.Equal(t, c.item1.Updated_by, item1.Updated_by) + assert.Equal(t, c.item1.FailingToUpdateThisField2, item1.FailingToUpdateThisField2) + assert.Equal(t, c.item1.UpdatedBy, item1.UpdatedBy) intvar1 := (int64)(1234757257822780121) intvar2 := (int64)(1434824722285792000) @@ -53,7 +53,7 @@ func (c *ItemPersistenceFixture) TestCrudOperations(t *testing.T) { assert.NotNil(t, result) assert.Equal(t, item1.Id, result.Id) assert.Equal(t, (int64)(1234757257822780121), result.FailingToUpdateThisField1) - assert.Equal(t, (int64)(1434824722285792000), result.Failing_to_update_this_field_2) - assert.Equal(t, "upd_y76bh72c1", result.Updated_by) + assert.Equal(t, (int64)(1434824722285792000), result.FailingToUpdateThisField2) + assert.Equal(t, "upd_y76bh72c1", result.UpdatedBy) }