Skip to content

Remove unused Request::DEFAULT_PARAMS_BUILDER constant#2556

Merged
dblock merged 2 commits into
ruby-grape:masterfrom
eriklovmo:remove-unused-constant
Apr 11, 2025
Merged

Remove unused Request::DEFAULT_PARAMS_BUILDER constant#2556
dblock merged 2 commits into
ruby-grape:masterfrom
eriklovmo:remove-unused-constant

Conversation

@eriklovmo

Copy link
Copy Markdown
Contributor

The constant was introduced in 45abe0d but is never referenced and hasn't been since its inception.

The constant was introduced in 45abe0d
but is never referenced and hasn't been since its inception.
@grape-bot

grape-bot commented Apr 10, 2025

Copy link
Copy Markdown
1 Warning
⚠️ There're library changes, but not tests. That's OK as long as you're refactoring existing code.

Generated by 🚫 Danger

@ericproulx

ericproulx commented Apr 10, 2025

Copy link
Copy Markdown
Contributor

The constant was introduced in 45abe0d but is never referenced and hasn't been since its inception.

So true, I was supposed to use it but I reused the Grape.config.param_builder. Thanks for pointing out

@eriklovmo

Copy link
Copy Markdown
Contributor Author

Do we want a changelog entry for this?

@ericproulx

Copy link
Copy Markdown
Contributor

Do we want a changelog entry for this?

Please, even though its seems insignificant.

@dblock

dblock commented Apr 10, 2025

Copy link
Copy Markdown
Member

This was shipped in a previous version? I think we want a CHANGELOG and UPGRADING that mentions the removal of the constant since it is public and could have been used.

@eriklovmo

eriklovmo commented Apr 11, 2025

Copy link
Copy Markdown
Contributor Author

Do we want a changelog entry for this?

Please, even though its seems insignificant.

Updated the changelog in 8b09187. @ericproulx

This was shipped in a previous version? I think we want a CHANGELOG and UPGRADING that mentions the removal of the constant since it is public and could have been used.

The constant we're removing here was introduced after version 2.3.0, so it hasn’t been officially released yet. For that reason, I’m thinking we shouldn't mention it in the UPGRADING doc. @dblock

@dblock

dblock commented Apr 11, 2025

Copy link
Copy Markdown
Member

The constant we're removing here was introduced after version 2.3.0, so it hasn’t been officially released yet. For that reason, I’m thinking we shouldn't mention it in the UPGRADING doc. @dblock

Yep, but also NBD.

@dblock dblock merged commit a80d2d4 into ruby-grape:master Apr 11, 2025
ericproulx pushed a commit to ericproulx/grape that referenced this pull request Jun 22, 2025
…2556)

* Remove unused Request::DEFAULT_PARAMS_BUILDER

The constant was introduced in 45abe0d
but is never referenced and hasn't been since its inception.

* Update CHANGELOG.md
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.

4 participants