← Back to Pull requests

Add 2020 ux docs #10133

Closed
nlhkabu closed this pull request without merging on Dec 23, 2021 17:25 UTC
View on GitHub
nlhkabu nlhkabu commented on Jul 05, 2021 20:10 UTC
Author

Preview
https://pip--10133.org.readthedocs.build/en/10133/ux-research-design/

TODO

  • Cleanup markdown

  • Ensure all links are working and point to the right place

  • Make sure images and working, including alt-text
  • Diff: 3253 lines (+3171 / -82) across 18 files Reviewer: pradyunsg Review duration: 246074m
    All Vouch review confidence checks passed
    Residual risk 0.10 = Change Risk (0.72) × (1 − Review Confidence (0.86)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.72 · 3253 lines diff across 18 files
    0.72
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.77 · 5 substantive comment(s)
    0.77
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    85%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.400
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    18 items
    pradyunsg pradyunsg commented on code on Jul 05, 2021 20:37 UTC
    Code Review
    docs/html/ux-research-design/index.md:1
    @@ -0,0 +1,7 @@
    +# UX Research & Design

    Please make sure to also update docs/html/index.md. It currently references ux_research_design which should be updated to ux_research_design/index.

    Further, you might want to a "toctree" similar to that page, listing all the sub-documents, if you want them to show up in the sidebar.

    pradyunsg pradyunsg commented on Jul 05, 2021 20:39 UTC
    Reviewer

    YAY! I'm very happy to see this! ^>^

    nlhkabu nlhkabu commented on code on Jul 05, 2021 21:15 UTC
    Code Review
    docs/html/ux-research-design/index.md:1
    @@ -0,0 +1,7 @@
    +# UX Research & Design

    ok, thanks @pradyunsg, will do.
    I wasn't clear if it should be ux_research_design/index or ux-research-design/index?
    The folder is ux-research-design should I change it to ux_research_design ?

    pradyunsg pradyunsg commented on code on Jul 06, 2021 05:48 UTC
    Code Review
    docs/html/ux-research-design/index.md:1
    @@ -0,0 +1,7 @@
    +# UX Research & Design

    Ah, I didn't notice.

    ux_research_design/index or ux-research-design/index

    It just needs to match the folder name. We can use this opportunity to clean up the folder name -- we should setup a redirect from the underscore based name to the dashed name -- I can do that in a follow up.

    The folder is ux-research-design should I change it to ux_research_design ?

    Nah. The main benefit would be that the URL is preserved, but I don't think we care that much, given that adding a redirect is cheap.

    pradyunsg pradyunsg commented on code on Jul 06, 2021 05:52 UTC
    Code Review
    docs/html/ux-research-design/index.md:1
    @@ -0,0 +1,7 @@
    +# UX Research & Design

    (editted the last comment extensively, in case someone's following via email)

    nlhkabu nlhkabu commented on Jul 21, 2021 21:48 UTC
    Author

    @pradyunsg are you able to point me in the right direction:
    I have several pages that are not exposed in the menu, but sit in the '2020-research-outputs' folder.
    I want to link to them from the html tables in research-results.md - see https://pip--10133.org.readthedocs.build/en/10133/ux-research-design/research-results/#research-results
    I am having trouble working out what the URLs should be, or how to reference them correctly. Do you know how I can do this? Thanks!

    pradyunsg pradyunsg commented on Jul 23, 2021 08:09 UTC
    Contributor

    I am having trouble working out what the URLs should be, or how to reference them correctly.

    The way I would reference them is to use Markdown links + make this a Markdown table; but I trust your judgement on whether that's better. I think [About our users](2020-research-outputs/about-our-users) should generate the correct link.

    The other option would be to change the URL we're using in the a[href] tags:

    -<a href="2020-research-outputs/override-conflicting-dependencies">
    +<a href="../2020-research-outputs/override-conflicting-dependencies">
    

    I haven't tested either of these though -- I am speaking based off of my understanding of how Sphinx's linking logic / output generation works.

    pradyunsg pradyunsg commented on Jul 23, 2021 08:13 UTC
    Contributor

    If you're wondering what the CI failures are, those are due to trailing whitespace in a bunch of these files: https://github.com/pypa/pip/runs/3128618975#step:4:59

    nlhkabu nlhkabu commented on Jul 23, 2021 20:04 UTC
    Author

    Thanks @pradyunsg - I have cleaned up the hyperlinks as suggested.
    re: whitespace - I am still to work through a number of the files in /2020-research-outputs - some were written in Google Docs and have been exported to .md and will need a lot of cleanup!

    pradyunsg pradyunsg commented on Jul 23, 2021 20:10 UTC
    Contributor

    I have several pages that are not exposed in the menu, but sit in the '2020-research-outputs' folder.

    The sidebar is populated by the ``{toctree}` code blocks. Basically, to have the files show up in the sidebar, you'd need to include them in one of those blocks.

    What I would suggest doing is adding the following wherever you want in the research-results.md

    {toctree}
    :hidden:

    2020-research-outputs/about-our-users
    2020-research-outputs/ci-cd
    2020-research-outputs/improving-pips-documentation
    2020-research-outputs/mental-models
    2020-research-outputs/override-conflicting-dependencies
    2020-research-outputs/personas
    2020-research-outputs/pip-force-reinstall
    2020-research-outputs/pip-logo
    2020-research-outputs/pip-search
    2020-research-outputs/pip-upgrade-conflict
    2020-research-outputs/prioritizing-features
    2020-research-outputs/users-and-security

    These are relative paths, you can optionally include .md in them as well.

    I think you can probably remove the :hidden:` and use this as a substitute for the table, if you think just a list with the page titles is enough. :)

    pradyunsg pradyunsg commented on Jul 23, 2021 20:14 UTC
    Contributor

    If you wanna know more details about the whole {toctree} thing, you can find them under "Table of Contents" here: https://www.jetbrains.com/pycharm/guide/tutorials/sphinx_sites/more_authoring/

    (Jetbrains didn't include anchors in headings 🤷🏽‍♂️)

    nlhkabu nlhkabu commented on Jul 28, 2021 21:36 UTC
    Author

    Thanks @pradyunsg - Links are now working...
    I don't actually want the results pages to display in the menu - and prefer the table structure to a TOC.

    Question: do we have any preference of where we want to host images? Right now I have some on GitHub and others on imgur.com

    pradyunsg pradyunsg commented on Jul 28, 2021 22:14 UTC
    Contributor

    I don't actually want the results pages to display in the menu

    Ah, whoops, I misunderstood. :)

    do we have any preference of where we want to host images?

    Nope!

    brainwane brainwane commented on Oct 28, 2021 11:45 UTC
    Contributor

    I'd love to get this merged.

    @ei8fdb do you have links for any of the user experience trainings that we did in late 2020 and early 2021? I would very much like to include those here. I'm sorry I'm late in asking for them.

    nlhkabu nlhkabu commented on Dec 23, 2021 17:25 UTC
    Author

    Closing this and making a new PR at https://github.com/pypa/pip/pull/10745, as I accidentally made a branch instead of a fork :)

    nlhkabu nlhkabu commented on Dec 23, 2021 17:25 UTC
    Author

    @pradyunsg would you be able to remove this branch for me? Thx

    pradyunsg pradyunsg commented on Dec 23, 2021 17:44 UTC
    Contributor

    Done! :)

    Reviewers
    Assignees
    nlhkabu nlhkabu
    Labels
    risk: low confidence: 85.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 71.5% (HIGH) · Higher = larger blast radius
    71.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 85.8% · Lower = rushed or shallow review
    85.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 10.2% · Safe to merge
    10.2%
    Repository