Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev v4 #225

Merged
merged 10 commits into from
Feb 10, 2025
Merged

Dev v4 #225

merged 10 commits into from
Feb 10, 2025

Conversation

schmidtw
Copy link
Member

@schmidtw schmidtw commented Feb 6, 2025

Ok, I finally got this to a place I think I can live with it ... the best way to view the code is to pull the dev_v4 branch and run pkgsite to see the go docs to see what is going on. The code ended up being very similar to v3 though not compatible or worth trying to make backwards compatible in my opinion. I cut pretty deep. But I might not have cut deep enough.

schmidtw and others added 10 commits January 30, 2025 13:54
BREAKING CHANGE!!!

This change removes the alternate forms of a wrp message that were
largely unused.  This makes the usage more consistent and in line with
the wrp.Observer/wrp.Processor/wrp.Modifier code.
BREAKING CHANGE:Simplify to just wrp.Message
BREAKING CHANGE!!!

This change focuses on removing the sub-packages that probably should
not have been included here, and moving moving the needed functionality
into the main wrp package.

Themes:
- Validators became Processor implementors, making composition easier.
- A number of Modifiers were added to replace other types of modifiers.
  An example of this is the ReplaceAnySelfLocator().
- Taking advantage of generics for less code when possible.
- Testing for the different types of messages so mistakes are caught
  more automatically using expectations and reflection against the
  Message struct.  This should help in detecting mistakes if fields are
  added.
BREAKING CHANGE:Remove sub-packages, refactor
Change the code to use msgp.  Add benchmarks.
…p that way & cut out everything that doesn't seem completely needed.
Copy link

codecov bot commented Feb 6, 2025

Codecov Report

Attention: Patch coverage is 90.85903% with 83 lines in your changes missing coverage. Please review.

Project coverage is 90.67%. Comparing base (0623ea3) to head (db57063).
Report is 12 commits behind head on main.

Files with missing lines Patch % Lines
messages.go 90.74% 25 Missing and 10 partials ⚠️
messages_gen.go 93.87% 18 Missing and 6 partials ⚠️
format.go 59.25% 18 Missing and 4 partials ⚠️
messagetype.go 33.33% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #225       +/-   ##
===========================================
+ Coverage   54.86%   90.67%   +35.80%     
===========================================
  Files          34       11       -23     
  Lines        5193     1190     -4003     
===========================================
- Hits         2849     1079     -1770     
+ Misses       2138       91     -2047     
+ Partials      206       20      -186     
Flag Coverage Δ
unittests 90.67% <90.85%> (+35.80%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@schmidtw schmidtw marked this pull request as ready for review February 10, 2025 17:51
@schmidtw schmidtw merged commit bd71608 into main Feb 10, 2025
17 checks passed
@schmidtw schmidtw deleted the dev_v4 branch February 10, 2025 17:52
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.

3 participants