feat(index): No longer add a bewit to public artifacts URLs#8283
feat(index): No longer add a bewit to public artifacts URLs#8283lotas merged 4 commits intotaskcluster:mainfrom
Conversation
0930882 to
d2356c2
Compare
d2356c2 to
e2adf3b
Compare
|
I probably don't understand why adding bewit is a problem at all? |
| }; | ||
|
|
||
| export default { taskUtils, namespaceUtils, splitNamespace, namespaceFormat }; | ||
| const satisfiesArtifactScope = async (anonymousScopeCache, artifactName) => { |
There was a problem hiding this comment.
you can also export it directly and avoid renaming export, _satisfiesArtifactScope is a bit strange name for an export :)
There was a problem hiding this comment.
ah, is it because it is only used in tests? maybe not worth exporting this at all, and just testing isPublicArtifact
There was a problem hiding this comment.
I wanted to test _satisfiesArtifactScope more thoroughly than isPublicArtifact since isPublicArtifact depends on a mocked external service. That's the reason I introduced the split and the tests. Let me know if you prefer me to combine everything. I don't have a strong opinion on this.
Discussed over Slack. We agreed that #6724 shows why always having |
Github Issue: Partially addresses #8035. This PR takes care of the unecessary bewit addition but it doesn't change the number of redirects. The latter will be handled in #8284.
Patch also tested manually ⬇️
Before
After