Repository navigation
feat(project): Offer configPath property to workspace configs (workspace/1.1)
#1643
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
Open
maxreichmann
wants to merge
36
commits into
main
Choose a base branch
from
offer-configPath-to-workspace-yaml
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.
+1,789
−61
Open
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
4ecb633
feat: Offer configPath property to workspace configs
maxreichmann 077ba7c
feat(project): Add logic for configPath parameter
maxreichmann a1fbf58
docs: Adjust Workspace.md page with configPath property
maxreichmann 8e8cb78
refactor: Improve error handling when `path` is absolute
maxreichmann 50b1429
refactor: Adjust workspace config to fix tests
maxreichmann 2d3bb7e
test(project): Adjust resolutions path to absolute
maxreichmann 31f1619
refactor: Remove "else" block in schema
maxreichmann a730f2f
refactor: Fix AJV strict mode warnings
maxreichmann bac2f97
docs: Remove "v5.0.0+" and only keep "v4.1.0+"
maxreichmann fc81fb0
docs: Apply @d3xter666 suggestion
maxreichmann c34fdb8
refactor: Add temp test matrix (DELETE LATER)
maxreichmann 42fcc9b
test(project): Fix schema tests
maxreichmann eabc305
test: Add scenario for configPath in collections
maxreichmann 67ecce9
test(project): Add first test case for collection scenarios
maxreichmann 9b641d5
test(project): Add test cases
maxreichmann 8ad07a2
test: Add important case isolating "last one wins" logic from current…
maxreichmann efadc9a
test: Add test matrix for "specific one wins" logic
maxreichmann 560c97b
test: Add concept markdown for logic "specific one wins + error on du…
maxreichmann fafe13d
refactor: Add error handling for duplicate assignments
maxreichmann fd4f722
test(project): Fix stale tests
maxreichmann b9d5595
refactor: Only throw double resolutions if same absolute path
maxreichmann 8c98055
test(project): Fix windows paths
maxreichmann 133d63c
test(project): Cleanup
maxreichmann 2d466cd
docs: Fix path resolution
maxreichmann 0c0a472
test: Fix path for error message
maxreichmann 236c5f5
fix(project): Forward workspace `configPath` to the project graph
maxreichmann c22ffd1
fix(project): Apply most specific workspace resolution configPath
devtomtom 5eb9557
fix(project): Fix specificity of workspace config resolution
devtomtom 2bbcfab
test(project): Add cases for overlapping workspace globs
maxreichmann 5fe1f21
fix(project): Process workspace resolutions sequentially
maxreichmann d3b7fb4
fix(project): Normalize workspace paths with trailing slashes
maxreichmann 75f8e5e
refactor: Rebase (+fix merge conflicts)
maxreichmann d80a8ab
docs: Add docu for "Most specific wins" logic
maxreichmann 5de6920
docs: Refactor to "tip" element
maxreichmann 88fc20b
test(project): Add two cases for dynamic workspace globs
maxreichmann 7e3727f
refactor: Apply @codeworrior suggestion (make helper variable fully l…
maxreichmann 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
5 changes: 5 additions & 0 deletions
5
...ject/test/fixtures/collection.c.noCustomConfigForLibA/collection.a/library.c/package.json
This file contains hidden or 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,5 @@ | ||
| { | ||
| "name": "library.c", | ||
| "version": "1.0.0", | ||
| "description": "Simple SAPUI5 based library" | ||
| } |
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.
[suggestion only] I find the term
dependencymisleading / confusing. A resolution path is not necessarily the same as a dependency in the sense of the ui5.yaml. It might e.g. point to the openui5 repository as a whole, covering multiple dependencies.Suggestion: "Two resolutions in workspace '${this.getName()}' point to the same folder: ${resolutionPath} and ${earlierResolutionPath}"
To be able to name the earlier resolution path, the bookkeeping
seenAbsolutePathswould have to be changed maybe to a map (key: absolute path; value: original resolutionPath).But again, only a suggestion :-)
Uh oh!
There was an error while loading. Please reload this page.
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.
but what about more than two duplicate resolution paths? I would suggest:
"Two or more resolutions for '${path.basename(absolutePath)}' point to the same folder '${absolutePath}' in workspace '${this.getName()}'"
I guess, you also want to provide the full resolutionPath (what is written in the yaml)? Then we'd need to do some bookkeeping
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.
Your text proposal is acceptable. And yes, I thought that naming the original resolution path(s) would be helpful to the developer.