-
Notifications
You must be signed in to change notification settings - Fork 33
Support multiple projects #57
Support multiple projects #57
Conversation
…support_multiple_projects
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.
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 |
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.
should these two also be NOT NULL
?
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!
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... |
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.
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.
@steveklabnik Changed the migration & merged current master, so it does not have merge conflicts. |
Thanks a ton! Not going to merge just yet as I'd like to test locally first; but this looks awesome ❤️ |
I am in the process of deploying this right now, thanks so much @jmatraszek ! |
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 frompsql
byTRUNCATE commits; TRUNCATE releases;
).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 withauthors
, which sound more git-ish.