Moodle Community Sites

Create two new fileds "Affected Branches" and "Fixedfor Branches"

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Component/s: tracker.moodle.org
  • Labels:
    None

Description

Right now we have a lot of filters (searches) based in the "Affected versions" and "Fixfor versions". While that's nice it's a bit heavy to edit all those filters each time we release new Moodle versions.

Analyse the possibility and implement two new custom fields that will group those versions into well know moodle branches, surely by getting the two first integer in the versions so:

1.9.1 ==> MOODLE_19_STABLE
1.9.2 ==> MOODLE_19_STABLE
2.0.1 ==> MOODLE_20_STABLE
a.b ==> null

Ciao

PD: I'll install them in test tracker soon. Just polishing them a bit.

Activity

Hide
Eloy Lafuente (stronk7) added a comment -

Must support multiple branches, be indexed and searchable, obviously.

Show
Eloy Lafuente (stronk7) added a comment - Must support multiple branches, be indexed and searchable, obviously.
Hide
Eloy Lafuente (stronk7) added a comment -

Wow, pretty easy (once you get the whole Maven2 dev environment properly installed).

Attached there is one standard JIRA plugin containing two custom fields:

  • Moodle Affected Branches: Shows the branches affected by one issue, given their affected versions.
  • Moodle Fixed Branches: Shows the branches fixed for one issue, given their fixfor versions

Both are displayed in the Issue page and are searchable, so all filters can be switched from using versions to branches.

They are installed in test tracker right now, plz, play with them.

To install it in production:

  • Copy it to /home/jira/jira/edit-webapp/WEB-INF/lib
  • build.sh
  • copy /home/jira/ROOT.xml to /usr/local/tomcat/conf/Catalina/localhost/
  • JIRA will be autodeployed in 1-2 mins.
  • Go to Administration -> Custom Fields and add them.
  • Got to Administration -> Indexing and rebuild indexes (10mins aprox).
Show
Eloy Lafuente (stronk7) added a comment - Wow, pretty easy (once you get the whole Maven2 dev environment properly installed). Attached there is one standard JIRA plugin containing two custom fields:
  • Moodle Affected Branches: Shows the branches affected by one issue, given their affected versions.
  • Moodle Fixed Branches: Shows the branches fixed for one issue, given their fixfor versions
Both are displayed in the Issue page and are searchable, so all filters can be switched from using versions to branches. They are installed in test tracker right now, plz, play with them. To install it in production:
  • Copy it to /home/jira/jira/edit-webapp/WEB-INF/lib
  • build.sh
  • copy /home/jira/ROOT.xml to /usr/local/tomcat/conf/Catalina/localhost/
  • JIRA will be autodeployed in 1-2 mins.
  • Go to Administration -> Custom Fields and add them.
  • Got to Administration -> Indexing and rebuild indexes (10mins aprox).
Hide
Eloy Lafuente (stronk7) added a comment -

The whole Maven project in now in CVS:

http://cvs.moodle.org/contrib/tools/jira/moodle_branches_customfields/

GPL, of course

Show
Eloy Lafuente (stronk7) added a comment - The whole Maven project in now in CVS: http://cvs.moodle.org/contrib/tools/jira/moodle_branches_customfields/ GPL, of course
Hide
Michael Blake added a comment -

nice addition eloy!

Show
Michael Blake added a comment - nice addition eloy!
Hide
Eloy Lafuente (stronk7) added a comment -

One +1 (MD/Michael) required to install this in prod tracker and upgrade all filters to use them.

Ciao

Show
Eloy Lafuente (stronk7) added a comment - One +1 (MD/Michael) required to install this in prod tracker and upgrade all filters to use them. Ciao
Hide
Eloy Lafuente (stronk7) added a comment -

Should I install this in production? And upgrade filters to use them?

Show
Eloy Lafuente (stronk7) added a comment - Should I install this in production? And upgrade filters to use them?
Hide
Martin Dougiamas added a comment -

Oh cool!

Yes please +1!

Show
Martin Dougiamas added a comment - Oh cool! Yes please +1!
Hide
Eloy Lafuente (stronk7) added a comment -

Scheduled for this weekend. JK informed about downtime. Ciao

Show
Eloy Lafuente (stronk7) added a comment - Scheduled for this weekend. JK informed about downtime. Ciao
Hide
Eloy Lafuente (stronk7) added a comment -

Installed in production + indexes rebuilt. Going to edit all the "filter manager" filters to use the new fields. Ciao

Offtopic: I had some problems upgrading, JK, because the ROOT.xml file in /home/jira (the one that is copied to tomcat) was pointing to old (3.13.2) jira database). I've fixed them (the prod and test ones).

Show
Eloy Lafuente (stronk7) added a comment - Installed in production + indexes rebuilt. Going to edit all the "filter manager" filters to use the new fields. Ciao Offtopic: I had some problems upgrading, JK, because the ROOT.xml file in /home/jira (the one that is copied to tomcat) was pointing to old (3.13.2) jira database). I've fixed them (the prod and test ones).
Hide
Eloy Lafuente (stronk7) added a comment -

Done. All filters have been updated to use the new "branches" custom fields. resolving as fixed, ciao

Show
Eloy Lafuente (stronk7) added a comment - Done. All filters have been updated to use the new "branches" custom fields. resolving as fixed, ciao
Hide
Eloy Lafuente (stronk7) added a comment -

Adding version 4.0 compatible of the moodle branches custom fields. Hacked with far from elegant trick (needed due to problems in Jira SDK).

Seems to be working here in 4.0 (4.1 compatible).

Ciao

Show
Eloy Lafuente (stronk7) added a comment - Adding version 4.0 compatible of the moodle branches custom fields. Hacked with far from elegant trick (needed due to problems in Jira SDK). Seems to be working here in 4.0 (4.1 compatible). Ciao

People

Dates

  • Created:
    Updated:
    Resolved: