-
Notifications
You must be signed in to change notification settings - Fork 127
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
Conversation
@mschuwalow I am still not done, there is a small bug in how file gets passed through worker-executor and then worker-service |
oneof result { | ||
ListDirectorySuccessResponse success = 1; | ||
WorkerError error = 2; | ||
ListFileSystemNodeResponse success = 1; |
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.
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
Head branch was pushed to by a user without write access
Test pass locally, tested it |
/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.