-
Notifications
You must be signed in to change notification settings - Fork 644
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
VerifyPackage page with more information #2242
Conversation
</h4> | ||
<div style="position: relative"> | ||
<ul> | ||
@foreach (var frameworkAssembly in Model.FrameworkAssemblies) |
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.
Can you pivot this so that it's grouped by the Supported Framework first, with the list of framework assemblies inside those groups? That would be consistent with how the Dependencies are grouped.
<ul id="packageDetails" style="border-bottom: 1px solid gray; margin-bottom: 1em;"> | ||
<li>@ReadOnlyField("Package ID", "Id", Model.Id)</li> | ||
<li>@ReadOnlyField("Version", "Version", Model.Version)</li> | ||
<li>@ReadOnlyField("MinClient Version", "MinClientVersion", Model.MinClientVersion.ToStringSafe())</li> |
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.
Could you change the display name for this field to "Minimum NuGet Client Version" ?
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.
Ha - I just clicked to add this exact request and then GitHub dynamically rendered it in. :-) So, 👍
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.
Fixed.
For the language question - if nothing is specified everything "works as expected" - sample nuget package without any language specified: https://www.nuget.org/packages/this.Log-NLog.VB.Sample/ |
Awesome stuff. I say |
Open Issues:
|
Ok - I changed the DevelopmentDependency Property like the RequireLicenseAcceptance Property: But to get this into the database I also need to change the PackageEdit Entity and the EditPackageService - but in the first step this field needs to be in the database. Any convention how to create a new migration? |
@robertmuehsig can't merge the PR as is as I'm getting an exception due to the missing DevelopmentDependencyProperty (exception thrown at Would be good if you could fix that one. Even better if you could also tackle this related issue to make it editable :) Happy to take it in once fixed. |
@robertmuehsig Also, in order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. https://cla2.dotnetfoundation.org. |
@robertmuehsig, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR. |
Will look at it, but if I remember correctly the edit DevDependency needed a DB Migration, that's why it was just "read-only", but I will check it an leave a comment on the other issue. Thanks for looking into it. |
So - I had time to look again at this PR and now I remember the problem. @xavierdecoster I guess you are seeing this exception: I added a new property "DeploymentDependency" like "RequireLicence" but I need a to apply a database migration, because the actual package is not changed (as far as I know) - the edit stuff is saved in the database. As questioned above (and with the new NuGet.org already in the making) : Should I just make a new database migration for the new property or should I leave the property as "read only"? |
@robertmuehsig that is exactly the issue I'm seeing :) I guess you mean "DevelopmentDependency" instead of "DeploymentDependency", right? |
Woops - yes - DevelopmentDependency ;) |
(fyi) @robertmuehsig Just in case you want to create a migration: from the package manager console, just run |
Ay! Just give me a hint if I should create the migration and finish this PR + the fix for the editable DevDependency and I try my best. Database changes are sometimes nasty for the deployment-team, so I didn't want to rush too quickly. |
@robertmuehsig I'll probably take care of the deployment, thanks for thinking of me :) |
👍 Then I will try my best not to screw up the NuGet.org database ;) |
Ok, it seems I have found all missing pieces and it seems to work in my branch: Tested with the LibLog (DevDependency == true) package https://www.nuget.org/packages/LibLog/4.1.1 I needed two migrations, because in the first run I didn't had the DevelopmentDependency in the Package Entity, but I guess this could be merged. |
Any chance you can squash your commits and rebase on |
Sure, but my Git-Voodoo is too low. Could you give me a hint how to do that? |
Is the migration required only for the 'DevelopmentDependency'? Can we leave it out (sorry being super risk averse). |
@yishaigalatzer Yes, as far as I know you track the "editable" fields (and the values) in the database. In the original PR (or from another issue? It's a long time ago) my first try was just to leave it as read-only, but - just like the other fields - it should be editable, that's why I created the DB migrations. |
Woops... wrong button ;) |
Let's make it read-only for now? If we'd make it editable we'd need a fix on the jobs-side of things as well. We can revisit making it editable later. |
Ok - I will try my best. |
Thanks @robertmuehsig - you rock! |
@robertmuehsig I like this PR. I would be great if the last things get fixed! Need help on this? |
Hi @304NotModified - as you might have seen: I didn't found any time to work on this. Because my Git Skills are very low, my plan was to create a new PR with the newest dev-source and make all changes except for the part with the needed Database Migration. Idea:
I think you could reuse most of the code - there are only a couple of changes I made for the DevDependency database stuff. If you would like to work on this - go ahead :) |
FYI, It's really easy to squash commits in tortoisegit! |
With the recent merge of #2834 I think this PR can be closed. The "editable" DevDependency is a greater issue, because it needs database changes. |
As reported in this issue #1570 I added a few more package details on the verify package page:
(ignore the glimpse bar - I choose a poor screen capture plugin ;))
Example with this package https://www.nuget.org/packages/Microsoft.Net.Http/2.2.27-beta results in:
https://www.nuget.org/packages/MvvmLight/
And one "devdependency" package https://www.nuget.org/packages/StyleCop.MSBuild/: