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

app: json_requests feature #3110

Merged
merged 2 commits into from
May 30, 2024
Merged

Conversation

pinebit
Copy link
Contributor

@pinebit pinebit commented May 29, 2024

Add WithEnforceJSON(true) parameter when json_requests feature is enabled in featureset.
This is needed for Nimbus BN to properly handle SubmitProposal requests.

category: feature
ticket: #3108
feature_flag: json_requests

eth2http.WithAllowDelayedStart(true),
}

if featureset.Enabled(featureset.JSONRequests) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you can pass the result of Enabled to WithEnforceJSON, avoiding the if statement entirely

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed. Fixed.

Copy link

sonarcloud bot commented May 29, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

codecov bot commented May 29, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 56.82%. Comparing base (249e476) to head (e3184f5).

Files Patch % Lines
app/featureset/status_string.go 42.85% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3110      +/-   ##
==========================================
- Coverage   56.85%   56.82%   -0.04%     
==========================================
  Files         208      208              
  Lines       29148    29153       +5     
==========================================
- Hits        16571    16565       -6     
- Misses      10740    10751      +11     
  Partials     1837     1837              

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

Comment on lines +13 to +14
_ = x[enable-9223372036854775807]
_ = x[disable-0]
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the purpose of those two? Disable I can understand - if we want to disable the feature later on, but enable?

Copy link
Collaborator

Choose a reason for hiding this comment

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

That file is auto generated by stringer

@pinebit pinebit added the merge when ready Indicates bulldozer bot may merge when all checks pass label May 30, 2024
@obol-bulldozer obol-bulldozer bot merged commit 278bcf7 into main May 30, 2024
11 of 12 checks passed
@obol-bulldozer obol-bulldozer bot deleted the pinebit/json-requests-feature branch May 30, 2024 10:58
KaloyanTanev pushed a commit that referenced this pull request Jun 5, 2024
Add `WithEnforceJSON(true)` parameter when `json_requests` feature is enabled in `featureset`.
This is needed for Nimbus BN to properly handle SubmitProposal requests.

category: feature
ticket: #3108
feature_flag: json_requests
obol-bulldozer bot pushed a commit that referenced this pull request Jun 5, 2024
- #3084
- #3092  
- #3098 
- #3099 
- #3100 
- #3106 
- #3110 
- #3111 
- #3114 
- #3118 

category: misc
ticket: #3103 

closes: #3103
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants