As a developer working on a Cloud Foundry adaptation project,
I want to add an external service to my Adaptation Project,
so that I can extend the base application with additional services in a Cloud Foundry environment
Description
Extends the "Add Datasource and SAPUI5 Model" generator to support Cloud Foundry adaptation projects. When running in a Cloud Foundry environment, the generator handles specific requirements such as BTP destination selection, OnPremise connectivity.
Technical Design
@sap-ux/generator-adp — add-new-model sub-generator:
- Detects Cloud Foundry Adaptation Project on startup and validates CF login
- Prompts for BTP destination selection when running in Cloud Foundry scenario
@sap-ux/adp-tooling — NewModelWriter:
- Derives the Cloud Foundry service URI from the datasource/model name
- Writes a new xs-app.json AppRouter route for the added service
- Calls
addConnectivityServiceToMta and ensureTunnelAppExists for OnPremise destinations
Acceptance Criteria
Given I complete the prompts with a standard (non-OnPremise) destination,
when the change is written,
then an xs-app.json route is added for the new service and a change is generated
Given I select an OnPremise BTP destination,
when the change is written,
then connectivity service is added to mta.yaml and the SSH tunnel app is provisioned in addition to the xs-app.json route.
Tasks
As a developer working on a Cloud Foundry adaptation project,
I want to add an external service to my Adaptation Project,
so that I can extend the base application with additional services in a Cloud Foundry environment
Description
Extends the "Add Datasource and SAPUI5 Model" generator to support Cloud Foundry adaptation projects. When running in a Cloud Foundry environment, the generator handles specific requirements such as BTP destination selection, OnPremise connectivity.
Technical Design
@sap-ux/generator-adp—add-new-modelsub-generator:@sap-ux/adp-tooling—NewModelWriter:addConnectivityServiceToMtaandensureTunnelAppExistsfor OnPremise destinationsAcceptance Criteria
Given I complete the prompts with a standard (non-OnPremise) destination,
when the change is written,
then an xs-app.json route is added for the new service and a change is generated
Given I select an OnPremise BTP destination,
when the change is written,
then connectivity service is added to mta.yaml and the SSH tunnel app is provisioned in addition to the xs-app.json route.
Tasks