Repository-Policies is missing a delete api or darc command
Migrated from https://github.com/dotnet/core-eng/issues/10377
@meganaquinn wrote:
Currently the only way to delete repo policies from the database is doing it manually, which makes the scenario tests less robust. It may also be something that could be used from a product standpoint, but I don't know enough to know whether that's the case.
Relevant snips by Ricardo from a PR attempting to fix the issue:
The conflict is between the existing tests that use what I'm going to call base-name, and your upcoming changes that will use base-name-machine-name. Which due to the branch matching on substring to always find the base-name when looking for the other.
The long term fix should is probably a combination of a few things:
- Create an API + darc command to delete repository-policies
- Have the tests delete the repository-policies on cleanup.
- Implement JSON output for the get-repository-policies command so that it's easier to parse just the exact merge policy we're looking for.