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

Fix globals, part 4: crypto #33291

Merged
merged 17 commits into from
May 16, 2024
Merged

Fix globals, part 4: crypto #33291

merged 17 commits into from
May 16, 2024

Conversation

skyclouds2001
Copy link
Contributor

@skyclouds2001 skyclouds2001 commented Apr 27, 2024

Description

/cc @wbamberg

part of the #33019

Motivation

Additional details

Related issues and pull requests

@github-actions github-actions bot added Content:WebAPI Web API docs Content:JS JavaScript docs size/m [PR only] 51-500 LoC changed labels Apr 27, 2024
Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions bot added the merge conflicts 🚧 [PR only] label Apr 27, 2024
@github-actions github-actions bot removed the merge conflicts 🚧 [PR only] label Apr 27, 2024
Copy link
Contributor

github-actions bot commented Apr 27, 2024

Preview URLs (12 pages)
Flaws (4)

Note! 11 documents with no flaws that don't need to be listed. 🎉

URL: /en-US/docs/Web/API/RTCPeerConnection/generateCertificate_static
Title: RTCPeerConnection: generateCertificate() static method
Flaw count: 4

  • macros:
    • /en-US/docs/Web/API/AlgorithmIdentifier does not exist
    • /en-US/docs/Web/API/Algorithm does not exist
    • /en-US/docs/Web/API/RTCCertificateExpiration does not exist
    • /en-US/docs/Web/API/Algorithm does not exist

(comment last updated: 2024-05-16 09:45:29)

@skyclouds2001 skyclouds2001 marked this pull request as ready for review April 28, 2024 10:23
@skyclouds2001 skyclouds2001 requested review from a team as code owners April 28, 2024 10:23
@skyclouds2001 skyclouds2001 requested review from wbamberg and pepelsbey and removed request for a team April 28, 2024 10:23
@skyclouds2001
Copy link
Contributor Author

remove /en-US/docs/Web/API/crossOriginIsolated /en-US/docs/Web/API/Window/crossOriginIsolated the redirect can pass the test, but the issue existed in the preview product

@skyclouds2001
Copy link
Contributor Author

skyclouds2001 commented Apr 30, 2024

It seems that when building the preview result, the _redirects.txt file in the repository is used, not the updated one (same behavior can be observed in #33339 )

@wbamberg
Copy link
Collaborator

wbamberg commented Apr 30, 2024

It seems that when building the preview result, the _redirects.txt file in the repository is used, not the updated one (same behavior can be observed in #33339 )

Yeah, I know. It's OK, I have your branch checked out locally so I can test the redirects :).

(edited to add: oh, do you mean, that's the reason we are getting these CI errors?)

@skyclouds2001
Copy link
Contributor Author

(edited to add: oh, do you mean, that's the reason we are getting these CI errors?)

Yes, I think this is the reason

@skyclouds2001
Copy link
Contributor Author

So what should do next?

@OnkarRuikar
Copy link
Contributor

OnkarRuikar commented May 7, 2024

It seems that when building the preview result, the _redirects.txt file in the repository is used, not the updated one

Not true. We are not using pull_request_target trigger here.

In future run yarn content fix-redirects command to fix automatically fixable errors in _redirects.txt file.

@skyclouds2001
Copy link
Contributor Author

It seems that when building the preview result, the _redirects.txt file in the repository is used, not the updated one

Not true. We are not using pull_request_target trigger here.

In future run yarn content fix-redirects command to fix automatically fixable errors in _redirects.txt file.

Got it!

@wbamberg
Copy link
Collaborator

wbamberg commented May 7, 2024

Thanks @OnkarRuikar ! I had forgotten about sorting. Yes, AFAIK we have to edit redirects manually for some of this work because when these global properties were first added, redirect were sometimes made from API/Window/thing to API/thing_property, and we're now reinstating API/Window/thing. Maybe there's a better way but if so I don't know it.

@skyclouds2001 skyclouds2001 changed the title Fix globals, part 4: crypto Fix globals, part 4: crypto May 14, 2024
files/en-us/web/api/crypto/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/crypto/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/crypto/randomuuid/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/cryptokey/algorithm/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/subtlecrypto/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/window/crypto/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/workerglobalscope/crypto/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/workerglobalscope/crypto/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/cryptokey/algorithm/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/cryptokey/algorithm/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/cryptokey/extractable/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/cryptokey/extractable/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/cryptokey/type/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/subtlecrypto/exportkey/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/subtlecrypto/generatekey/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/subtlecrypto/generatekey/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/subtlecrypto/generatekey/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/subtlecrypto/generatekey/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/subtlecrypto/verify/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/subtlecrypto/verify/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/subtlecrypto/verify/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/subtlecrypto/verify/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/subtlecrypto/unwrapkey/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/subtlecrypto/wrapkey/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/subtlecrypto/wrapkey/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/subtlecrypto/wrapkey/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/subtlecrypto/wrapkey/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/subtlecrypto/wrapkey/index.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@wbamberg wbamberg 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, thank you @skyclouds2001 🎉

@wbamberg wbamberg merged commit e897fbf into mdn:main May 16, 2024
9 checks passed
@skyclouds2001 skyclouds2001 deleted the crypto branch May 16, 2024 15:45
yin1999 added a commit to mdn/translated-content that referenced this pull request May 17, 2024
yin1999 added a commit to mdn/translated-content that referenced this pull request May 17, 2024
* zh-cn: sync translated content

* zh-cn: resolve global properties `crypto`

ref: mdn/content#33291

---------

Co-authored-by: Allo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:JS JavaScript docs Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants