Skip to content

Conversation

carols10cents
Copy link
Member

This adds a table for storing pending crate owner invitations and a backend route for listing the current user's invitations.

I'll probably merge this later today if no one has time to review so that @natboehm can build off of this tomorrow :)

@vignesh-sankaran
Copy link
Contributor

I'm not going to have the time to review this, I do like how you've split out the tests into owners.rs, keeps the file sizes smaller :)

@carols10cents
Copy link
Member Author

bors: r+

bors-voyager bot added a commit that referenced this pull request Sep 6, 2017
1040: Backend of deployable chunk 1 of owner invitations r=carols10cents

This adds a table for storing pending crate owner invitations and a backend route for listing the current user's invitations. 

I'll probably merge this later today if no one has time to review so that @natboehm can build off of this tomorrow :)
@bors-voyager
Copy link
Contributor

bors-voyager bot commented Sep 6, 2017

Build succeeded

@bors-voyager bors-voyager bot merged commit b098509 into rust-lang:master Sep 6, 2017
.filter(crate_owner_invitations::invited_user_id.eq(user_id))
.load::<CrateOwnerInvitation>(&*conn)?
.into_iter()
.map(|i| i.encodable(conn))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has an N+1 queries bug, doesn't it? Should we be selecting the crate and owner name along with the invitation?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops. I'll fix it before we start linking to this page.

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

Successfully merging this pull request may close these issues.

3 participants