Skip to content

merge: v1.15.5#957

Merged
hwbrzzl merged 4 commits intomasterfrom
bowen/merge-v1.15.5
Mar 16, 2025
Merged

merge: v1.15.5#957
hwbrzzl merged 4 commits intomasterfrom
bowen/merge-v1.15.5

Conversation

@hwbrzzl
Copy link
Contributor

@hwbrzzl hwbrzzl commented Mar 16, 2025

📑 Description

@codecov
Copy link

codecov bot commented Mar 16, 2025

Codecov Report

Attention: Patch coverage is 77.38095% with 38 lines in your changes missing coverage. Please review.

Project coverage is 69.14%. Comparing base (ab139f2) to head (ea364ae).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
http/service_provider.go 0.00% 13 Missing ⚠️
http/limit/limit.go 0.00% 11 Missing ⚠️
http/middleware/throttle.go 0.00% 7 Missing ⚠️
http/limit/store.go 94.87% 2 Missing and 2 partials ⚠️
cache/lock.go 57.14% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #957      +/-   ##
==========================================
- Coverage   69.15%   69.14%   -0.01%     
==========================================
  Files         157      158       +1     
  Lines       10526    10602      +76     
==========================================
+ Hits         7279     7331      +52     
- Misses       2913     2940      +27     
+ Partials      334      331       -3     

☔ 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.

@hwbrzzl hwbrzzl marked this pull request as ready for review March 16, 2025 05:13
Copilot AI review requested due to automatic review settings March 16, 2025 05:13
@hwbrzzl hwbrzzl requested a review from a team as a code owner March 16, 2025 05:13
@hwbrzzl hwbrzzl closed this Mar 16, 2025
@hwbrzzl hwbrzzl reopened this Mar 16, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR merges version v1.15.5 and includes several enhancements and refactorings across the codebase. Key changes include:

  • A redesigned rate limiter store in http/limit/store.go that now uses JSON (un)marshalling and external locking.
  • An update to container and application Refresh APIs to accept variadic bindings.
  • Consistency improvements in mocks, facades, error messages, and updated package imports.

Reviewed Changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
contracts/http/store.go Retains interface definitions with no functional modifications.
http/limit/bucket.go Introduced an internal Bucket type with token handling and lock free design, unchanged functionality.
mocks/http/Store.go Auto-generated mocks updated to match new interfaces.
http/limit/bucket_test.go Added tests verify correct bucket behavior and token refill logic.
mocks/cache/Lock.go Updated Lock mock functions to include BlockWithTicker functionality.
foundation/container_test.go Refresh API tests updated in line with the variadic Refresh changes.
http/middleware/throttle.go Enhanced throttle middleware with error logging and immediate return on rate limiter errors.
cache/lock.go Added BlockWithTicker wrapper in production code with updated ticker parameter.
foundation/container.go Modified Refresh method to accept variadic bindings while preserving config bindings.
support/constant.go Incremented the version string to v1.15.5.
mocks/foundation/Application.go Refresh mock updated to variadic bindings.
contracts/foundation/application.go Documentation updated for the Refresh method to reflect the variadic signature.
errors/modules.go Added ModuleHttp and removed duplicate module entries.
contracts/cache/cache.go Updated Driver interface to incorporate BlockWithTicker in Lock.
http/limit/store.go Major update: Store now uses JSON (un)marshalling to persist Bucket state, external locks, and improved error handling.
http/service_provider.go Updated service provider to retrieve LogFacade, RateLimiterFacade, and JsonFacade with additional nil checks and panic messages.
http/limit/limit.go Updated factory functions and method signatures to rely on the new Store implementation and contracts consistency.
database/orm/orm.go Updated Refresh function signature of Orm to support variadic parameters.
errors/list.go Revised error messages with improved capitalization and added new HTTP error messages.

@hwbrzzl hwbrzzl merged commit be95d34 into master Mar 16, 2025
12 of 13 checks passed
@hwbrzzl hwbrzzl deleted the bowen/merge-v1.15.5 branch March 16, 2025 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants