generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 35
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
feat: Support multiple services for ui5 yaml files and manifest.json #2455
Open
broksy
wants to merge
24
commits into
main
Choose a base branch
from
feat/supportMultipleServices
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 20 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
3e75124
fix: multiple backends to fiori tools proxy middleware
broksy 3e44986
feat: handle multiple services
broksy 0ff8430
feat: generate mockdatapath
broksy b8ba6ea
test: generate mockdatapath
broksy ee194b1
feat: support multiple annotations per service
broksy c0df67f
fix: type
broksy c038552
Linting auto fix commit
github-actions[bot] d17a96f
Merge branch 'main' into feat/supportMultipleServices
broksy e4f25db
feat: changeset
broksy 05d9498
fix: failing tests and getting of annotation namespaces
broksy 2c06b4f
fix: simplified logic for getting config of mockserver
broksy 1078c8d
Merge branch 'main' into feat/supportMultipleServices
broksy 0d42704
Merge branch 'main' into feat/supportMultipleServices
Klaus-Keller 5162ea3
fix: resolve conflict in i18n instances
Klaus-Keller 6ee0de5
fix: simplified logic for service handling
broksy a900e7e
fix: snapshot
broksy 9ecd88f
chore: moved overwrite param to mock config object
broksy 19f8b31
fix: generate mockserver config param
broksy f40bd4f
fix: dynamical paths for services
broksy 7be6a3a
fix: snapshots
broksy ecd6496
feat: check for service name when generating mockdatapath
broksy cf343ea
fix: snapshots
broksy 7239c3a
feat: support backward compatibility for annotations as object
broksy e0e2e94
Linting auto fix commit
github-actions[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
'@sap-ux/mockserver-config-writer': minor | ||
'@sap-ux/odata-service-writer': minor | ||
'@sap-ux/ui5-config': minor | ||
'@sap-ux/create': minor | ||
--- | ||
|
||
Support multiple services and multiple annotations per service. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,8 +93,8 @@ server: | |
mountPath: / | ||
services: | ||
- urlPath: /sap/opu/odata/sap/SEPMRA_ALP_SO_ANA_SRV | ||
metadataPath: ./webapp/localService/metadata.xml | ||
mockdataPath: ./webapp/localService/data | ||
metadataPath: ./webapp/localService/mainService/metadata.xml | ||
mockdataPath: ./webapp/localService/mainService/data | ||
generateMockData: true | ||
annotations: [] | ||
", | ||
|
@@ -138,8 +138,8 @@ server: | |
mountPath: / | ||
services: | ||
- urlPath: /sap/opu/odata/sap/SEPMRA_ALP_SO_ANA_SRV | ||
metadataPath: ./webapp/localService/metadata.xml | ||
mockdataPath: ./webapp/localService/data | ||
metadataPath: ./webapp/localService/mainService/metadata.xml | ||
mockdataPath: ./webapp/localService/mainService/data | ||
generateMockData: true | ||
annotations: | ||
- localPath: ./webapp/localService/SEPMRA_PROD_MAN_ANNO_MDL.xml | ||
|
@@ -2338,6 +2338,10 @@ xmlns:edmx=\\"http://docs.oasis-open.org/odata/ns/edmx\\"> | |
</edmx:Edmx>", | ||
"state": "modified", | ||
}, | ||
"webapp/localService/data/keep": Object { | ||
"contents": "", | ||
"state": "modified", | ||
}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we should generate empty keep files into a project. |
||
"webapp/localService/metadata.xml": Object { | ||
"contents": "<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?> | ||
<edmx:Edmx xmlns:edmx=\\"http://schemas.microsoft.com/ado/2007/06/edmx\\" xmlns:m=\\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\\" xmlns:sap=\\"http://www.sap.com/Protocols/SAPData\\" Version=\\"1.0\\"> | ||
|
@@ -6071,8 +6075,8 @@ server: | |
mountPath: / | ||
services: | ||
- urlPath: /sap/opu/odata4/sap/c_salesordermanage_srv/srvd/sap/c_salesordermanage_sd_aggregate/0001 | ||
metadataPath: ./webapp/localService/metadata.xml | ||
mockdataPath: ./webapp/localService/data | ||
metadataPath: ./webapp/localService/mainService/metadata.xml | ||
mockdataPath: ./webapp/localService/mainService/data | ||
generateMockData: true | ||
annotations: [] | ||
", | ||
|
@@ -6116,8 +6120,8 @@ server: | |
mountPath: / | ||
services: | ||
- urlPath: /sap/opu/odata4/sap/c_salesordermanage_srv/srvd/sap/c_salesordermanage_sd_aggregate/0001 | ||
metadataPath: ./webapp/localService/metadata.xml | ||
mockdataPath: ./webapp/localService/data | ||
metadataPath: ./webapp/localService/mainService/metadata.xml | ||
mockdataPath: ./webapp/localService/mainService/data | ||
generateMockData: true | ||
annotations: | ||
- localPath: ./webapp/annotations/annotation.xml | ||
|
@@ -6246,6 +6250,10 @@ appDescription=A Fiori application.", | |
</html>", | ||
"state": "modified", | ||
}, | ||
"webapp/localService/data/keep": Object { | ||
"contents": "", | ||
"state": "modified", | ||
}, | ||
"webapp/localService/metadata.xml": Object { | ||
"contents": "<?xml version=\\"1.0\\" encoding=\\"utf-8\\"?> | ||
<edmx:Edmx Version=\\"4.0\\" xmlns:edmx=\\"http://docs.oasis-open.org/odata/ns/edmx\\"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should not add empty
keep
files. If a module relies on the fact the folderwebapp/localService/data
exists, we need to make it more robust.