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

Replace all :trac: with :issue: in docstrings #37390

Merged
4 commits merged into from
Mar 10, 2024

Conversation

GiacomoPope
Copy link
Contributor

Following the PR #37385, I have replaced all occurrences of :trac: with :issue:.

If changing so much in one PR is wrong and this should be done file by file while working on other functions feel free to close this PR.

@kwankyu
Copy link
Collaborator

kwankyu commented Feb 19, 2024

Perhaps not to do in this PR, but I was thinking of changing "github issue" to just "issue". For example,

By github issue #7797, there is a different implementation ...

is changed to

By issue #7797, there is a different implementation ...

We may redefine :issue: role to do this. What do you think?

@kwankyu
Copy link
Collaborator

kwankyu commented Feb 19, 2024

If changing so much in one PR is wrong ...

No problem (if we could avoid merge conflicts).

Copy link
Collaborator

@kwankyu kwankyu left a comment

Choose a reason for hiding this comment

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

Passes test. LGTM.

@GiacomoPope
Copy link
Contributor Author

re:

We may redefine :issue: role to do this. What do you think?

Yeah, this could be done. Although there's probably a non-trivial amount of people who do not know what an "issue" is and "GitHub issue" might help newcomers better understand the docstrings from within Sage?

@kwankyu
Copy link
Collaborator

kwankyu commented Feb 19, 2024

That applies only to the first day of their developer life. For all other days, "issue #7797" is short and simple.

Perhaps "Issue #7797" may be better that "issue #7797", if we want to emphasize that it is a github issue.

@mkoeppe ?

@kwankyu
Copy link
Collaborator

kwankyu commented Feb 19, 2024

In the trac era, it was "trac #7797". I liked it :-)

@GiacomoPope
Copy link
Contributor Author

I have no strong opinions. Whatever is decided we can do in a new PR?

@kwankyu
Copy link
Collaborator

kwankyu commented Feb 19, 2024

I have no strong opinions. Whatever is decided we can do in a new PR?

I am collecting opinions. If a few collected opinions are supportive for the change, yes we can do it in a new PR.

If not clearly supportive, a poll may be necessary on sage-devel.

Thanks for your opinion.

@mantepse
Copy link
Collaborator

mantepse commented Feb 19, 2024

Please don't do "Github issue". It is a lot of text with extremely little extra value. I would hope that non-developers do not see such notices unless they are using deprecated functionality. In this case it comes with a complete link.

@mkoeppe
Copy link
Contributor

mkoeppe commented Feb 19, 2024

Yes, I also prefer "Issue #7797" (capitalized)

@vbraun
Copy link
Member

vbraun commented Feb 20, 2024

merge conflict

@kwankyu
Copy link
Collaborator

kwankyu commented Feb 21, 2024

@vbraun This PR is very likely to incur merge conflicts.

So could you consider making a beta only for this PR? That is, you release next beta, and then we rebase this PR to the beta, and then you immediately merge this PR and release a new beta.

@GiacomoPope
Copy link
Contributor Author

@vbraun I see you have recently merged a few PR to develop, so I fixed the conflict and merged again. If these tests pass now then following @kwankyu's comment then maybe this can be squeezed in.

@kwankyu
Copy link
Collaborator

kwankyu commented Mar 5, 2024

This will fix the merge conflicts:

diff --cc src/sage/rings/complex_arb.pyx
index 4ee2ec45015,31d1baf0f38..46c01da4eb6
--- a/src/sage/rings/complex_arb.pyx
+++ b/src/sage/rings/complex_arb.pyx
@@@ -4792,18 -4792,14 +4792,14 @@@ cdef class ComplexBall(RingElement)
  
              sage: n = CBF(1,1)
              sage: m = CBF(-2/3, 3/5)
-             sage: n.elliptic_pi_inc(CBF.pi()/2, m) # arb216
-             [0.8934793755173 +/- ...e-14] + [0.95707868710750 +/- ...e-15]*I
-             sage: n.elliptic_pi_inc(CBF.pi()/2, m) # arb218 - this is a regression, see :issue:28623
 -            sage: n.elliptic_pi_inc(CBF.pi()/2, m) # this is a regression, see :trac:28623
++            sage: n.elliptic_pi_inc(CBF.pi()/2, m) # this is a regression, see :issue:28623
              nan + nan*I
              sage: n.elliptic_pi(m)
              [0.8934793755173...] + [0.957078687107...]*I
  
              sage: n = CBF(2, 3/7)
              sage: m = CBF(-1/3, 2/9)
-             sage: n.elliptic_pi_inc(CBF.pi()/2, m) # arb216
-             [0.2969588746419 +/- ...e-14] + [1.3188795332738 +/- ...e-14]*I
-             sage: n.elliptic_pi_inc(CBF.pi()/2, m) # arb218 -  this is a regression, see :issue:28623
 -            sage: n.elliptic_pi_inc(CBF.pi()/2, m) # this is a regression, see :trac:28623
++            sage: n.elliptic_pi_inc(CBF.pi()/2, m) # this is a regression, see :issue:28623
              nan + nan*I
              sage: n.elliptic_pi(m)
              [0.296958874641...] + [1.318879533273...]*I

@kwankyu
Copy link
Collaborator

kwankyu commented Mar 5, 2024

@vbraun Please merge this to 10.3.rc3.

Copy link

github-actions bot commented Mar 5, 2024

Documentation preview for this PR (built with commit ad8fe87; changes) is ready! 🎉

@kwankyu kwankyu added this to the sage-10.3 milestone Mar 5, 2024
vbraun pushed a commit to vbraun/sage that referenced this pull request Mar 6, 2024
Following the PR sagemath#37385, I have
replaced all occurrences of `:trac:` with `:issue:`.

If changing so much in one PR is wrong and this should be done file by
file while working on other functions feel free to close this PR.

URL: sagemath#37390
Reported by: Giacomo Pope
Reviewer(s): Giacomo Pope, Kwankyu Lee
@vbraun vbraun closed this pull request by merging all changes into sagemath:develop in e417e22 Mar 10, 2024
vbraun pushed a commit to vbraun/sage that referenced this pull request Mar 30, 2024
    
<!-- ^^^^^
Please provide a concise, informative and self-explanatory title.
Don't put issue numbers in there, do this in the PR body below.
For example, instead of "Fixes sagemath#1234" use "Introduce new method to
calculate 1+1"
-->
<!-- Describe your changes here in detail -->

As discussed in
sagemath#37390 (comment), we
change how Sphinx role ``:issue:`` is rendered. For example, short
```
By Issue sagemath#7797, there is a different implementation ...
```
instead of current
```
By github issue sagemath#7797, there is a different implementation ...
```
Arguments for the short form are

> Please don't do "Github issue". It is a lot of text with extremely
little extra value.

> In the trac era, it was "trac sagemath#7797".



<!-- Why is this change required? What problem does it solve? -->
<!-- If this PR resolves an open issue, please link to it here. For
example "Fixes sagemath#12345". -->
<!-- If your change requires a documentation PR, please link it
appropriately. -->

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->
<!-- If your change requires a documentation PR, please link it
appropriately -->
<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
<!-- Feel free to remove irrelevant items. -->

- [x] The title is concise, informative, and self-explanatory.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation accordingly.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on
- sagemath#12345: short description why this is a dependency
- sagemath#34567: ...
-->

<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
    
URL: sagemath#37403
Reported by: Kwankyu Lee
Reviewer(s): Travis Scrimshaw
@GiacomoPope GiacomoPope deleted the trac_to_issue branch April 1, 2024 01:41
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.

5 participants