Skip to content
This repository was archived by the owner on Jun 1, 2019. It is now read-only.

Support multiple projects #57

Merged

Conversation

jmatraszek
Copy link
Contributor

  1. Will require to drop the db before running migrations (the-big-red-button will not work at that time (as it expects different db structure) so either use the previously compiled version or drop directly from psql by TRUNCATE commits; TRUNCATE releases;).
  2. This does no include any support for frontend. Frontend will work as it used to work, but it will assume all commits are Rust's.
  3. Added contributors table, which is still not used (to decide if we want to use it in the future, but probably yes). But since the project was renamed maybe we should stick with authors, which sound more git-ish.
  4. Tested it with a couple of small projects and everything worked well, but more testing is MUCH APPRECIATED.
  5. The implementation is quite naive in some places, but this can be improved in the future (didn't want to wait with this pull request).

Copy link
Member

@steveklabnik steveklabnik left a comment

Choose a reason for hiding this comment

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

This looks awesome! Thanks a ton. really just one question about the NOT NULLs.

CREATE TABLE contributors (
id SERIAL NOT NULL,
name VARCHAR,
email VARCHAR
Copy link
Member

Choose a reason for hiding this comment

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

should these two also be NOT NULL?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed!

pub fn assign_commits(log: &slog::Logger, release_name: &str, previous_release: &str, path: &str) {
pub fn assign_commits(log: &slog::Logger, release_name: &str, previous_release: &str, release_project_id: i32, path: &str) {
// Could take the connection as a parameter, as problably
// it's already established somewhere...
Copy link
Member

Choose a reason for hiding this comment

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

yeah; i'm totally okay with doing this this way for now; i want to clean up all the connection stuff. we'll get there.

@jmatraszek
Copy link
Contributor Author

@steveklabnik Changed the migration & merged current master, so it does not have merge conflicts.

@steveklabnik
Copy link
Member

Thanks a ton! Not going to merge just yet as I'd like to test locally first; but this looks awesome ❤️

@steveklabnik
Copy link
Member

I am in the process of deploying this right now, thanks so much @jmatraszek !

@steveklabnik steveklabnik merged commit 0187056 into rust-lang-nursery:master Jan 30, 2017
@jmatraszek jmatraszek deleted the support_multiple_projects branch January 31, 2017 23:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants