Skip to content
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

Add NativeBlobSoftDeleteDeletionDetectionPolicy to Microsoft.Azure.Search library #11435

Closed
xantari opened this issue Apr 19, 2020 · 21 comments
Closed
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. feature-request This issue requires a new behavior in the product in order be resolved. Search
Milestone

Comments

@xantari
Copy link

xantari commented Apr 19, 2020

Library or service name.

Microsoft.Auzre.Search

Is your feature request related to a problem? Please describe.

It appears that since the 09/2019 release you have had a public preview of "NativeBlobSoftDeleteDeletionDetectionPolicy" delete policy.

However the Microsoft.Azure.Search does not have an ability to define that deletion policy.

Information about Native blob soft delete is here: https://docs.microsoft.com/en-us/azure/search/search-howto-indexing-azure-blob-storage

@ghost ghost added needs-triage This is a new issue that needs to be triaged to the appropriate team. customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Apr 19, 2020
@AlexGhiondea AlexGhiondea added Client This issue points to a problem in the data-plane of the library. Search labels Apr 20, 2020
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Apr 20, 2020
@AlexGhiondea
Copy link
Contributor

/cc @tg-msft for our Track 2 library.

@xantari we have started work on a new version of the Search library -- we are going to consider including this for our upcoming library.

@tg-msft
Copy link
Member

tg-msft commented Apr 21, 2020

/cc @heaths as this would be on our data source APIs

@heaths
Copy link
Member

heaths commented Apr 21, 2020

Thanks for bringing this to my attention. The new packages do support it, but perhaps not in a very intuitive way. @brjohnstmsft, right now these are exposed as models that just need to exist in the JSON payload. I suggest we make them boolean properties like Data(Change|Deletion)DetectionPolicyEnabled. Perhaps we could drop "Policy" to shorten it, but I do like the symmetry with the documentation, such that searching for "DataDeletionDetectionPolicy", for example, yields a match.

@heaths heaths added this to the [2020] May milestone Apr 21, 2020
@heaths heaths self-assigned this Apr 21, 2020
@heaths
Copy link
Member

heaths commented Apr 21, 2020

Sorry, I see those classes should actually be abstract (see #9686) and I see that swagger does not actually define @odata.type "#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy". We can define one manually, but this should be in the Preview swagger as well if it's still supported.

@brjohnstmsft
Copy link
Member

@heaths I defer to @bleroy or @arv100kri for API design opinions in this area.

@heaths
Copy link
Member

heaths commented Apr 21, 2020

Blocked on Azure/azure-rest-api-specs#9160. This could be done without but requires taking over de/serialization completely instead of using generated code, which continues to evolve. At least, we can wait until time no longer allows for getting a change to swagger.

@heaths heaths modified the milestones: [2020] May, [2020] June Apr 30, 2020
@heaths
Copy link
Member

heaths commented May 26, 2020

@bleroy, @arv100kri do you have any timeframe for defining this type in swagger?

Sorry, I see those classes should actually be abstract (see #9686) and I see that swagger does not actually define @odata.type "#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy". We can define one manually, but this should be in the Preview swagger as well if it's still supported.

@heaths heaths added the Service Attention This issue is responsible by Azure service team. label May 26, 2020
@ghost
Copy link

ghost commented May 26, 2020

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @felixwa, @brjohnstmsft.

@heaths heaths removed the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label May 26, 2020
@heaths heaths modified the milestones: [2020] June, [2020] July May 27, 2020
@heaths
Copy link
Member

heaths commented May 27, 2020

Blocked on the service team, so punting to preview 5 since this is only additive.

@heaths
Copy link
Member

heaths commented Jun 19, 2020

It doesn't look like this is going to make it, so punting.

@heaths heaths modified the milestones: [2020] July, Backlog Jun 19, 2020
@brjohnstmsft brjohnstmsft removed the Service Attention This issue is responsible by Azure service team. label Jun 30, 2020
@ghost ghost added the needs-team-triage This issue needs the team to triage. label Jun 30, 2020
@brjohnstmsft
Copy link
Member

@heaths In cases like this where SDK changes are blocked on Swagger changes, I recommend putting the "Service Attention" tag only on the Swagger issue in azure-rest-api-specs. Otherwise, ownership isn't clear and our issue SLA metrics are affected. I've removed the tag since it's already present on the corresponding azure-rest-api-specs issue.

@heaths
Copy link
Member

heaths commented Jun 30, 2020

This is tracking Azure/azure-rest-api-specs#9160 which is both in that repo and has the "Service Attention" tag. This is to complete our work once done.

@AlexGhiondea AlexGhiondea removed the needs-team-triage This issue needs the team to triage. label Jul 8, 2020
@jsquire jsquire added the feature-request This issue requires a new behavior in the product in order be resolved. label Jul 21, 2020
@jennifermarsman
Copy link
Contributor

This has been merged into Track 2 SDK. PR: Azure/azure-rest-api-specs#10308 @heaths can this issue be closed?

@heaths
Copy link
Member

heaths commented Aug 26, 2020

Yes. Thanks for the reminder. Support for this will be in the Azure.Search.Documents package.

@heaths heaths closed this as completed Aug 26, 2020
@david-brink-talogy
Copy link

@heaths , did this get included in Azure.Search.Documents? I see no use of the phrase NativeBlobSoftDeleteDeletionDetectionPolicy anywhere in https://github.com/Azure/azure-sdk-for-net.

Shouldn't it be here with SoftDeleteColumnDeletionDetectionPolicy:
https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/search/Azure.Search.Documents/src/Generated/Models

@Mohit-Chakraborty
Copy link
Contributor

Mohit-Chakraborty commented Oct 4, 2021

@jennifermarsman, @jadrefke - the update to the REST spec was reverted a few weeks after it was added and it has been like that since.

Are there plans to add it back?

@Mohit-Chakraborty
Copy link
Contributor

Mohit-Chakraborty commented Dec 8, 2021

We don't have immediate plans to expose this functionality via the SDK. Will update this issue once we add it.
Closing the issue for now.

cc: @gmndrg, @dereklegenzoff

@xantari
Copy link
Author

xantari commented Dec 8, 2021

Is there a separate issue I should monitor to keep an eye on this since this issue was closed?

@gmndrg
Copy link

gmndrg commented Dec 8, 2021 via email

@a2741890
Copy link

Is the Azure.Search.Document still being updated? The last beta version released was in November 2021.

@gmndrg
Copy link

gmndrg commented Jul 11, 2022

Hello @a2741890, yes, please check https://www.nuget.org/packages/Azure.Search.Documents/#versions-body-tab You can see the latest beta versions and the latest was out 4 days ago.

image

The original thread is already closed. For new threads, please submit a new issue. Thank you.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. feature-request This issue requires a new behavior in the product in order be resolved. Search
Projects
None yet
Development

No branches or pull requests