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

Revert base class change introduced in Primitives V1 deprecation (backport #12871) #12873

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jul 31, 2024

Summary

#12575 deprecated the non-versioned aliases for the V1 interfaces of the primitives as well as the V1 implementations. The base class of the deprecated implementations was changed from the non-versioned to the versioned class, and looking back I think this change should be reverted.

This change breaks instance checks on implementations based on the primitives, and prevents the deprecation warning from being raised properly. Given that the implementations are deprecated and will be removed as the same time as the base class aliases, we didn't really gain much from changing to an un-deprecated base class, and I think it is safer to keep the base classes unchanged and preserve the instance checks.

Details and comments


This is an automatic backport of pull request #12871 done by [Mergify](https://mergify.com).

@mergify mergify bot requested review from a team as code owners July 31, 2024 17:22
@qiskit-bot
Copy link
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the following people are relevant to this code:

  • @Qiskit/terra-core
  • @ajavadia
  • @levbishop
  • @t-imamichi

@github-actions github-actions bot added Changelog: None Do not include in changelog mod: primitives Related to the Primitives module labels Jul 31, 2024
@github-actions github-actions bot added this to the 1.2.0 milestone Jul 31, 2024
@mtreinish mtreinish enabled auto-merge July 31, 2024 17:28
@coveralls
Copy link

coveralls commented Jul 31, 2024

Pull Request Test Coverage Report for Build 10186771080

Details

  • 9 of 9 (100.0%) changed or added relevant lines in 4 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.02%) to 89.856%

Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 1 93.48%
Totals Coverage Status
Change from base Build 10185760581: 0.02%
Covered Lines: 66452
Relevant Lines: 73954

💛 - Coveralls

@mtreinish mtreinish disabled auto-merge July 31, 2024 19:54
@mtreinish mtreinish enabled auto-merge July 31, 2024 19:55
@mtreinish
Copy link
Member

@Mergifyio rebase

… to avoid breaking instance checks. (#12871)

(cherry picked from commit 919cfd3)
Copy link
Contributor Author

mergify bot commented Jul 31, 2024

rebase

✅ Branch has been successfully rebased

@mtreinish mtreinish force-pushed the mergify/bp/stable/1.2/pr-12871 branch from 6312c70 to 8d635a8 Compare July 31, 2024 19:55
@mtreinish mtreinish added this pull request to the merge queue Jul 31, 2024
Merged via the queue into stable/1.2 with commit 838751e Jul 31, 2024
17 checks passed
@mergify mergify bot deleted the mergify/bp/stable/1.2/pr-12871 branch July 31, 2024 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog mod: primitives Related to the Primitives module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants