Texera / texera

Collaborative Machine-Learning-Centric Data Analytics Using Workflows
https://texera.github.io
Apache License 2.0
160 stars 68 forks source link

Fix dataset APIs not fetching files shared by others correctly #2754

Closed bobbai00 closed 1 month ago

bobbai00 commented 1 month ago

This PR fixes the issue that when a dataset is shared by other users, the ownerEmail is incorrect, which make the file not resolvable.

This PR also improves the GET /datasets's expressiveness. It now has two flags:

  1. includeVersions: if set as true, the versions of each dataset will be queried and returned by the backend.
  2. includeFileNodes: if set as true, the versions and the file tree will be queried and returned

If both flags are set to be true, the return results are equivalent to just set includeFileNodes to be true