-
Notifications
You must be signed in to change notification settings - Fork 540
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
make adaptive card library compatible with ie #4927
make adaptive card library compatible with ie #4927
Conversation
@dclaux , @matthidinger The AdaptiveCards-.NET-PR pipeline is failing because of lack of permission. Can you please help me in how to resolve this ? |
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.
Designer changes look good.
Two things though:
- I don't think we want to release the templating engine solely as a transpiled library. Browsers other than IE don't nee that, and I'd rather us ship "native" JS and only make the transpiled version available to those who really need it
- Your change will work now because it so happens we bundle the Adaptive Expression with our templating library. But that isn't the right thing to do long term; I think sooner than later we'll mark adaptive-expressions as an external, and the host application will be responsible for loading it on its own. My point here is that it is the adaptive-expression library that needs to go through Babel
Thanks @dclaux for the suggestion. I am just trying to figure out the right way to do it, so that we dont have to fork out from main branch. I have made the neccessay changes in adaptive expression library here : microsoft/botbuilder-js#2906 Once its merged, we can remove the babel and core js dependecny from templating library and make one little change of : Also, if we dont want to ship the transpiled version with the public library , can we make it configurable and lazy load the expression library(as its a big chunk) so that we can decide based on the config whether to include the transpiled version or not. Also I think lazy loading expression library will help reduce the size of templating library and improve performance. What do you think ? |
@atishayv thanks for the changes. I think we should look immediately into making adaptive-expressions an external dependency for adaptivecards-templating. This way, the consuming application is responsible for loading adaptive-expressions, and at that point it can choose to load the transpiled version or the native version. |
Can you please give me some pointers on how are we planning to do it? |
Making a dependency external should be relatively simple, although I haven't been successful with it myself so I can't be sure. To start with it's about marking it as such by adding it to the It would be great if you could look into this. Would that be OK? |
Hi @dclaux , |
@atishayv when I tried it was actually about making the Ok so this is great, however before we can merge into main we need to all be aware of the fact that this is technically a breaking change. Applications that use @matthidinger what do you think? I think it's a price worth paying. @atishayv did you verify that the designer still works? Also, without pushing things too far, if we make this change I think we should go all in and also do the following:
|
I tried to run localhost preview fetaures html and it was working. Also it was working in this link as well : Also I am okay with making adaptive card and templating library external as well. Let me know if I need to do the change as part of this PR |
@dclaux , @matthidinger Can you please suggest what are the action plan for this PR ? |
Hi @atishayv. This non-spec pull request has had no recent activity for the past 5 days . Please take the necessary actions (review, address feedback or commit if reviewed already) to move this along. |
Hi @atishayv; Thanks for taking action on your previously stale pull request. Resetting staleness. |
@matthidinger , @dclaux I have updated the PR as per your comments. Let me know if I need to make any more changes for this. |
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.
I haven't tested explicitly, but the changes look good to me. Please do change "optional" into "required" where noted though.
@dclaux, @matthidinger The command |
@atishayv what's the error you're getting? |
@dclaux Getting the following error:
|
Has the typedoc-plugin-markdown package been updated, and there was some sort of a breaking change? Unfrotunately I do not know how it works, so I'm not quite sure how to help. |
I have not done any changes related to typedoc-plugin-markdown package update. The PR contains only changes related to update of README.md file. |
The PR contains more than changes to the README.md file. Did you mean this last commit only changes README.md, and are you suggesting that it worked before that last commit? |
@dclaux , @matthidinger I am not sure after which commit it stopped working. But I dont think it has anything to do with the changes in this PR.
And it failed with the same error : Can you please help me with this ? Is it because of the recent update in typedoc library to 0.20.0-beta.4 version ? |
@matthidinger , @dclaux , @paulcam206 Let me know if I need to do these changes in a separate PR ? |
Good. I think this change can go into this same PR. In terms of merging the PR - we've branched our 20.10 release a couple days ago, so anything that goes into main now will be part of the 20.11 release, including this change. I think that's good as it will give us a full month to make sure things continue working as expected and communicate the breaking change with partners. So @matthidinger, pending the NodeJS checks passing (they don't at this moment) I think we can merge this PR. Would you agree? |
/azp run |
You have several pipelines (over 10) configured to build pull requests in this repository. Specify which pipelines you would like to run by using /azp run [pipelines] command. You can specify multiple pipelines using a comma separated list. |
@dclaux , @matthidinger i have updated the pr. Now all the checks are passing. Let me know if there is anymore changes needed to merge it. |
@dclaux Can we merge this ? |
I just updated the branch, will merge once the tests have passed. |
@atishayv at some point the Designer seems to have broken, per the thread I added you to a few minutes ago. And the PR link is no longer working. https://adaptivecardsci.z5.web.core.windows.net/pr/4927/designer We have a community call that relies on this demo working Thursday at 9am if there is any way you can dig in and see what may have broken along the way that would be much appreciated! |
@atishayv it appears the samples no longer render - both on localhost as well as on our latest CI website which is running as yet unshipped bits from main/release/20.12 branch - issue #5193 . Thoughts here at all ? Also was the concern that @matthidinger had raised earlier with this PR ever addressed prior to merging again? Thanks! @golddove who's been helping dig into this ahead of our scheduled release today. |
Switching |
@shalinijoshi19 yes the issue that @matthidinger has raised before was fixed here Let me debug the issue related to samples not working and get back |
Related Issue
Closes : #4855
Description
How Verified
Tested manually in local both adaptive card designer and site in IE to make sure that there are no errors
Microsoft Reviewers: Open in CodeFlow