Skip to content

Conversation

@avasilev-sap
Copy link
Contributor

@avasilev-sap avasilev-sap commented Nov 18, 2025

#3845

  • When a mini generator which requires auth is started we show the system name above the title. Previously the system was set to the label before being initialized which results in undefined as a text in the label, this PR fixes the initialization issue and removes some dead-code.
  • When a user enters wrong credentials in the login form we rely on the getUI5SystemVersion api call to check if the user is logged in. Recently the version api has changed and is now public so the api always returns status 200. From now on we start to rely on the getSystemInfo api call to verify if user is logged in since the api is a protected one. We needed to adjust the stub method getSystemInfo to throw any errors from the actual api call, prior this PR the errors were hidden and just being logged in.

Testing done:

  • The system name appears in the login page title for a mini generator(replace OData and Annotations).
  • When we enter wrong credentials exception - unauthorized is visible on the screen.
  • When proper credentials are entered the user can proceed with the OData service configuration. The wizard properly creates the OData change file.
Screenshot 2025-11-18 at 10 13 53 Screenshot 2025-11-18 at 9 59 53

@changeset-bot
Copy link

changeset-bot bot commented Nov 18, 2025

🦋 Changeset detected

Latest commit: 6c5c55e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 24 packages
Name Type
@sap-ux/axios-extension Patch
@sap-ux/generator-adp Patch
@sap-ux/abap-deploy-config-inquirer Patch
@sap-ux/adp-flp-config-sub-generator Patch
@sap-ux/adp-tooling Patch
@sap-ux/app-config-writer Patch
@sap-ux/backend-proxy-middleware Patch
@sap-ux/deploy-tooling Patch
@sap-ux/environment-check Patch
@sap-ux/fiori-app-sub-generator Patch
@sap-ux/flp-config-inquirer Patch
@sap-ux/odata-service-inquirer Patch
@sap-ux/preview-middleware Patch
@sap-ux/repo-app-import-sub-generator Patch
@sap-ux/system-access Patch
@sap-ux/ui-service-inquirer Patch
@sap-ux/ui-service-sub-generator Patch
@sap-ux/odata-cli Patch
@sap-ux/generator-simple-fe Patch
@sap-ux/abap-deploy-config-sub-generator Patch
@sap-ux/create Patch
@sap-ux/deploy-config-sub-generator Patch
@sap-ux/flp-config-sub-generator Patch
@sap-ux/abap-deploy-config-writer Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@avasilev-sap avasilev-sap changed the title fix: Problems with login in the Replace OData Service change editor. fix(adp): Problems with login in the Replace OData Service change editor. Nov 18, 2025
@avasilev-sap avasilev-sap self-assigned this Nov 18, 2025
@avasilev-sap avasilev-sap added the generator-adp @sap-ux/generator-adp label Nov 18, 2025
@avasilev-sap avasilev-sap marked this pull request as ready for review November 18, 2025 10:34
…m the lrep service not from the provider instance.
@avasilev-sap avasilev-sap requested a review from a team as a code owner November 20, 2025 11:42
Copy link
Contributor

@mmilko01 mmilko01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changeset OK
Changes look good
Excellent test coverage
Did not test manually

@sonarqubecloud
Copy link

Copy link
Contributor

@IvoSG IvoSG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good
Good test coverage
Did not test manually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

generator-adp @sap-ux/generator-adp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants