-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[INTERNAL][FIX] Fix of the flexChangesBundler.js to sort correctly (#198
) The flexChangesBundler used the wrong operation to sort the files contained in the /changes/ folder of an application. Thus the sorting may be incorrect. This commit changes the operator to sort accordingly.
- Loading branch information
Showing
22 changed files
with
304 additions
and
99 deletions.
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
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
11 changes: 11 additions & 0 deletions
11
test/expected/build/application.i/dest/Component-preload.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
test/expected/build/application.i/dest/changes/changes-bundle.json
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 @@ | ||
[{"fileName":"id_456_addField","fileType":"change","changeType":"hideControl","component":"application.i.Component","content":{},"selector":{"id":"control1"},"layer":"VENDOR","texts":{},"namespace":"apps/application.i.Component/changes","creation":"2023-10-30T13:52:40.4754350Z","originalLanguage":"","conditions":{},"support":{"generator":"did it","user":"Max Mustermann"}},{"fileName":"id_123_addField","fileType":"change","changeType":"hideControl","component":"application.i.Component","content":{},"selector":{"id":"control1"},"layer":"VENDOR","texts":{},"namespace":"apps/application.i.Component/changes","creation":"2025-10-30T13:52:40.4754350Z","originalLanguage":"","conditions":{},"support":{"generator":"did it","user":"Max Mustermann"}}] |
1 change: 1 addition & 0 deletions
1
test/expected/build/application.i/dest/changes/coding/MyExtension.js
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 @@ | ||
sap.ui.define([],function(){return{}}); |
3 changes: 3 additions & 0 deletions
3
test/expected/build/application.i/dest/changes/fragments/MyFragment.fragment.xml
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,3 @@ | ||
<xml> | ||
|
||
</xml> |
20 changes: 20 additions & 0 deletions
20
test/expected/build/application.i/dest/changes/id_123_addField.change
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,20 @@ | ||
{ | ||
"fileName": "id_123_addField", | ||
"fileType": "change", | ||
"changeType": "hideControl", | ||
"component": "application.i.Component", | ||
"content": {}, | ||
"selector": { | ||
"id": "control1" | ||
}, | ||
"layer": "VENDOR", | ||
"texts": {}, | ||
"namespace": "apps/application.i.Component/changes", | ||
"creation": "2025-10-30T13:52:40.4754350Z", | ||
"originalLanguage": "", | ||
"conditions": {}, | ||
"support": { | ||
"generator": "did it", | ||
"user": "Max Mustermann" | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
test/expected/build/application.i/dest/changes/id_456_addField.change
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,20 @@ | ||
{ | ||
"fileName": "id_456_addField", | ||
"fileType": "change", | ||
"changeType": "hideControl", | ||
"component": "application.i.Component", | ||
"content": {}, | ||
"selector": { | ||
"id": "control1" | ||
}, | ||
"layer": "VENDOR", | ||
"texts": {}, | ||
"namespace": "apps/application.i.Component/changes", | ||
"creation": "2023-10-30T13:52:40.4754350Z", | ||
"originalLanguage": "", | ||
"conditions": {}, | ||
"support": { | ||
"generator": "did it", | ||
"user": "Max Mustermann" | ||
} | ||
} |
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,13 @@ | ||
{ | ||
"_version": "1.1.0", | ||
"sap.app": { | ||
"_version": "1.1.0", | ||
"id": "application.i", | ||
"type": "application", | ||
"applicationVersion": { | ||
"version": "1.2.2" | ||
}, | ||
"embeds": ["embedded"], | ||
"title": "{{title}}" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "application.i", | ||
"version": "1.0.0", | ||
"description": "Simple SAPUI5 based application", | ||
"main": "index.html", | ||
"dependencies": {}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
} | ||
} |
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,25 @@ | ||
--- | ||
specVersion: "0.1" | ||
type: application | ||
metadata: | ||
name: application.i | ||
builder: | ||
bundles: | ||
- name: sap/ushell/bootstrap/cdm.js | ||
defaultFileTypes: | ||
- ".js" | ||
sections: | ||
- mode: raw | ||
filters: | ||
- ui5loader.js | ||
- ui5loader-autoconfig.js | ||
declareModules: false | ||
resolve: true | ||
- mode: preload | ||
name: sap/ushell/bootstrap/common | ||
filters: | ||
- sap/ushell/bootstrap/cdm/cdm-def.js | ||
resolve: true | ||
- mode: require | ||
filters: | ||
- sap/ushell/bootstrap/cdm/cdm-def.js |
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.ui.define(["sap/ui/core/UIComponent"], function(UIComponent){ | ||
"use strict"; | ||
return UIComponent.extend('application.i.Component', { | ||
metadata: { | ||
manifest: "json" | ||
} | ||
}); | ||
}); |
3 changes: 3 additions & 0 deletions
3
test/fixtures/application.i/webapp/changes/coding/MyExtension.js
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,3 @@ | ||
sap.ui.define([],function () { | ||
return {}; | ||
}); |
3 changes: 3 additions & 0 deletions
3
test/fixtures/application.i/webapp/changes/fragments/MyFragment.fragment.xml
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,3 @@ | ||
<xml> | ||
|
||
</xml> |
20 changes: 20 additions & 0 deletions
20
test/fixtures/application.i/webapp/changes/id_123_addField.change
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,20 @@ | ||
{ | ||
"fileName": "id_123_addField", | ||
"fileType": "change", | ||
"changeType": "hideControl", | ||
"component": "application.i.Component", | ||
"content": {}, | ||
"selector": { | ||
"id": "control1" | ||
}, | ||
"layer": "VENDOR", | ||
"texts": {}, | ||
"namespace": "apps/application.i.Component/changes", | ||
"creation": "2025-10-30T13:52:40.4754350Z", | ||
"originalLanguage": "", | ||
"conditions": {}, | ||
"support": { | ||
"generator": "did it", | ||
"user": "Max Mustermann" | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
test/fixtures/application.i/webapp/changes/id_456_addField.change
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,20 @@ | ||
{ | ||
"fileName": "id_456_addField", | ||
"fileType": "change", | ||
"changeType": "hideControl", | ||
"component": "application.i.Component", | ||
"content": {}, | ||
"selector": { | ||
"id": "control1" | ||
}, | ||
"layer": "VENDOR", | ||
"texts": {}, | ||
"namespace": "apps/application.i.Component/changes", | ||
"creation": "2023-10-30T13:52:40.4754350Z", | ||
"originalLanguage": "", | ||
"conditions": {}, | ||
"support": { | ||
"generator": "did it", | ||
"user": "Max Mustermann" | ||
} | ||
} |
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,13 @@ | ||
{ | ||
"_version": "1.1.0", | ||
"sap.app": { | ||
"_version": "1.1.0", | ||
"id": "application.i", | ||
"type": "application", | ||
"applicationVersion": { | ||
"version": "1.2.2" | ||
}, | ||
"embeds": ["embedded"], | ||
"title": "{{title}}" | ||
} | ||
} |
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.