Skip to content

Conversation

@seanmcc-msft
Copy link
Member

Continued from #17054

@ghost ghost added the Storage Storage Service (Queues, Blobs, Files) label Mar 23, 2021
``` yaml
input-file:
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/bc0a3368a4e8ff55ed69dc498e69437ec92cf0b1/specification/storage/data-plane/Microsoft.StorageDataLake/stable/2020-02-10/DataLakeStorage.json
- C:\Users\seanmcc\git\azure-rest-api-specs\specification\storage\data-plane\Microsoft.StorageDataLake\stable\2020-06-12\DataLakeStorage.json
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO change this one Azure/azure-rest-api-specs#11741 has merged

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

@seanmcc-msft
Copy link
Member Author

/azp run net - storage - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Comment on lines 2724 to 2727
List<ListBlobsIncludeItem> include = new List<ListBlobsIncludeItem>
{
ListBlobsIncludeItem.Deleted
};
Copy link
Contributor

Choose a reason for hiding this comment

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

this doesn't seem to be passed anywhere.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed.

/// A <see cref="RequestFailedException"/> will be thrown if
/// a failure occurs.
/// </remarks>
public virtual Response<DataLakePathClient> RestorePath(
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be UndeletePath (to be consistent with UndeleteFileSystem)?

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed.

@seanmcc-msft
Copy link
Member Author

/azp run net - storage - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Comment on lines +2726 to +2734
response = await BlobFileSystemRestClient.ListBlobHierarchySegmentAsync(
delimiter: null,
prefix: path,
marker: continuation,
maxResults: maxResults,
include: null,
timeout: null,
cancellationToken: cancellationToken)
.ConfigureAwait(false);
Copy link
Contributor

Choose a reason for hiding this comment

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

I find it odd that we're not passing showOnly anywhere here but I can see showOnly being correctly sent in the recording. How does it work?

Could you add test where we have 1-2 not-deleted files and 1-2 deleted files and make sure normal listing and list deleted return right entries?

Copy link
Member Author

Choose a reason for hiding this comment

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

showOnly is hardcoded in swagger.

This API is only used to list deleted paths, normal listing is not an option. Normal listing is accomplished with DataLakeFileSystemClient.GetPaths().

I can expand the unit test for this API.

Copy link
Contributor

Choose a reason for hiding this comment

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

can showOnly be unhardcoded ? or generated api name changed? this will be confusing to anybody revisiting this code in the future.

Copy link
Member Author

Choose a reason for hiding this comment

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

We will be throwing this all away in less than 6 months when we migrate Data Lake to the Blob endpoint. When I add this functionality to the Blob swagger, it will not be hardcoded.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please add a comment in the code explaining the situation then.

/// <summary>
/// Gets a prefix, relative to the delimiter used to get the paths.
/// </summary>
public string Prefix { get; internal set; }
Copy link
Member Author

Choose a reason for hiding this comment

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

@kasobol-msft, since we are not exposing the delimiter parameter, I don't think it makes sense for us to include Prefix and IsPrefix on PathHierarchyDeletedItem, since they will always be null and false. It might make sense to remove this class all together, and have PathDeletedSegment have an IEnumerable<PathDeletedItem> instead.

Copy link
Contributor

Choose a reason for hiding this comment

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

makes sense.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed.

@seanmcc-msft
Copy link
Member Author

/azp run net - storage - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@seanmcc-msft
Copy link
Member Author

/azp run net - storage - tests

@seanmcc-msft
Copy link
Member Author

/azp run net - storage - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@seanmcc-msft
Copy link
Member Author

/azp run net - storage - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@seanmcc-msft seanmcc-msft merged commit 99b8f68 into Azure:master Mar 25, 2021
@seanmcc-msft seanmcc-msft deleted the feature/storage/hnsSoftDelete2 branch March 25, 2021 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Storage Storage Service (Queues, Blobs, Files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants