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

docs(maps): jupyter notebook now auto-updates docs site #27003

Merged
merged 4 commits into from Apr 27, 2024

Conversation

rusackas
Copy link
Member

@rusackas rusackas commented Feb 3, 2024

SUMMARY

So we have this Jupyter notebook to generate maps, and typescript for the control panel.

Now, it also outputs JSON to the docs site, and the docs site in turn renders the JSON with React (in three columns!) to keep an ever-current list of countries available on the docs.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:
image

After:
image

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@github-actions github-actions bot added the doc Namespace | Anything related to documentation label Feb 3, 2024
Copy link

codecov bot commented Feb 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2602527) 67.20% compared to head (d0153ad) 67.20%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #27003   +/-   ##
=======================================
  Coverage   67.20%   67.20%           
=======================================
  Files        1899     1899           
  Lines       74347    74347           
  Branches     8263     8263           
=======================================
  Hits        49964    49964           
  Misses      22334    22334           
  Partials     2049     2049           
Flag Coverage Δ
javascript 56.93% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@rusackas
Copy link
Member Author

rusackas commented Feb 6, 2024

Thanks for the review... just need a maps codeowner stamp from @villebro

@rusackas rusackas added the hold:testing! On hold for testing label Feb 20, 2024
@rusackas rusackas marked this pull request as draft March 22, 2024 05:23
@rusackas rusackas marked this pull request as ready for review April 27, 2024 06:14
@rusackas
Copy link
Member Author

@villebro I just need a notebook codeowner stamp, and we'll be all good :)

@rusackas
Copy link
Member Author

@mistercrunch we can make you a codeowner too for the notebook, if you promise to guard against map PRs being made without notebook updates

Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

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

Nice!

@rusackas rusackas requested a review from dpgaspar as a code owner April 27, 2024 18:20
@github-actions github-actions bot added plugins github_actions Pull requests that update GitHub Actions code labels Apr 27, 2024
@rusackas
Copy link
Member Author

rusackas commented Apr 27, 2024

I keep getting this error, so I'm setting FetchDepth = 0 here. Hope that doesn't cause issues (i.e. perf problems) elsewhere.

image

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.48%. Comparing base (9db431b) to head (2af571d).
Report is 22 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #27003      +/-   ##
==========================================
+ Coverage   60.47%   60.48%   +0.01%     
==========================================
  Files        1933     1931       -2     
  Lines       76295    76236      -59     
  Branches     8533     8568      +35     
==========================================
- Hits        46137    46114      -23     
+ Misses      28065    28017      -48     
- Partials     2093     2105      +12     
Flag Coverage Δ
javascript 57.71% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@rusackas rusackas merged commit 76d897e into master Apr 27, 2024
28 checks passed
@rusackas rusackas deleted the auto-docs-for-country-map branch April 27, 2024 20:33
qleroy pushed a commit to qleroy/superset that referenced this pull request Apr 28, 2024
@@ -20,6 +20,7 @@ jobs:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history
Copy link
Member

Choose a reason for hiding this comment

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

hey, curious why this was/is neeeded?

Copy link
Member Author

Choose a reason for hiding this comment

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

It was indeed to get around this:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Namespace | Anything related to documentation github_actions Pull requests that update GitHub Actions code plugins preset-io size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants