Skip to content

FEATURE - Enhance Add OData Service and SAPUI5 model generator for Cloud Foundry projects #4530

@mmilko01

Description

@mmilko01

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-adpadd-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-toolingNewModelWriter:

  • 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

  • Unit Tests added
  • Test Cases defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions