Skip to content

Conversation

@pllim
Copy link
Collaborator

@pllim pllim commented Dec 19, 2025

Towards JP-4107

This PR addresses AMI portion of #9793 . Only touch docs so should not need RT.

On main:

With this patch:

Tasks

  • If you have a specific reviewer in mind, tag them.
  • add a build milestone, i.e. Build 12.0 (use the latest build if not sure)
  • Does this PR change user-facing code / API? (if not, label with no-changelog-entry-needed)
    • write news fragment(s) in changes/: echo "changed something" > changes/<PR#>.<changetype>.rst (see changelog readme for instructions)
    • update or add relevant tests
    • update relevant docstrings and / or docs/ page
    • start a regression test and include a link to the running job (click here for instructions)
      • Do truth files need to be updated ("okified")?
        • after the reviewer has approved these changes, run okify_regtests to update the truth files
  • if a JIRA ticket exists, make sure it is resolved properly

Copy link
Collaborator Author

@pllim pllim left a comment

Choose a reason for hiding this comment

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

Whatever layout and presentation style we decide on in this PR would be used as a basis for the rest of the package. Doing the entire package at once would make the PR hard to review and also drag on for too long, causing conflict and wasting developer time, so let's start with AMI (alphabetically selected).

My main priority is fixing doc build warning. Any violation that does not trigger warning (e.g., malformed listing), I will fix if I happen to notice or be asked to only. Beautifying and vetting API doc contents is out of scope here (and would also drag things on). My ticket is only to expose them.

For my sanity, I also alphabetized the intersphinx listing in this PR.

@pllim pllim marked this pull request as ready for review December 19, 2025 02:28
@pllim pllim requested a review from a team December 19, 2025 02:28
@pllim pllim requested a review from a team as a code owner December 19, 2025 02:28
@codecov
Copy link

codecov bot commented Dec 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.88%. Comparing base (1193035) to head (5e57aba).
⚠️ Report is 29 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10095      +/-   ##
==========================================
+ Coverage   85.72%   85.88%   +0.16%     
==========================================
  Files         367      365       -2     
  Lines       38235    38210      -25     
==========================================
+ Hits        32776    32818      +42     
+ Misses       5459     5392      -67     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@emolter emolter left a comment

Choose a reason for hiding this comment

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

Overall I'm on board with exposing all our API, but I feel pretty strongly that we need to define a deprecation policy, i.e write down what we consider "public" in the sense that we won't change it without warning. It's one thing to change API that's not documented in a minor release with no change log, which we've been doing for a long time, and another to change that API when it's documented in the readthedocs.

edit: lol, went to my next notification and it's a PR from you that would do the above. I guess this is just a note then that I'd probably prefer if that one went in first.

I've seen a few typos and things that don't render right within docs that you didn't touch here. Do you want me to flag those, and basically have a careful read through everything that's newly rendered here? If so, it'll take longer - there are a lot of new docstrings exposed here.

@pllim
Copy link
Collaborator Author

pllim commented Dec 19, 2025

Do you want me to flag those

Sure. But as I commented in #10095 (review) , carefully reading through all the docs would take too long and probably not worth the cost. Once they are exposed, if user complain about some typo later, we can fix as needed.

However if you already noticed them and point them out exactly where, I can fix up real quick as part of this PR.

I guess this is just a note then that I'd probably prefer if that one went in first.

@melanieclarke told me to prioritize this ticket first. But that said, the whole ticket is going to take a while. This is just AMI stuff. So chances are the policy (#10096) would actually go in first before this ticket is done as a whole. Not sure if this elevates your concern or not.

@emolter

This comment was marked as resolved.

@emolter

This comment was marked as resolved.

@pllim pllim force-pushed the api-all-the-things-01-ami branch from 4694a1e to ac95708 Compare December 19, 2025 21:34
@pllim
Copy link
Collaborator Author

pllim commented Dec 19, 2025

Re: #10095 (comment)

I removed the offending periods and added Ned as commit co-author. I will mark the comment as resolved to ease future review handling. Thanks!

@pllim pllim force-pushed the api-all-the-things-01-ami branch from ac95708 to 79a8600 Compare December 29, 2025 18:19
@pllim

This comment was marked as outdated.

Copy link
Collaborator

@emolter emolter left a comment

Choose a reason for hiding this comment

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

Thanks Pey-Lian, this is looking good. I noticed a few small things.

@pllim
Copy link
Collaborator Author

pllim commented Dec 30, 2025

Okay, I think I have addressed the comments from yesterday. Please re-review. Thanks!

Copy link
Collaborator

@emolter emolter left a comment

Choose a reason for hiding this comment

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

I think all my questions have been answered

pllim and others added 3 commits December 30, 2025 15:23
analyze and normalize
as suggested by emolter [ci skip]

Co-authored-by: Ned Molter <emolter@users.noreply.github.com>
because otherwise it is truncated.

Co-authored-by: Ned Molter <emolter@users.noreply.github.com>
pllim and others added 7 commits December 30, 2025 15:23
Co-authored-by: Ned Molter <emolter@users.noreply.github.com>
because I made the mistake of looking at it and could not unsee things
now that Other API section has been renamed. [ci skip]

Co-authored-by: Ned Molter <emolter@users.noreply.github.com>
Co-authored-by: Ned Molter <emolter@users.noreply.github.com>
Co-authored-by: Melanie Clarke <mclarke@stsci.edu>
Co-authored-by: Melanie Clarke <mclarke@stsci.edu>
Co-authored-by: Ned Molter <emolter@users.noreply.github.com>
@pllim pllim force-pushed the api-all-the-things-01-ami branch from 2a696d4 to 5e57aba Compare December 30, 2025 20:23
@pllim
Copy link
Collaborator Author

pllim commented Dec 30, 2025

Thanks for the reviews! I think just need @melanieclarke to approve now then this can be merged.

Copy link
Collaborator

@melanieclarke melanieclarke left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@pllim pllim merged commit 60b583a into spacetelescope:main Dec 30, 2025
28 checks passed
@pllim pllim deleted the api-all-the-things-01-ami branch December 30, 2025 21:33
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