firebase-tools-ui icon indicating copy to clipboard operation
firebase-tools-ui copied to clipboard

fix: replace hardcoded base url protocol to use client-side protocol

Open BobbieGoede opened this issue 2 years ago • 5 comments

Fixes: #666

BobbieGoede avatar Dec 03 '21 11:12 BobbieGoede

Also ran into this problem today. I'm running the emulator in a local MiniKube cluster behind TLS and I get a bunch of HTTPS/WSS errors. Is there anything blocking this PR?

pd93 avatar Apr 19 '22 13:04 pd93

Also ran into this problem today. I'm running the emulator in a local MiniKube cluster behind TLS and I get a bunch of HTTPS/WSS errors. Is there anything blocking this PR?

This PR is in a great shape, except there are extra colons in a few places. Other places should make use of protocol-relative URLs (mostly code style nits). We'd also appreciate more testing for this broad change and you can definitely help speed this up by patching the suggested changes and testing locally to make sure it works on all tabs (emulators) touched.

yuchenshi avatar Apr 27 '22 18:04 yuchenshi

Thanks for taking a look and reviewing the PR @yuchenshi, I have applied and committed your suggestions. I haven't had the chance to test all emulators locally yet as my local development setup doesn't use this anymore. Hopefully I will have the time to test it in the coming week.

BobbieGoede avatar Apr 29 '22 11:04 BobbieGoede

@yuchenshi Gave testing this a go today. I managed to load up the UI over https without any issues, but I'm still having some internal connectivity problems. I've logged a new issue so as not to clog up the PR.

pd93 avatar May 03 '22 16:05 pd93

I'm not 100% sure how, but this PR seems to break Storage unit tests: https://github.com/firebase/firebase-tools-ui/runs/6278540877?check_suite_focus=true#step:5:2864

Also: linter

yuchenshi avatar May 03 '22 18:05 yuchenshi

We've made a huge update to the codebase and this PR is outdated. I'm redoing the proposed changes in #858 -- stay tuned and you're welcome to test on that branch to see if that works for you. The goal is to get it merged for real this time.

yuchenshi avatar Oct 05 '22 00:10 yuchenshi

I'm not 100% sure how, but this PR seems to break Storage unit tests: https://github.com/firebase/firebase-tools-ui/runs/6278540877?check_suite_focus=true#step:5:2864

Found it -- caused by the fetch mocking failing since the URLs no longer start with http. Fixing in #858 as well.

yuchenshi avatar Oct 05 '22 00:10 yuchenshi

Released in CLI v11.14.0. It's not perfect, especially not all emulators work over HTTPS, but we think it's a step in the right direction. Let us know if you run into issues and PRs are welcomed!

yuchenshi avatar Oct 06 '22 22:10 yuchenshi