Nuget package description missing in details view in Visual Studio
Summary
The enhancements to the nuget feed API requested in #273532 (closed) and implemented in !120100 (merged) seem not be be complete.
When consuming a nuget feed from GitLab in Visual Studio, the description of a package is not shown in the details view. It is only shown in the list view.
Steps to reproduce
Upload a nuget package with a description to a GitLab package registry. Browse the feed via Visual Studio and select a package. Look at the details view.
Example Project
https://gitlab.com/ccHanibal/nuget-test/-/packages
What is the current bug behavior?
There is a blank line where the description should be displayed in the details view (right panel) in Visual Studio:
The description is only shown in the list view (left panel).
What is the expected correct behavior?
I expect to see the description in both places (as seen with nuget.org feed):
To be absolutely precise I expect to see the summary in the list view and the description in the details view. Most clients will use the description as the summary when it is empty.
The test package has a description and a summary which are not identical:
So both summary and description should be shown in their designated places.
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
GitLab 16.2.1 and also verified at Gitlab.com
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true
)
(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)
(we will only investigate if the tests are passing)
Possible fixes
I think the problem originates from the fact, that the description is send as the "summary" field in the HTTP response rather than as the "description" field.
https://gitlab.com/api/v4/projects/48081112/packages/nuget/query:
Compared to the nuget.org response from https://azuresearch-usnc.nuget.org/query: