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

IRCContact use the DATA API #1323

Merged
merged 1 commit into from Nov 6, 2014
Merged

IRCContact use the DATA API #1323

merged 1 commit into from Nov 6, 2014

Conversation

delanne
Copy link
Contributor

@delanne delanne commented Nov 4, 2014

IRCContact consume 2 events:

  • ('builders', None, 'builds', None, 'new') => A build is started
  • ('builders', None, 'builds', None, 'finished') => A build is finished

When we will be able to get the list of changes for a build, the IRCContact must be updated.

@benallard
Copy link
Contributor

As I said on IRC, in the future, please try to split the features (tags + IRC) in multiple PR, or at least in multiple commits. That's making it more difficult for us to review, and hence for you. For instance, it would allow you to get the tag feature in without having to wait for the IRC, or the contrary, and then just push a smaller PR behind that links both.

Beside, the size of the commit does not make it easier to figure out which part of it broke that one feature once bisect told us it was this one ... That's another reason to prefer smaller 'focused' commits.

There is still a long road ahead toward a working master, I'm well aware about that, but that's the reason we have to be specially careful about what's coming in. In order not to need to implement stuff twice.

That being said, let's talk about the data model. I believe the question has to be asked about Tags table vs. Tags column (where the tags are stored as json string). Considering as column (and json) (as you did), do we want it to be nullable, or better not, and with a default of [], which would prevent us of doing extra check when reading it for instance. Considering as table, we probably want a n:n relationship where tags can be applied to multiple object kinds ...

sa2ajj pushed a commit that referenced this pull request Nov 6, 2014
IRCContact use the DATA API

See ticket:2714
@sa2ajj sa2ajj merged commit 918e6c0 into buildbot:master Nov 6, 2014
@sa2ajj
Copy link
Contributor

sa2ajj commented Nov 6, 2014

(Oops)

@sa2ajj
Copy link
Contributor

sa2ajj commented Nov 6, 2014

We probably will need to take it from here (new PRs), I somehow misread the comments.

sa2ajj pushed a commit that referenced this pull request Nov 6, 2014
This reverts commit 918e6c0, reversing
changes made to 38d595b.
@sa2ajj
Copy link
Contributor

sa2ajj commented Nov 6, 2014

Well, I reverted the PR.

@delanne You'd need to rebase the PR against latest master... Sorry about the mess.

@benallard
Copy link
Contributor

Hint: Take it as a chance to split your features ! ;)

delanne pushed a commit to delanne/buildbot that referenced this pull request Nov 7, 2014
sa2ajj pushed a commit that referenced this pull request Nov 7, 2014
Revert "Revert "Merge pull request #1323 from delanne/IRCContact""
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.

None yet

3 participants