Re: [bodhi] [Need guidance]
by Luke Macken
Hi Praveen,
On Thu, Apr 26, 2012 at 04:03:10PM +0530, Praveen Kumar wrote:
> Hi,
>
> Today I saw about easyfix on devel-mailing list, I am interested to know more
> about https://fedorahosted.org/bodhi/ticket/639 , like from where can I start
> and what scripting language it need ..etc. I am familiar with bodhi as a user
> but have no idea about implementation.
This ticket requires a little bit of Python knowledge. Sadly, it won't
be easy to test these changes locally, but I will be able to review the
patch and test it in our staging environment upon completion.
So this change is going to require modifying Bodhi's Masher to add the
number of days each update has spent in testing to the updates-testing
digest[0]. Thankfully, bodhi's PackageUpdate objects already have a
days_in_testing property[1], so all that needs to be done is to fetch
the PackageUpdate object for each update during the digest creation, and
add the value PackageUpdate.days_in_testing to it.
Feel free to ask me any questions you have, from Python basics to bodhi
specifics.
Thanks,
luke
[0]: https://fedorahosted.org/bodhi/browser/bodhi/masher.py#L830
[1]: https://fedorahosted.org/bodhi/browser/bodhi/model.py#L1158
11 years, 11 months