aicam opened a new pull request, #5911:
URL: https://github.com/apache/texera/pull/5911
## Summary
Introduces a `datasets` resource-type prefix to dataset **logical file
paths**, changing the format from:
```
/ownerEmail/datasetName/versionName/fileRelativePath
```
to:
```
/datasets/ownerEmail/datasetName/versionName/fileRelativePath
```
This namespaces dataset paths under an explicit resource-type segment,
leaving room for other resource types in the future.
## Changes
**Backend (Scala)**
- `FileResolver`: strips a known `RESOURCE_TYPE_PREFIXES = Set("datasets")`
leading segment before parsing; docs/examples updated.
- `DatasetFileNode.fromLakeFSRepositoryCommittedObjects`: builds an
intermediate `datasets` directory node as the parent of owner nodes.
- `DatasetResource`: descends through the new `datasets` node to reach the
owner node; total-size calculation rooted at the `datasets` node.
- `FileResolverSpec`: test fixtures updated to the prefixed path format.
**Frontend (TypeScript)**
- `dataset-file.ts`: `parseFilePathToDatasetFile` strips the `datasets`
prefix if present; `parseDatasetFileToFilePath` emits it.
- `datasetVersionFileTree.ts`: relative-path extraction now strips four
leading segments (`datasets/owner/dataset/version`) instead of three.
## Notes
- Net diff is small (6 files, +45/-21). The branch was synced with the
latest `apache/main` (via the aicam fork's `main`) before opening this PR.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]