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

Flex changes not loading correctly #245

Open
shahzeb79 opened this issue Jul 17, 2020 · 4 comments
Open

Flex changes not loading correctly #245

shahzeb79 opened this issue Jul 17, 2020 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@shahzeb79
Copy link

Hi Colleagues,
We face a problem with 50+ teams who uses flex changes in there tests. And while running tests through karma or tooling, these changes are not loaded successfully and wrong controls are displayed in tests, hence tests fails. So it will be really good if i can get more details on how we can make flex changes work for normal freestyle fiori app setup.

Thanks
Shahzeb

@matz3 matz3 self-assigned this Jul 17, 2020
@matz3 matz3 added the information required Further information is required label Jul 17, 2020
@matz3
Copy link
Member

matz3 commented Jul 17, 2020

Could you please provide some insights on your observations and more details about this? As this problem is not known to me and there is no example on how to reproduce we can't provide any help right now.
Also information about the UI5 version would be great as I suspect this rather to be a regression within UI5 (e.g. sap.ui.fl).

@matz3 matz3 closed this as completed Jul 17, 2020
@RandomByte
Copy link
Member

I had a quick chat with Shahzeb earlier today. I suspected that this might be because we only have flex related tasks, and no middleware. Or should flex changes already work from the sources?

@RandomByte
Copy link
Member

Hi @shahzeb79,

I just discussed this with @Lonwyr from the UI5 Flexibility area. This is a known gap and there are a couple of ways to close it. Most likely on the UI5 Tooling side, with a new ui5-server middleware that serves a list of available changes files for a project (=namespace) and a connector to consume that list.

We agreed to follow up on this and let you know of any new developments. Thanks for reporting!

@RandomByte RandomByte reopened this Jul 21, 2020
@RandomByte RandomByte assigned RandomByte and unassigned matz3 Jul 21, 2020
@RandomByte RandomByte added enhancement New feature or request and removed information required Further information is required labels Jul 21, 2020
@Lonwyr
Copy link

Lonwyr commented Jul 23, 2020

TLDR

  • Flex changes are only applied if they are in the bundles generated out of the build
  • If you need to run the sources without the minified / preload (i.e. to check code coverage), you can do this with the sap-ui-debug=true parameter
  • Loading them directly without a build step is only possible in the IDEs (SAP Business Application Studio, SAP WebIDE - as of today)

details for the interested community
We load on an app startup the flex files from the generated bundles. Since we are part of the build which is highly recommended form every IDE allowing the creation of changes, we know they are in the preload if they exist. Therefore, we do not send any request if they are NOT preloaded.
This is overruled in case the preload is not considered (i.e. in debug).
If no build step run, concrete implementations on the IDE side provide the data by registering their own data provider. Otherwise, OpenUI5 has no clue where to find the single files since they have a GUID in their names and listing a namespace is dependent on the server serving the app. We are coming closer and closer to a solution and we will discuss how we can provide a satisfying solution for this known gap - at least for the most used server(s) on which you may run your apps for testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants