Nugetgallery: owner of package not visible in search

Created on 21 Nov 2016  路  9Comments  路  Source: NuGet/NuGetGallery

There seems to be a window of time for which the package owner does not appear on the search.

image

Search Priority - 3 Bug

All 9 comments

When did you take that screenshot and what did you search for? I just searched for both "DataGen" and "karolhabczyk" and I was able to see the author.

I think it's a short window of time. My theory is:

  1. Package gets uploaded to gallery
  2. Feed to catalog consumes the new package
  3. Catalog to lucene adds the package to the lucene index
  4. Search service loads the index, merging in current owners.json
  5. (some window of time goes by)
  6. The owners.json file is updated and the owner of the uploaded package is added.
  7. Search service loads the index, merging in current owners.json

During step 5 and 6, the package will appear in the search service but will have no owner. Note that this can only happen when a new package ID is introduced, meaning that ID will not be in owners.json.

One possible fix is to have the initial owner set in feed to catalog and owners.json will take care of ownership changes.

Looks like the owners.json job runs once per day, so we are looking at potentially 1 day of a package missing an owner in the search service.

Another fix would be to have the catalog to lucene job fetch the owner of packages not in owners.json and add it to the Lucene document. Then, update the search service to prefer owners in owners.json and fall back to the Lucene owner field.

Owners.json is updated once a day. This is by design.

Being updated once per day and showing a null owner are two different things. Job frequency can stay the same while still showing a good value.

I also ran into this issue with a newly published package. Showing a "null value" for the owner in search results made me initially think something was wrong with my .nuspec or NuGet package. Also made me think that I possibly had a run-away package. Had to double check to make sure I was still the owner in my profile. Glad to know it wasn't my fault. :sunglasses:

chrome_1435

:chocolate_bar: :cookie: :lollipop: Ronald Jenkees - Stay Crunchy

@bchavez , any ideas for how to make the UI less confusing when the owner is unknown? Perhaps omitting the "by:"?

Hi @skofman1, hope you're doing really well. :sunglasses:

For sure, omitting the "by:" would be a great start.

Some other cool ideas:

  • If you have a bool you can check for a very first release, maybe keep around that "This package isn't indexed in search yet." warning that comes up when publishing new packages. No harm in keeping that message up for 24 hours for super-new packages? Especially, if that bool can append some extra wording that says, "If your package namespace is new, owner information won't be fully indexed until 24 hours."

  • An entirely separate warning about owner info (and other things that might be related to super-new packages) that sticks around for 24h would work too.

:briefcase: :necktie: "Taking care of business every day... Taking care of business every way..."

We omitted the "by: " when fixing the issue here: https://github.com/NuGet/NuGetGallery/issues/6136
Should be less confusing now.
Closing this issue. Feel free to reopen if you think this fix is insufficient.

Was this page helpful?
0 / 5 - 0 ratings