-
Notifications
You must be signed in to change notification settings - Fork 81
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
API generation regression in properties #224
Comments
This was referenced Oct 20, 2023
Eric-Arellano
added a commit
that referenced
this issue
Oct 24, 2023
5 tasks
Merged
Possibly related problem in /api/qiskit/tools#monitoring (see "line_discipline"). |
Eric-Arellano
modified the milestones:
24-02-13 Qiskit 1.0,
12-MARCH-2024 qiskit 1.0 release part 2
Jan 30, 2024
javabster
modified the milestones:
24-05-21 qiskit 1.0 release part 2,
runtime primitives release
Feb 16, 2024
@frankharkins I think the issue with |
Good spot! In that case I think we can ignore the |
github-merge-queue bot
pushed a commit
that referenced
this issue
Feb 28, 2024
Closes #224 This PR fixes an issue with the API generation script that causes regressions in attributes. For each attribute, we show on the documentation website, its type (if exists) and its default value (if exists). An example of an attribute could be `instance: str | None = None` which has the type `str | None` and the default value `None`. This is its representation on the website: ![Captura desde 2024-02-27 19-12-42](https://github.com/Qiskit/documentation/assets/47946624/e2cce336-9d0a-4da7-bd80-3f7d7cf1f6c4) To find the attribute and the default value, the script searches for the index of the colon (type separator) and the index of the equal sign (default value separator). The problem is that those two values are optional, and we could have, for example, a default value involving a string containing a colon symbol that would be detected as the type separator when it's not. To fix this, we could only search for the type separator before the default value. We don't have any problem with the equal sign because it cannot be a type of attribute. The PR has regenerated all versions of qiskit, runtime, and provider.
frankharkins
pushed a commit
to frankharkins/documentation
that referenced
this issue
Jul 22, 2024
Now that we fixed Qiskit#67, we can regenerate the API docs. The issues were due to changes with modern Sphinx 7.2. There was one regression I noticed, but it's not enough of a show-stopper to block this PR: Qiskit#224.
frankharkins
pushed a commit
to frankharkins/documentation
that referenced
this issue
Jul 22, 2024
Closes Qiskit#224 This PR fixes an issue with the API generation script that causes regressions in attributes. For each attribute, we show on the documentation website, its type (if exists) and its default value (if exists). An example of an attribute could be `instance: str | None = None` which has the type `str | None` and the default value `None`. This is its representation on the website: ![Captura desde 2024-02-27 19-12-42](https://github.com/Qiskit/documentation/assets/47946624/e2cce336-9d0a-4da7-bd80-3f7d7cf1f6c4) To find the attribute and the default value, the script searches for the index of the colon (type separator) and the index of the equal sign (default value separator). The problem is that those two values are optional, and we could have, for example, a default value involving a string containing a colon symbol that would be detected as the type separator when it's not. To fix this, we could only search for the type separator before the default value. We don't have any problem with the equal sign because it cannot be a type of attribute. The PR has regenerated all versions of qiskit, runtime, and provider.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From #222 (comment):
This is a regression.
Now:
Before:
qiskit.org:
The text was updated successfully, but these errors were encountered: