Skip to content

Commit 3d2d738

Browse files
authored
Merge pull request #1888 from LerianStudio/chore/v3.5.3-merge-back
chore: merge back release 3.5.3
2 parents 571c7aa + 8b0e60d commit 3d2d738

File tree

15 files changed

+165
-30
lines changed

15 files changed

+165
-30
lines changed

CHANGELOG.md

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
- remove no-op semantic-release/exec plugin entry
1010
- fix linting issues
1111
- add write-behind cache mock expectations to existing transaction tests
12+
- update release version
13+
- update version
14+
- update deps
1215
- remove filterStaleBalances to prevent silent balance update drops
1316
- add redis backup queue for commit/cancel transactions and correct consumer fromTo logic for canceled status
1417
- prevent balance version increment when no actual balance change occurs in Lua script
@@ -23,6 +26,11 @@
2326
- remove publisher confirms
2427
- skip write-behind update in sync mode to prevent orphaned Redis entries
2528
- add TTL safety nets and correct write-behind cache lifecycle
29+
- go.sum
30+
- update sqlmock expectations to include balance version columns
31+
- loop through all state transitions in CheckHealth to handle cold-start connections
32+
- adjust semantic release flow
33+
- releaserc
2634
- add SetNX revert lock with write-behind-first lookup to prevent duplicate reversals
2735
- remove idempotency reverse lookup in favor of write-behind cache
2836
- promote transaction status to APPROVED before write-behind and queue
@@ -39,6 +47,20 @@
3947
- enhance balance key handling in Redis consumer to ensure default key is used when not specified
4048
- update group size in Lua script and add balance key handling in Redis consumer
4149
- update lib-commons dependency to v2.3.1
50+
- race condition, test and remove panic from rabbit initialization
51+
- update RabbitMQ producer to handle publish confirmations and improve idempotency key management
52+
- update version to 3.3.14
53+
- define explicit column lists for account and operation queries to ensure backward compatibility
54+
- update hotfix version to 3.3.13
55+
- implement account alias sanitization in transaction processing and add utility function for alias cleanup
56+
- simplify GitHub Actions workflow by removing hotfix branch triggers and updating tag handling
57+
- update hotfix version from 3.3.11 to 3.3.12 in .releaserc.yml and comment out transaction validation in Lua script
58+
- remove trailing newline at end of Dockerfile for consistent formatting
59+
- change release type for feat from minor to patch in .releaserc.yml
60+
- update application version from 3.3.10 to 3.3.11 in .env.example
61+
- add missing newline at end of Dockerfile for proper formatting
62+
- update hotfix version from 3.3.10 to 3.3.11 in .releaserc.yml
63+
- remove trailing newline in Dockerfile for cleaner formatting
4264
- update CronTimeToRun and MessageTimeOfLife constants in Redis consumer for improved processing efficiency
4365
- remove handleReturns method and update message publishing parameters in RabbitMQ producer
4466
- implement distributed lock mechanism in Redis consumer to prevent duplicate transaction processing across pods
@@ -48,14 +70,15 @@
4870
- change ContentType to application/octet-stream for msgpack binary payload in RabbitMQ producer
4971
- add transaction validation in Lua script and enhance error handling in Redis consumer
5072
- enhance error handling for transaction backup cache operations
73+
- update lib-commons dependency to v2.3.1 and update go.sum
74+
- add complexity comment
5175
- initialize operations slice for new transactions in PostgreSQL repository
5276
- simplify logging for duplicate operation and transaction inserts
5377
- refactor operation scanning in transaction retrieval to improve handling of nullable fields
5478
- handle nil operation ID in transaction retrieval to prevent nil pointer dereference
5579
- handle unique constraint violations for operation and transaction inserts
5680
- add panic recovery and nil validation for transaction messages in Redis consumer
5781
- remove lock deletion on transaction errors after balance retrieval
58-
- remove pending transaction lock after errors only
5982
- update frontend dependencies (next to 15.5.7 and react to 19.1.2)
6083
- correct comment wording in transaction handler for clarity
6184
- update hotfix branch configuration in release settings
@@ -66,9 +89,15 @@
6689
- update CHANGELOG
6790
- configure pipeline to trigger build on hotfix branches
6891
- bump hotfix branch versions (3.3.8 through 3.3.14)
69-
70-
71-
## [v3.5.1] - 2026-01-19
92+
- update hotfix branch version to 3.3.10
93+
- add panic recovery and nil validation for transaction messages in Redis consumer
94+
- update hotfix branch version to 3.3.9
95+
- remove pending transaction lock after errors only
96+
- update next version to 15.5.7 and react to 19.1.2
97+
- update releaserc.yml to version 3.3.8
98+
- correct comment wording in transaction handler for clarity
99+
- update hotfix branch configuration in release settings
100+
- update version
72101

73102
### 🐛 Bug Fixes
74103
- remove CPF and CNPJ validation functions and related tests

components/crm/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1.4
22

3-
FROM --platform=$BUILDPLATFORM golang:1.25.7-alpine AS builder
3+
FROM --platform=$BUILDPLATFORM golang:1.25.8-alpine AS builder
44

55
WORKDIR /crm-app
66

components/crm/api/crm_docs.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,12 @@ const docTemplatecrm = `{
942942
"minLength": 2,
943943
"example": "US"
944944
},
945+
"description": {
946+
"description": "A descriptive label for the address (e.g., \"Home\", \"Office\", \"Billing\")\nexample: Home\nmaxLength: 100",
947+
"type": "string",
948+
"maxLength": 100,
949+
"example": "Home"
950+
},
945951
"line1": {
946952
"description": "Primary address line (street address or PO Box)\nexample: 123 Financial Avenue\nmaxLength: 256",
947953
"type": "string",

components/crm/api/crm_swagger.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,12 @@
932932
"minLength": 2,
933933
"example": "US"
934934
},
935+
"description": {
936+
"description": "A descriptive label for the address (e.g., \"Home\", \"Office\", \"Billing\")\nexample: Home\nmaxLength: 100",
937+
"type": "string",
938+
"maxLength": 100,
939+
"example": "Home"
940+
},
935941
"line1": {
936942
"description": "Primary address line (street address or PO Box)\nexample: 123 Financial Avenue\nmaxLength: 256",
937943
"type": "string",

components/crm/api/crm_swagger.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ definitions:
2323
maxLength: 2
2424
minLength: 2
2525
type: string
26+
description:
27+
description: |-
28+
A descriptive label for the address (e.g., "Home", "Office", "Billing")
29+
example: Home
30+
maxLength: 100
31+
example: Home
32+
maxLength: 100
33+
type: string
2634
line1:
2735
description: |-
2836
Primary address line (street address or PO Box)

components/crm/api/openapi.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,7 @@ components:
768768
country: US
769769
zipCode: "10001"
770770
city: New York
771+
description: Home
771772
state: NY
772773
line2: Suite 1500
773774
line1: 123 Financial Avenue
@@ -790,6 +791,14 @@ components:
790791
maxLength: 2
791792
minLength: 2
792793
type: string
794+
description:
795+
description: |-
796+
A descriptive label for the address (e.g., "Home", "Office", "Billing")
797+
example: Home
798+
maxLength: 100
799+
example: Home
800+
maxLength: 100
801+
type: string
793802
line1:
794803
description: |-
795804
Primary address line (street address or PO Box)
@@ -830,20 +839,23 @@ components:
830839
country: US
831840
zipCode: "10001"
832841
city: New York
842+
description: Home
833843
state: NY
834844
line2: Suite 1500
835845
line1: 123 Financial Avenue
836846
additional2:
837847
country: US
838848
zipCode: "10001"
839849
city: New York
850+
description: Home
840851
state: NY
841852
line2: Suite 1500
842853
line1: 123 Financial Avenue
843854
primary:
844855
country: US
845856
zipCode: "10001"
846857
city: New York
858+
description: Home
847859
state: NY
848860
line2: Suite 1500
849861
line1: 123 Financial Avenue
@@ -1139,20 +1151,23 @@ components:
11391151
country: US
11401152
zipCode: "10001"
11411153
city: New York
1154+
description: Home
11421155
state: NY
11431156
line2: Suite 1500
11441157
line1: 123 Financial Avenue
11451158
additional2:
11461159
country: US
11471160
zipCode: "10001"
11481161
city: New York
1162+
description: Home
11491163
state: NY
11501164
line2: Suite 1500
11511165
line1: 123 Financial Avenue
11521166
primary:
11531167
country: US
11541168
zipCode: "10001"
11551169
city: New York
1170+
description: Home
11561171
state: NY
11571172
line2: Suite 1500
11581173
line1: 123 Financial Avenue
@@ -1641,20 +1656,23 @@ components:
16411656
country: US
16421657
zipCode: "10001"
16431658
city: New York
1659+
description: Home
16441660
state: NY
16451661
line2: Suite 1500
16461662
line1: 123 Financial Avenue
16471663
additional2:
16481664
country: US
16491665
zipCode: "10001"
16501666
city: New York
1667+
description: Home
16511668
state: NY
16521669
line2: Suite 1500
16531670
line1: 123 Financial Avenue
16541671
primary:
16551672
country: US
16561673
zipCode: "10001"
16571674
city: New York
1675+
description: Home
16581676
state: NY
16591677
line2: Suite 1500
16601678
line1: 123 Financial Avenue
@@ -1696,20 +1714,23 @@ components:
16961714
country: US
16971715
zipCode: "10001"
16981716
city: New York
1717+
description: Home
16991718
state: NY
17001719
line2: Suite 1500
17011720
line1: 123 Financial Avenue
17021721
additional2:
17031722
country: US
17041723
zipCode: "10001"
17051724
city: New York
1725+
description: Home
17061726
state: NY
17071727
line2: Suite 1500
17081728
line1: 123 Financial Avenue
17091729
primary:
17101730
country: US
17111731
zipCode: "10001"
17121732
city: New York
1733+
description: Home
17131734
state: NY
17141735
line2: Suite 1500
17151736
line1: 123 Financial Avenue

components/crm/internal/adapters/mongodb/holder/holder.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -265,13 +265,13 @@ func mapAddressFromEntity(a *mmodel.Address) *AddressMongoDBModel {
265265
}
266266

267267
return &AddressMongoDBModel{
268-
Line1: &a.Line1,
269-
Line2: a.Line2,
270-
ZipCode: &a.ZipCode,
271-
City: &a.City,
272-
State: &a.State,
273-
Country: &a.Country,
274-
// Description: &a.Description, // TODO: Check if this is needed
268+
Line1: &a.Line1,
269+
Line2: a.Line2,
270+
ZipCode: &a.ZipCode,
271+
City: &a.City,
272+
State: &a.State,
273+
Country: &a.Country,
274+
Description: a.Description,
275275
}
276276
}
277277

@@ -480,12 +480,12 @@ func mapAddressToEntity(a *AddressMongoDBModel) *mmodel.Address {
480480
}
481481

482482
return &mmodel.Address{
483-
Line1: line1,
484-
Line2: a.Line2,
485-
ZipCode: zipCode,
486-
City: city,
487-
State: state,
488-
Country: country,
489-
// Description: a.Description,
483+
Line1: line1,
484+
Line2: a.Line2,
485+
ZipCode: zipCode,
486+
City: city,
487+
State: state,
488+
Country: country,
489+
Description: a.Description,
490490
}
491491
}

components/crm/internal/adapters/mongodb/holder/holder_test.go

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,19 @@ func TestMapAddressFromEntity(t *testing.T) {
404404
},
405405
wantNil: false,
406406
},
407+
{
408+
name: "address with description",
409+
address: &mmodel.Address{
410+
Line1: "789 Office Blvd",
411+
Line2: testutils.Ptr("Suite 200"),
412+
ZipCode: "54321",
413+
City: "Business City",
414+
State: "BC",
415+
Country: "US",
416+
Description: testutils.Ptr("Corporate Office"),
417+
},
418+
wantNil: false,
419+
},
407420
}
408421

409422
for _, tt := range tests {
@@ -421,6 +434,9 @@ func TestMapAddressFromEntity(t *testing.T) {
421434
assert.Equal(t, tt.address.City, *result.City)
422435
assert.Equal(t, tt.address.State, *result.State)
423436
assert.Equal(t, tt.address.Country, *result.Country)
437+
if tt.address.Description != nil {
438+
assert.Equal(t, *tt.address.Description, *result.Description)
439+
}
424440
})
425441
}
426442
}
@@ -460,6 +476,19 @@ func TestMapAddressToEntity(t *testing.T) {
460476
},
461477
wantNil: false,
462478
},
479+
{
480+
name: "model with description",
481+
model: &AddressMongoDBModel{
482+
Line1: testutils.Ptr("321 Home Lane"),
483+
Line2: testutils.Ptr("Unit 5"),
484+
ZipCode: testutils.Ptr("11111"),
485+
City: testutils.Ptr("Hometown"),
486+
State: testutils.Ptr("HT"),
487+
Country: testutils.Ptr("US"),
488+
Description: testutils.Ptr("Primary Residence"),
489+
},
490+
wantNil: false,
491+
},
463492
}
464493

465494
for _, tt := range tests {
@@ -477,6 +506,9 @@ func TestMapAddressToEntity(t *testing.T) {
477506
} else {
478507
assert.Empty(t, result.Line1)
479508
}
509+
if tt.model.Description != nil {
510+
assert.Equal(t, *tt.model.Description, *result.Description)
511+
}
480512
})
481513
}
482514
}

components/ledger/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=$BUILDPLATFORM golang:1.25.7-alpine AS builder
1+
FROM --platform=$BUILDPLATFORM golang:1.25.8-alpine AS builder
22

33
WORKDIR /ledger-app
44

components/onboarding/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=$BUILDPLATFORM golang:1.25.7-alpine AS builder
1+
FROM --platform=$BUILDPLATFORM golang:1.25.8-alpine AS builder
22

33
WORKDIR /onboarding-app
44

0 commit comments

Comments
 (0)