Currently spacelift_space_by_path data source only allows querying for spaces using full paths starting with root.
With this PR it will be possible to specify only a part of the path (not start it with root) in which case we will assume that we shall start the search from the space that the stack, the spacelift run is for, is in.
Type of change
[ ] Bug fix (non-breaking change that fixes an issue)
[x] New feature (non-breaking change that adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation (non-breaking change that adds documentation)
Development
[ ] Lint rules pass locally
[ ] The code changed/added as part of this pull request has been covered with tests
[ ] All tests related to the changed code pass in development
[ ] Examples for new resources and data sources have been added
[ ] Default values have been documented in the description (e.g., "Dummy: (Boolean) Blah blah. Defaults to false.)
[ ] If the action fails that checks the documentation: Run go generate to make sure the docs are up to date
Code review
[ ] This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached
[ ] Pull Request is no longer marked as "draft"
[ ] Reviewers have been assigned
[ ] Changes have been reviewed by at least one other engineer
Description of the change
Currently
spacelift_space_by_path
data source only allows querying for spaces using full paths starting with root. With this PR it will be possible to specify only a part of the path (not start it with root) in which case we will assume that we shall start the search from the space that the stack, the spacelift run is for, is in.Type of change
Development
false
.)go generate
to make sure the docs are up to dateCode review