Skip to content
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

Make sure Users are associated with the package they upload #6

Closed
haacked opened this issue Aug 10, 2011 · 4 comments
Closed

Make sure Users are associated with the package they upload #6

haacked opened this issue Aug 10, 2011 · 4 comments

Comments

@haacked
Copy link
Contributor

haacked commented Aug 10, 2011

I need to be able to query the set of packages that a user owns.

@haacked
Copy link
Contributor Author

haacked commented Aug 10, 2011

And vice versa, the set of owners for a given package.

@half-ogre
Copy link
Contributor

Right now, users are added to the Owners collection of a PackageRegistration. There isn't ownership at the actual package level. I expect you can easily query off of the parent registration, though:

packageRepo.GetAll()
    .Include(p => p.PackageRegistration)
    .Include(p => p.PackageRegistration.Owners)
    .Where(p => p.PackageRegistration.Owners.Contains(theUser))

@haacked
Copy link
Contributor Author

haacked commented Aug 10, 2011

Excellent! So looking at a given package, that should get me the info I need. :)

@half-ogre
Copy link
Contributor

@haacked, you should be able to do all that you need with the existing entities and relationships. Please re-open if you find you need something.

johnataylor added a commit that referenced this issue Aug 5, 2013
lyndaidaii pushed a commit that referenced this issue Dec 14, 2020
# This is the 1st commit message:

update markdig to 0.22.0

# The commit message #2 will be skipped:

# updated markdig.signed.dll in third party props

# The commit message #3 will be skipped:

# test with newversion package with updated markdig version

# The commit message #4 will be skipped:

# version test

# The commit message #5 will be skipped:

# update the version of nuget.services

# The commit message #6 will be skipped:

# a

# The commit message #7 will be skipped:

# migrate to markdig

# The commit message #8 will be skipped:

# rm legacy to test markdown with markdig

# The commit message #9 will be skipped:

# update function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants