[IMP] save committer date at creation

also, add a create_date filter in the build search view.  It allows
interesting statistics to be displayed in the graph view.
This commit is contained in:
Gery Debongnie 2014-07-24 10:17:17 +02:00
parent 9300bd8cd8
commit 41796383c7
2 changed files with 2 additions and 0 deletions

View File

@ -277,6 +277,7 @@ class runbot_repo(osv.osv):
'name': sha, 'name': sha,
'author': author, 'author': author,
'subject': subject, 'subject': subject,
'date': dateutil.parser.parse(date[:19])
} }
Build.create(cr, uid, build_info) Build.create(cr, uid, build_info)

View File

@ -185,6 +185,7 @@
<filter string="Status" domain="[]" context="{'group_by':'state'}"/> <filter string="Status" domain="[]" context="{'group_by':'state'}"/>
<filter string="Result" domain="[]" context="{'group_by':'result'}"/> <filter string="Result" domain="[]" context="{'group_by':'result'}"/>
<filter string="Start" domain="[]" context="{'group_by':'job_start'}"/> <filter string="Start" domain="[]" context="{'group_by':'job_start'}"/>
<filter string="Create Date" domain="[]" context="{'group_by':'create_date'}"/>
</group> </group>
</search> </search>
</field> </field>