Skip to content

Release/1.20.0#70

Merged
agungdwiprasetyo merged 10 commits into
masterfrom
release/1.20.0
Apr 20, 2026
Merged

Release/1.20.0#70
agungdwiprasetyo merged 10 commits into
masterfrom
release/1.20.0

Conversation

@harissudrajat

Copy link
Copy Markdown
Contributor

Changelog

  1. MongoDB v2 Migration:

    • Updated all imports to go.mongodb.org/mongo-driver/v2.
    • Refactored ConnectMongoDB configuration to use the v2 signature (context-less mongo.Connect).
    • Standardized the use of bson.D in repository templates to ensure document order preservation, aligning with v2 best practices.
    • Updated options usage to the new fluent API across repositories and persistent storage.
    • Migrated primitive.ObjectID to bson.ObjectID in domain templates.
  2. Tracer Decoupling:

    • Refactored tracer/jaeger.go to remove direct imports of sql, redis, and mongo drivers.
    • Introduced local error constants for the errorWhitelist to maintain functionality while reducing the package's dependency footprint.
  3. Task Queue Worker Refinement:

    • Updated MongoPersistent implementation to MongoDB v2.
    • Fixed an uncaptured error during document decoding in the DeleteJob method.
    • Optimized index creation using the v2 fluent options API.
  4. Template Logic Optimization:

    • Simplified BSON import conditions in template_domain.go for cleaner generated code.
    • Updated generated mocks and interfaces to reflect the new driver types.
  5. Fix Issue

  6. Dependency Updates:

    • Upgraded go.mongodb.org/mongo-driver/v2 to v2.5.0.
    • Upgraded github.com/xdg-go/scram to v1.2.0.
    • Updated google.golang.org/grpc from v1.76.0 to v1.79.3.
    • Updated go.opentelemetry.io/otel and its ecosystem (sdk, trace, exporters) from v1.38.0 to v1.42.0.
    • Updated github.com/golang-jwt/jwt/v5 from v5.3.0 to v5.3.1.
    • Updated google.golang.org/protobuf from v1.36.10 to v1.36.11.
    • Updated github.com/grpc-ecosystem/grpc-gateway/v2 from v2.27.3 to v2.28.0.
    • Updated various golang.org/x/* packages (crypto, net, sync, sys, text) to their latest versions.
    • Updated github.com/klauspost/compress to v1.18.5.
    • Synchronized go.sum with the updated dependency tree, including the addition of github.com/cespare/xxhash/v2.

@codecov

codecov Bot commented Mar 26, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 80 lines in your changes missing coverage. Please review.
✅ Project coverage is 18.16%. Comparing base (13be417) to head (21d2427).
⚠️ Report is 10 commits behind head on master.

Files with missing lines Patch % Lines
tracer/otel.go 0.00% 47 Missing ⚠️
tracer/option.go 0.00% 27 Missing ⚠️
config/env/environment.go 0.00% 4 Missing ⚠️
config/database/mongo.go 0.00% 1 Missing ⚠️
tracer/utils.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #70      +/-   ##
==========================================
- Coverage   18.29%   18.16%   -0.13%     
==========================================
  Files          53       53              
  Lines        3499     3523      +24     
==========================================
  Hits          640      640              
- Misses       2834     2858      +24     
  Partials       25       25              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@agungdwiprasetyo
agungdwiprasetyo merged commit 21d2427 into master Apr 20, 2026
1 of 3 checks passed
@agungdwiprasetyo
agungdwiprasetyo deleted the release/1.20.0 branch April 20, 2026 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants