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

Trac #2660 [nine] buildrequests data API uses popBooleanFilter for non-booleans #1050

Merged
merged 5 commits into from Apr 15, 2014

Conversation

delanne
Copy link
Contributor

@delanne delanne commented Jan 16, 2014

  • added data fields 'branch', 'repository', 'codebase' for buildrequests.
    updated the doc
  • added resultSpec.popStringFilter (popStringFilter == popBooleanFilter)

http://trac.buildbot.net/ticket/2660

…r for non-booleans

 - added data fields 'branch', 'repository', 'codebase' for buildrequests.
   updated the doc
 - added resultSpec.popStringFilter (popStringFilter == popBooleanFilter)
…r for non-booleans

 - This commit implements the 3 dustin's comments:
   - process buildsetid with the eq operator in the DB API
   - implement popStringFilter (only pops an eq filter)
   - add type annotation in master/docs/developer/database.rst
@delanne
Copy link
Contributor Author

delanne commented Jan 22, 2014

that's weird, the validate.sh script succeeds locally for: 36bd304

@djmitche
Copy link
Member

It's a docs build failure, fixed in 7ba629d. Is this ready to go, then?

@delanne
Copy link
Contributor Author

delanne commented Jan 22, 2014

thanks dustin. Yes it's ready to go.

repository = resultSpec.popBooleanFilter('repository')
bsid = resultSpec.popFilter('buildsetid', 'eq')
if bsid:
bsid = bsid[0]
Copy link
Member

Choose a reason for hiding this comment

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

This looks good, although I wonder if popOneFilter would be even more convenient.

…r for non-booleans

 - omit filters 'branch' and 'repository'
 - use popOneFilter instead of popFilter for bsid
@delanne
Copy link
Contributor Author

delanne commented Jan 24, 2014

validate.sh succeeds locally for: cb004e0
the issue raises by travis seems to be unrelated to this changeset.

@@ -35,6 +35,9 @@ def db2data(self, dbdict):
'claimed': dbdict['claimed'],
'claimed_at': dbdict['claimed_at'],
'claimed_by_masterid': dbdict['claimed_by_masterid'],
'branch': dbdict['branch'],
'repository': dbdict['repository'],
'codebase': dbdict['codebase'],
Copy link
Member

Choose a reason for hiding this comment

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

The most recent changes look good, but this is still adding these three fields to the buildrequest data type, and they don't have much meaning since there can be multiple sourcestamps with different codebaess attached to a buildrequest.

@delanne
Copy link
Contributor Author

delanne commented Jan 29, 2014

I'll remove these 3 fields.

…r for non-booleans

 - remove fieds: branch, repository, codebase
@djmitche
Copy link
Member

There's still a bunch of code, docs, and tests in here adding branch/repository/codebase for buildrequests.

@delanne
Copy link
Contributor Author

delanne commented Feb 13, 2014

oups, I missed that. I'll try to have a look asap.

@tardyp
Copy link
Member

tardyp commented Mar 15, 2014

ping.. looks like this one is nearly finished

@delanne
Copy link
Contributor Author

delanne commented Mar 15, 2014

Indeed, but I have some much work. I'll try to finish this asap. I hope I can have a look at this next week. I'm really sorry for the delay.

Xavier

Sent from my iPhone

On 15 mars 2014, at 19:33, Pierre Tardy notifications@github.com wrote:

ping.. looks like this one is nearly finished


Reply to this email directly or view it on GitHub.

@djmitche
Copy link
Member

I, at least, can't complain about others being busy. But please do keep this somewhere on your to-do list :)

…r for non-booleans

 - remove code in docs/tests about branch/repository/codebase for buildrequests
@djmitche
Copy link
Member

Looks great -- thanks for finding time!

@djmitche djmitche merged commit fcb7a08 into buildbot:nine Apr 15, 2014
djmitche added a commit that referenced this pull request Apr 15, 2014
@delanne delanne deleted the 9/trac2660 branch September 24, 2014 09:29
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