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

Stop using long deprecated ParamProcessor stuff #4172

Merged
merged 1 commit into from
Jul 31, 2019
Merged

Conversation

JeroenDeDauw
Copy link
Member

@JeroenDeDauw JeroenDeDauw commented Jul 28, 2019

This PR is made in reference to: JeroenDeDauw/ParamProcessor#40

Not tested and expecting at least one thing to blow up

ResultPrinter still uses Param though that is for another PR

@JeroenDeDauw JeroenDeDauw changed the title Processed param Stop using long deprecated ParamProcessor stuff Jul 28, 2019
@JeroenDeDauw JeroenDeDauw requested a review from mwjames July 28, 2019 11:31
@JeroenDeDauw
Copy link
Member Author

I put a new version of the "workaround" in place now. I suspect the bounds can just be removed for the limit parameter instead though can't find where they are set in the place.

@JeroenDeDauw
Copy link
Member Author

@mwjames some more deprecations incoming ;) https://github.com/JeroenDeDauw/ParamProcessor#release-notes

@JeroenDeDauw
Copy link
Member Author

@mwjames I'm currently writing a new result format so if you have time to review this
image

@JeroenDeDauw
Copy link
Member Author

Yeah this is real ugh. I'm kinda forced to use the deprecated stuff in my new code now :(

@mwjames
Copy link
Contributor

mwjames commented Jul 31, 2019 via email

@JeroenDeDauw
Copy link
Member Author

Just tried it. Seems no change with master for limits exceeding their limit.

@JeroenDeDauw JeroenDeDauw merged commit fc94526 into master Jul 31, 2019
@JeroenDeDauw JeroenDeDauw deleted the ProcessedParam branch July 31, 2019 21:25
@kghbln kghbln added this to the SMW 3.1.0 milestone Jul 31, 2019
if ( isset( $params['limit'] ) && isset( $parameters['limit'] ) ) {
$parameters['limit']->setValue( (int)$params['limit'] );
$parameters['limit'] = new ProcessedParam(
Copy link
Contributor

Choose a reason for hiding this comment

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

I felt particular uneasy about this alteration knowing the limit setting has caused a regression in the past therefore I devised an integration test #4187 that would fail if the limit where causing some unexpected changes due to use of ParamDefinition::setDefault.

Copy link
Member Author

Choose a reason for hiding this comment

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

As expected from the Hero Of The Tests ;)

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.

3 participants