New builder setting to fix data source URI in manifest.json
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 511
- Forks
- 83
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 55
Description
Is your feature request related to a problem? Please describe.
Data source URI in manifest.json should not start with a slash in order to UI5 application work properly in a FLP.
Describe the solution you'd like
It would be nice to have a builder task or setting that checks manifest.json and strips off leading slash from a data source URI during a building of an application to ensure that URI is correct automatically.
Describe alternatives you've considered
There is a such feature in @sap/grunt-sapui5-bestpractice-build module that is not supported any more and should be replaced with @ui5/builder.
Additional context
Example of a data source section of manifest.json
"dataSources": {
"Document-RestSource": {
"uri": "fnd/document-ms/",
"type": "JSON"
}
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the @ui5/builder build-task or setting entry point that processes manifest.json. Use the dataSources example in this issue to determine how a leading slash should be handled, then identify or add the relevant build coverage and verify that the generated manifest contains the corrected URI.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100