Skip to content

Minor: Worker files - List file as part of list_directory #1844

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

Merged
merged 10 commits into from
Jul 24, 2025

Conversation

Nanashi-lab
Copy link
Contributor

@Nanashi-lab Nanashi-lab commented Jul 16, 2025

/closes #1761

Changes
for function list_directory -> Rather than outputing NotaDirectory Error, this now Display File(FileSystemNode)
If file is requested at the endpoint, it displays the the meta details of the file rather than displaying Bad file error

This is not the most needed change, especially with new CLI command making it easier to browse files.
I did this first and then the Cli, so. Good to learn atleast.
I update the integration test to test file node as well.

The Cli changes are independent, and will work without this.

@Nanashi-lab Nanashi-lab marked this pull request as ready for review July 17, 2025 05:23
@Nanashi-lab
Copy link
Contributor Author

@mschuwalow I am still not done, there is a small bug in how file gets passed through worker-executor and then worker-service

@Nanashi-lab Nanashi-lab marked this pull request as draft July 20, 2025 11:16
oneof result {
ListDirectorySuccessResponse success = 1;
WorkerError error = 2;
ListFileSystemNodeResponse success = 1;
Copy link
Contributor Author

@Nanashi-lab Nanashi-lab Jul 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have left this flatten, repeated FileSystemNode. This is for service, user facing, worker executor has seperated File and Directory. By this time, the structure is already converted into vec, and this is passed to both http endpoint and grpc service. Trying to pass whole structure with both File() and Directory(), requires unnecessary code in both http endpoint and
service, as executor grpc needs to be converted into service grpc.

forwarding.rs -> flattens the values

@Nanashi-lab Nanashi-lab marked this pull request as ready for review July 20, 2025 13:32
@mschuwalow mschuwalow enabled auto-merge (squash) July 23, 2025 09:54
auto-merge was automatically disabled July 23, 2025 10:23

Head branch was pushed to by a user without write access

@Nanashi-lab
Copy link
Contributor Author

Test pass locally, tested it

@mschuwalow mschuwalow merged commit 4f0e3c5 into golemcloud:main Jul 24, 2025
60 of 66 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Worker file Endpoints
2 participants