Skip to content

Adding sqlite tutorial#31

Open
taberger wants to merge 28 commits intodevfrom
ASB-33010_sqlite_tutorial
Open

Adding sqlite tutorial#31
taberger wants to merge 28 commits intodevfrom
ASB-33010_sqlite_tutorial

Conversation

@taberger
Copy link
Copy Markdown
Collaborator

No description provided.

@taberger taberger self-assigned this Nov 12, 2025
Comment thread docs/sqlite_readme.md Outdated
Comment thread docs/sqlite_readme.md Outdated
Comment thread docs/sqlite_readme.md
Copy link
Copy Markdown
Collaborator

@jinmiyoon jinmiyoon left a comment

Choose a reason for hiding this comment

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

  • Please add figure names and refer them accordingly.
  • It would be nice to see an example figure with verdicts other than pass and so users understand the problem where to look to fix.
  • Why don't we italicized or boldfaced when referring to field component in filename fields?

Comment thread docs/sqlite_readme.md Outdated
Comment thread docs/sqlite_readme.md Outdated
Comment thread docs/sqlite_readme.md Outdated
@jinmiyoon
Copy link
Copy Markdown
Collaborator

  • Add figure names and refer them accordingly

    • It would be nice to see an example figure with verdicts other than pass and so users understand the problem where to look to fix.

    • Why don't we italicized or boldfaced when referring to field component in filename fields?

I accidentally submitted my reviews. I am still reviewing so please wait, @taberger

Copy link
Copy Markdown
Collaborator

@jinmiyoon jinmiyoon left a comment

Choose a reason for hiding this comment

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

@taberger It is nice to see actual examples and figures.

I left inline comments so you can take a look.
The main suggestions are

  • add figure names and refer them accordingly: it would be nicer if you add annotations.
  • add an example figure with verdicts other than pass and so users understand the problem where to look to fix.
  • refer this tutorial to the main filename checker readme or move the content in that file.
    • This tutorial isn't referenced anywhere so the ReadtheDocs cannot render this document so I couldn't check the URLs. It needs to be referenced in the main filename check readme somewhere. The best place seems to be https://mast-contributor-tools.readthedocs.io/en/latest/filename_check_readme.html#reading-the-results. Or you could modify the content as subsection in that section so it can be visible on the table of content on the right.
    • Once you reference it or move the content in filename_check_readme.md, then I can build the readthedocs and check the URLs. But for the future, I also want to show you how to build it on your own so next time you can try it yourself for your testing. To do so, you will need to create an account on Readthedocs. Anyway, we can discuss over slack or on a meeting.

Comment thread docs/sqlite_readme.md Outdated
Comment thread docs/sqlite_readme.md Outdated
Comment thread docs/sqlite_readme.md Outdated
Comment thread docs/sqlite_readme.md Outdated
@taberger
Copy link
Copy Markdown
Collaborator Author

One thing that I just realized - I may need to update the tutorial result images and text based on the latest updates to dev since I started this PR. I'll check things out ASAP (before ~Friday) and then I'll ask for your final review, @jinmiyoon and @astrojimig

@taberger
Copy link
Copy Markdown
Collaborator Author

taberger commented Mar 26, 2026

@astrojimig and @jinmiyoon I've made the updates to the text as needed. One question I had - I noticed when looking back through some of the documentation in the various README files (filename_check_readme.md and sqlite_readme.md) that we may need to change some of our verbiage to match the way that the code actually works now. In particular, regarding NEEDS REVIEW/FAIL results. If that all looks good to you, then I think we're good to go, but I just wanted folks to put another eye on that while we have this MR open, because it may be worth making changes here while we're at it. In particular, notice how the hlsp_mct-tutorial_readme.txt gives a value_score of "fail" and severity "unrecognized" for the product_type field in the field evaluation table. This is different from what I had in my first push, where it was a value_score of "NEEDS REVIEW" with a severity "unrecognized".

@taberger taberger force-pushed the ASB-33010_sqlite_tutorial branch from c87c064 to a5178a4 Compare March 26, 2026 20:02
@adrianlucy
Copy link
Copy Markdown
Collaborator

adrianlucy commented Mar 26, 2026

re. commit 24e11f9, isn't it potential_problems? See:

CREATE VIEW IF NOT EXISTS potential_problems as

(It was my PR #18 a while back that [I think] changed it to potential_problems, to avoid the implication that unrecognized values are necessarily problems.)

@adrianlucy
Copy link
Copy Markdown
Collaborator

A couple other things I noticed:

  • didn't severity get renamed to field_verdict, and status to final_verdict, in Julie's PR 23?
  • shouldn't an unrecognized product type be needs review, not fail?
  • readme is a recognized product type anyway, so why is it being flagged?

I'm wondering if either there are bugs, or you may be running an outdated version of the code. (Apologies that I don't have the time to test myself today.)

@taberger
Copy link
Copy Markdown
Collaborator Author

@adrianlucy Thanks for looking into this. Yeah, something must have gone wrong. What's weird is I merged dev into this branch with commit hash [62b52c8](https://github.com/spacetelescope/mast_contributor_tools/pull/31/commits/62b52c89d7a8edda26b317775f58d10a32f3e85f) just a few days ago so all of those changes should be active here...

@jinmiyoon
Copy link
Copy Markdown
Collaborator

jinmiyoon commented Mar 31, 2026

@taberger what is the latest status of this PR? Based on your conversation with @adrianlucy and my trial to test-build the documentation, it seems that your sqlite tutorial doesn't seem to exist. Or I cannot find the sqlite readme on the newly build docs. Anyhow, I think we should tag up for building the docs so you can see what you need to change any docs if needed. Send me a calendar invite when you get a chance.

@taberger
Copy link
Copy Markdown
Collaborator Author

taberger commented May 6, 2026

@taberger what is the latest status of this PR? Based on your conversation with @adrianlucy and my trial to test-build the documentation, it seems that your sqlite tutorial doesn't seem to exist. Or I cannot find the sqlite readme on the newly build docs. Anyhow, I think we should tag up for building the docs so you can see what you need to change any docs if needed. Send me a calendar invite when you get a chance.

@jinmiyoon I've tested out the documentation commands for the sqlite tutorial (currently in docs/ top level directory). It isn't showing up in any trees, but if you search for it, you can find it. If you have a preferred place for it to be, let me know and I can move it to see if it shows up in the right spot.

@taberger taberger requested a review from jinmiyoon May 6, 2026 15:37
@astrojimig
Copy link
Copy Markdown
Collaborator

@taberger The docs/index.rst file sets the table of contents in the tree. You should add a line for your new tutorial there!

@taberger
Copy link
Copy Markdown
Collaborator Author

taberger commented May 7, 2026

@astrojimig I've implemented the change and now you can find the tutorial in the tree. Thank you!! Once @jinmiyoon is happy with the updates, I think we are good to merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants