Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
levichevdmitry committed Oct 22, 2021
1 parent 9219205 commit 2e75032
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 17 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# <img src="https://uploads-ssl.webflow.com/5ea5d3315186cf5ec60c3ee4/5edf1c94ce4c859f2b188094_logo.svg" alt="Pip.Services Logo" width="200"> <br/> Persistence components for Golang Changelog


## <a name="1.1.9"></a> 1.1.9 (2021-10-22)
### Features
- Updated dependencies for updating object fields by names in tags.

## <a name="1.1.8"></a> 1.1.8 (2021-10-21)
### Bug Fixes
- Updated dependencies for fix integer values converting.
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -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
}
2 changes: 1 addition & 1 deletion data/dummies.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"id":"ce871d1f3402481bbf83c9154c6987bc","key":"Key 2","content":"Content 2"}]
[{"id":"c802a87397524107acfa36cb6c696594","key":"Key 2","content":"Content 2"}]
2 changes: 1 addition & 1 deletion data/dummies_map.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"Content":"Content 2","Id":"c9b03fe3f7e44a729ca6ad6a124e1ded","Key":"Key 2"}]
[{"Content":"Content 2","Id":"64743f23c75643f2878ce5e542a31a75","Key":"Key 2"}]
2 changes: 1 addition & 1 deletion data/dummies_ref.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"id":"8394c624ff9d413cb5c9f7b08d08b4e4","key":"Key 2","content":"Content 2"}]
[{"id":"fb74b2dabc714a1ea81beb63ea193389","key":"Key 2","content":"Content 2"}]
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
8 changes: 4 additions & 4 deletions test/persistence/Item.go
Original file line number Diff line number Diff line change
@@ -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"`
}
16 changes: 8 additions & 8 deletions test/persistence/ItemPersistenceFixture.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand All @@ -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)

}

0 comments on commit 2e75032

Please sign in to comment.