Skip to content

Conversation

iuliazidaru
Copy link
Contributor

@iuliazidaru iuliazidaru commented Dec 14, 2021

Summary

Fix #4132

Details and comments

max_credits was deprecated

@CLAassistant
Copy link

CLAassistant commented Dec 14, 2021

CLA assistant check
All committers have signed the CLA.

@iuliazidaru iuliazidaru changed the title Issue4132 Need to remove max_credits Dec 14, 2021
Copy link
Member

@jakelishman jakelishman left a comment

Choose a reason for hiding this comment

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

Thanks for looking at this - this definitely had fallen through the cracks, so it's great you're taking care of it, thank you!

You've done a good job with issuing the deprecations from what I can see, I just left a couple of comments about the message we should emit, and how we can slim down all the tests so it's clearer what we're actually testing.

@iuliazidaru
Copy link
Contributor Author

@jakelishman Thank you for the review. I fixed the code based on your comments.

Copy link
Member

@jakelishman jakelishman left a comment

Choose a reason for hiding this comment

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

Thanks for the quick turn-around! I spotted one place in qiskit.assemble where we could handle the warning a little better for users, but in general this looks good to me.

After this, I need to check with the team that this parameter is completely deprecated (I'm fairly sure it is) before merging, which might take a little bit of time because everyone's on holiday.

@iuliazidaru
Copy link
Contributor Author

@jakelishman Any news for this PR?

Copy link
Member

@jakelishman jakelishman left a comment

Choose a reason for hiding this comment

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

Sorry for the delay, I forgot to check back in after we all got back from christmas! I've just pushed a couple of tweaks to simplify the release note and catch a missing place where max_credits was still in use, but this looks good now, thanks!

@jakelishman jakelishman added automerge Changelog: Deprecation Include in "Deprecated" section of changelog labels Jan 19, 2022
@jakelishman jakelishman added this to the 0.20 milestone Jan 19, 2022
@coveralls
Copy link

Pull Request Test Coverage Report for Build 1718874755

  • 14 of 15 (93.33%) changed or added relevant lines in 7 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.01%) to 83.151%

Changes Missing Coverage Covered Lines Changed/Added Lines %
qiskit/test/mock/fake_qobj.py 0 1 0.0%
Files with Coverage Reduction New Missed Lines %
qiskit/utils/run_circuits.py 1 30.79%
Totals Coverage Status
Change from base Build 1714460551: 0.01%
Covered Lines: 51999
Relevant Lines: 62536

💛 - Coveralls

@mergify mergify bot merged commit 185df89 into Qiskit:main Jan 19, 2022
ElePT pushed a commit to ElePT/qiskit-algorithms that referenced this pull request Jul 27, 2023
* fix issue Qiskit/qiskit#4132 - Need to remove max_credits

* fix issue Qiskit/qiskit#4132 - Need to remove max_credits

* deprecate max_credits instead of removing

* deprecate max_credits - add release notes

* fix review comments

* add warning for assamble

* Reword release note

* Remove straggler max_credits

Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Deprecation Include in "Deprecated" section of changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need to remove max_credits
4 participants