-
Notifications
You must be signed in to change notification settings - Fork 286
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
Add back support for multiple apps #930
Conversation
@rwjblue I was unable to get anything close to functioning here, but hopefully this shows you what I was going for. Perhaps you could help me figure out where I went wrong? |
d74ae36
to
e9782b1
Compare
@rwjblue @teddyzeenny @nummi @alexhancock this code seems to work for iframes and multiple apps, but @teddyzeenny was saying the It would be awesome if you guys could take a look at this PR and maybe help with ways to clean things up, thoughts, suggestions etc. I was hoping we could move some of the manual applicationId and applicationName stuff to be stored on the app instances, which I did in one spot with |
That makes sense to me if we actually have code running across multiple execution contexts that Does the logic in |
@alexhancock the ember_debug code is injected into the iframes, and run in their context, I believe. ember-inspector/app/adapters/web-extension.js Line 115 in c207685
|
@rwwagner90 Ahh, I see. Thanks for clarifying that! |
@rwwagner90 Any interest in re-starting this? I think where we left off you wanted a code review from @teddyzeenny? Seems like we had the solution pretty close in code. I would love to finish it if there is interest. |
@alexhancock I do plan to wrap this up soon. I spoke to @teddyzeenny and he is in favor of us shipping more code and worrying about it less. If it breaks things for anyone, hopefully they will report bugs. We currently have a lot of other issues to work through for inspector, and we have to work through those and get the tests passing again, before we can merge any PRs. Would you be interested in looking into some of the issues with us? |
@rwwagner90 Sounds good. I am happy to spend some time looking into those issues. What's the best way for me to help? Is there a branch I should check out and try to debug things on my own, or should I join to discuss on discord at some time? I am wrapping up my work day soon today, but should be able to help look into things tomorrow. |
This reverts commit e49e485.
d35b6ac
to
ede9c4d
Compare
@alexhancock I just rebased this with master. Would you mind testing to make sure it works for you? |
@rwwagner90 sure thing - will test shortly |
@rwwagner90 Seemed to work well for me. I tested our case where we have two ember apps on the page, and then I dropped an iframe in the page to a third ember app running on my computer, and they all showed up in the picker. When switching back and forth between the apps, I got this error on occasion (not every time): ... but even though I got the error, everything continued to work. |
@alexhancock would you possibly be interested in debugging that error and trying to determine what is causing it? |
@rwwagner90 sure - will look tomorrow. |
@alexhancock sounds good! Please keep me posted 😃 |
@alexhancock any luck? |
Got a little more clarity on what the error is, but didn't find a solution yet. Had limited time to look at it so far, but will try to figure it out today/tomorrow. |
@alexhancock just keep me posted! I would like to get this in soon, and release a new version 😃 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Embedded iframe is working for me. We just need someone with multiple apps on one page to test.
@nummi @rwwagner90 I tested on our site (https://squareup.com/dashboard/). It works well from what I can see. If we know of any other cases we should test them, but otherwise I suppose we just go for it? |
Merged. Thanks so much guys! If anything breaks, I'm sure people will let us know 😝 |
No description provided.