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

Typescript configuration for Fiori elements apps #1286

Merged
merged 42 commits into from
Dec 2, 2024
Merged

Typescript configuration for Fiori elements apps #1286

merged 42 commits into from
Dec 2, 2024

Conversation

c-kobo
Copy link
Member

@c-kobo c-kobo commented Nov 20, 2024

This PR enables typescript for both apps Travel Processor and Travel Analytics.
Additionally, for the Travel Processor App, the following flexible programming model based extensions are added:

  • a custom section combining a message strip and a table building block. This replaces the standard booking table section
  • a controller extension: when saving, it is checked whether trees-4-tickets checkbox has been selected, a dialog is shown giving the user the option to do so before save continues.

Other changes

  • Fix bad extraneous field in Travels.csv file
  • Show server stdout in Karma runs
  • Use karma-ui5-transpile to get TS working in Karma tests
  • Delete obsolete app/*/package=lock.json files
  • Unified double karma.conf files
  • Java 21 in pipeline
  • Drop Node 18 in pipeline
  • Remove obsolete odata.test.js which also caused problems with ts-jest
  • Remove obsolete npm ci calls in pipeline
  • Use deploy -out param in Maven build to not be disturbed by extra stdout ouput from cds-ui5-plugin
  • Replace parent pom by SpringBoot bom
  • Use latest SpringBoot 3.41
  • Use latest CAP Java 3.5.0

@c-kobo c-kobo changed the title Typescript configuration and for Fiori elements apps Typescript configuration for Fiori elements apps Nov 20, 2024
Copy link
Contributor

@devinea devinea left a comment

Choose a reason for hiding this comment

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

@c-kobo A few small comments to align with fiori tools generation of new projects.
I noticed a test failing here.
http://localhost:4004/sap.fe.cap.travel/test/integration/Opa.qunit.html

app/travel_analytics/package.json Outdated Show resolved Hide resolved
app/travel_analytics/package.json Show resolved Hide resolved
app/travel_analytics/ui5.yaml Show resolved Hide resolved
app/travel_processor/package.json Outdated Show resolved Hide resolved
app/travel_processor/package.json Show resolved Hide resolved
app/travel_processor/ui5.yaml Show resolved Hide resolved
@c-kobo
Copy link
Member Author

c-kobo commented Nov 27, 2024

Wrt to the failing OPA tests, my colleague @ARiesterer will try to take a look into it.

OPA tests should be fine again now.

@c-kobo
Copy link
Member Author

c-kobo commented Nov 27, 2024

Jest tests still failing.

@c-kobo
Copy link
Member Author

c-kobo commented Nov 28, 2024

@stewsk @chgeo the jest tests fail due to an incompability with cds-plugin-ui5.
Seems to be an issue with jest and node in combination with plugins.
@petermuessig described a workaround here (requires upgrade to node21):
ui5-community/ui5-ecosystem-showcase#901 (comment)

@chgeo
Copy link
Member

chgeo commented Nov 29, 2024

Look Ma, it's green 🥳

Copy link
Member

@chgeo chgeo left a comment

Choose a reason for hiding this comment

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

Let's merge this as this is to be shown tomorrow in CAP product day.

Aligned with @Akatuoro that he rebases his TS simplificiations on top of this one.

@chgeo chgeo merged commit 2b0ac22 into main Dec 2, 2024
4 checks passed
@chgeo chgeo deleted the typescript branch December 2, 2024 09:39
Akatuoro added a commit that referenced this pull request Dec 3, 2024
Disables the cds ui5 plugin for mocha tests, removing the need for the
forceful mocha exit introduced with #1286 .

---------

Co-authored-by: Christian Georgi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants