-
Notifications
You must be signed in to change notification settings - Fork 19
[Package Renames 5] Transfer package popularity #769
Conversation
653afdb
to
49cac2c
Compare
096025d
to
e2864f1
Compare
I am thinking that there is an edge case, but as I am not sure about the whole picture here, like how Azure Search actually works, so I just list it here: |
Great thing to be thinking about. Given renames are on the package registration level, deletes would only cascade to the rename record if we release the package registration, I think. Given this option is unchecked by default and only available if all versions are deleted, I think it would very rarely occur. This begs the question, if all versions are deleted, should we clear the rename? |
Yup, you are correct that this will produce a transfer of
The search pipeline has a "hidden" V3 resource called the version list, which is used by
The popularity transfer feature does little for packages with low download counts. I doubt we will need to clean "dangling" renames on "small" packages. Now say that we delete all versions of a popular package but keep its registration... This seems like a truly exceptional scenario, which is hard to anticipate. We may want to evaluate keeping/removing the popularity transfers on a case-by-case basis. |
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.
Thanks for the added tests. Looks good.
Update tests Update comments Update comments Update Db2AzureSearchCommandFacts Update new package registration producer facts Add test Add tests for download transferrer Rename method Fix test Don't save popularity transfers for now Save popularity transfers data file Initial More tests Add tests Updates Clean Fix Undo change Undo change Add asserts Fix whitespace Tweak Bring test to live branch Start integration tests Update Remove old test Fix build Clean Fix whitespace
e1a61e8
to
52c7513
Compare
This updates
auxiliary2azuresearch
to push download changes whenever a popularity transfer changes, or, whenever a download change affects a popularity transfer.Previous changes: #765, #766, #767, and #768
Config changes: https://nuget.visualstudio.com/NuGetMicrosoft/_git/NuGetDeployment/pullrequest/1402?_a=overview
Part of NuGet/NuGetGallery#7898