-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
[Bug]: Issue with deploying html apps into BTP build workzone #582
Comments
I do have the same issue, I've raised an incident to SAP. Some logs from the HTML5 importer: |
@FabienHenique How are your accessing this log?? Is your app getting deployed to html5 repository?? In my case the app is deployed to html5 repo but not available in channel manager of build workzone |
@FabienHenique @TravelTechCode do you have the same issue? If yes, you can also raise a issue ticket with SAP Current workaround (and recommended) is to deploy the component not in the app itself. This helps with the ABAP Stack and BTP deployment. |
@marianfoo, this is answer from SAP: Could you change below setting, rebuild and deploy again? Then update content in workzone content channel and see if issue is resolved. ./thirdparty/customcontrol/spreadsheetimporter/v1_0_0/manifest.json Old: "sap.cloud": { New: "sap.cloud": { |
When you refresh your HTML5 repo, you can download the report and you should see any partial import in the json file. |
@FabienHenique the service name |
@marianfoo our cloud service name is nagarro.xxx.xxx. I've put mycloudservicename as an example. |
@FabienHenique just i understand correct: |
I ran into this issue and resolved it by using the SAP suggestion above of manually updating the below file: ./thirdparty/customcontrol/spreadsheetimporter/v1_0_0/manifest.json
(where mycloudservicename is the same as what's in your deployed app) When you try and update the HTML5 'Content Channels' so the apps are available in the Content Manager, SAP is running this check (not sure why) to make sure that the sap.cloud.service name in the manifest of the component matches that sap.cloud.service name in the manifest of the app. |
Ok, i try to fix this with #587 |
@dguess @FabienHenique @TravelTechCode It worked in my test setup. Sample App manifest.jsonSpreadsheet Importer manifest.json in dist folderui5.yaml to build# yaml-language-server: $schema=https://sap.github.io/ui5-tooling/schema/ui5.yaml.json
specVersion: "2.5"
metadata:
name: ui.v4.ordersv4fe
type: application
builder:
customTasks:
- name: ui5-task-btp-manifest
afterTask: replaceVersion
configuration:
prefix: "test"
server:
customMiddleware:
- name: fiori-tools-proxy
afterMiddleware: compression
configuration:
ignoreCertError: false # If set to true, certificate errors will be ignored. E.g. self-signed certificates will be accepted
ui5:
path:
- /resources
- /test-resources
url: https://ui5.sap.com
backend:
- path: /odata/v4/Orders
url: http://localhost:4004
- name: ui5-middleware-ui5
afterMiddleware: compression
configuration:
modules:
ui5-cc-spreadsheetimporter:
configFile: "ui5-serve.yaml"
- name: ui5-tooling-modules-middleware
afterMiddleware: compression
configuration:
debug: "verbose"
addToNamespace: true
prependPathMappings: true
- name: fiori-tools-appreload
afterMiddleware: compression
configuration:
port: 35730
path: webapp
delay: 300
- name: fiori-tools-preview
afterMiddleware: fiori-tools-appreload
configuration:
component: ui.v4.ordersv4fe
ui5Theme: sap_horizon |
Hello @marianfoo , is there any specificity with MTA deployment? |
Need to install it, see the readme |
Hi @marianfoo . I tried this approach , But getting the same issue. |
@TravelTechCode can you please check if the service name in the spreadsheet importer and build output change? |
Hi @marianfoo yeah so i noticed that there are two manifests file in the /thirdparty/customcontrol/spreadsheetimporter/v33_0_0/manifest.json |
I see, please update spreadsheet importer to v1 |
@marianfoo I need to use importer v0.33.0 version only as the user needs the button icons. Is it not possible to address this issue in version 0.33.0 |
@TravelTechCode i updated the task so it supports your version as well |
a influence was created to change that. SAP dont see an error here |
Hi @marianfoo, I am facing the same issue as @TravelTechCode. I am using version 1.0.0 in embedded mode. The generated zip file contains 2 manifest.json files at location My ui5-deploy.yaml looks like that: specVersion: '2.4'
metadata:
name: myAppName
type: application
resources:
configuration:
propertiesFileSourceEncoding: UTF-8
builder:
resources:
excludes:
- "/test/**"
- "/localService/**"
customTasks:
- name: webide-extension-task-updateManifestJson
afterTask: replaceVersion
configuration:
appFolder: webapp
destDir: dist
- name: ui5-task-zipper
afterTask: generateCachebusterInfo
configuration:
archiveName: myAppName
includeDependencies:
- ui5-cc-spreadsheetimporter-v1-0-0
additionalFiles:
- xs-app.json
- name: ui5-task-btp-manifest
afterTask: replaceVersion
configuration:
service: "myService"
debug: true
- name: ui5-tooling-transpile-task
afterTask: replaceVersion
configuration:
debug: true
removeConsoleStatements: true
transpileAsync: true
transpileTypeScript: true |
@stockbal please try again with my fixes https://github.com/spreadsheetimporter/ui5-task-btp-manifest/releases/tag/v0.2.1 |
@stockbal as i showed you, i did work in my setup, but maybe run my task after transpile like: - name: ui5-task-btp-manifest
afterTask: ui5-tooling-transpile-task
configuration:
service: "myService"
debug: true |
OData Version
OData V4
Draft
No
Scenario
Flexible programming model
Environment
BAS
UI5 Spreadsheet Component
0.33.0
What happened?
Hi Marian,
I am deploying a cap based fiori app to cloud foundry . The app is successfully deployed and the app is available at the html Applications , but due to some weird reasons the app isnt available in content explorer of build workzone.
Regards,
Priyanka
Relevant log output
.
Spreadsheet Component Init
Manifest
The text was updated successfully, but these errors were encountered: