@LeaVerou You can preview the survey here: https://survey.alchemer.com/s3/7243449/MDN-Web-Components-Short-Survey
We make a whoami request on each page, which is served from rumba. When developing locally, we usually set REACT_APP_KUMA_HOST=localhost:8000
. However, if rumba is then not running, this produces multiple failed requests in the DevTools' network tab.
If the whoami request fails during development, return an empty response.
REACT_APP_KUMA_HOST=localhost:8000
in .env
.yari dev
./api/v1/whoami
request succeeds anyways.chore(deps): bump open from 8.4.2 to 9.0.0 (#8452)
chore(deps-dev): bump @swc/core from 1.3.41 to 1.3.42 (#8471)
chore(deps): bump html-react-parser from 3.0.12 to 3.0.13 (#8472)
chore(deps): bump @mdn/browser-compat-data from 5.2.43 to 5.2.44 (#8473)
Merge branch 'main' into gcp
The /api
path should be reserved for our rumba API, but the MDN Plus plans are currently served from api/v1/stripe/plans
, which is actually backed by a Lambda that determines the available plans based on the country.
Use /plus/plans.json
instead of /api/v1/stripe/plans
, which are both essentially the same CloudFront behavior, just with a different path.
Ran yarn dev
and visited http://localhost:3000/en-US/plus.
refactor(client): rename {Stripe => Plus}Plans
chore(client): use /plus/plans.json
Instead of api/v1/stripe/plans
, because those are
not actually served from our Rumba API.
refactor(MP-267): extract filenames to variable/constant
mdn@mozilla.com
does not actually exist.
Checklist for reviewer:
<username>:<branch>
of the fork as parameter. The parameter will also show up
in the logs of the manual-trigger-required-for-fork
CI task together with more detailed instructions.For modifications to schemas in restricted namespaces (see CODEOWNERS
):
/remind me about this in April
See also: https://github.com/mozilla/bigquery-etl/pull/3677
Checklist for reviewer:
<username>:<branch>
of the fork as parameter. The parameter will also show up
in the logs of the manual-trigger-required-for-fork
CI task together with more detailed instructions.For modifications to schemas in restricted namespaces (see CODEOWNERS
):
Can we add a markdownlint rule like the one fully-qualified developer.mozilla.org
URLs?
https://github.com/mdn/content/blob/0053e22667809069b5a62c3de80122cdb65d611c/.markdownlint-cli2.jsonc#L184-L190
Caused the query to be missing its first character:
ss.properties.background
instead of
css.properties.background
Noticed as part of https://github.com/mdn/yari/pull/8470.
Fetches BCD data from the separate bcd.developer.mozilla/allizom.org
host.
We have moved the BCD data off to a separate subdomain as part of our (ongoing) migration from AWS to GCP, but we're still fetching BCD data for BCD tables from /bcd/*
.
REACT_APP_BCD_BASE_URL
, defaulting to stage (https://bcd.developer.allizom.org
).bcd.developer.mozilla.org
for the prod build.Ran yarn dev
, then opened http://localhost:3000/en-US/docs/Web/CSS/background#browser_compatibility locally, verified that the BCD data is fetched from bcd.developer.allizom.org
and properly displayed, then blocked the URL in the DevTools and verified that the BCD data is no longer displayed.
chore(eslint): ignore copied libs
fix(libs): add engines.node to package.json
Avoids these linting errors:
MP-267 - Use project id, not name
Co-authored-by: Brett Kochendorfer brett.kochendorfer@gmail.com
Checklist for reviewer:
<username>:<branch>
of the fork as parameter. The parameter will also show up
in the logs of the manual-trigger-required-for-fork
CI task together with more detailed instructions.For modifications to schemas in restricted namespaces (see CODEOWNERS
):
Checklist for reviewer:
<username>:<branch>
of the fork as parameter. The parameter will also show up
in the logs of the manual-trigger-required-for-fork
CI task together with more detailed instructions.For modifications to schemas in restricted namespaces (see CODEOWNERS
):