#5727 Command for fixing discussion instances in trackers with moved tickets

v1.0.0
closed
nobody
General
2015-08-20
2013-02-01
No

Write a paster command to fix discussions for trackers messed up by buggy 'ticket move' feature.

The bug in 'ticket move' feature was fixed in [#5691], [#5708]. Command should fix the existing issues caused by that bug.

Related

Tickets: #5691
Tickets: #5708
Tickets: #5727
Tickets: #5903

Discussion

  • Igor Bondarenko - 2013-02-01

    Created #264: [#5727] Command for fixing discussion instances in trackers with moved tickets (2cp)

     

    Related

    Tickets: #5727

  • Igor Bondarenko - 2013-02-01
    • status: open --> in-progress
     
  • Dave Brondsema

    Dave Brondsema - 2013-02-01

    Since this will be a one-off script, I don't think it needs to be a proper "command" but can be a script in scripts/migrations/

     
  • Igor Bondarenko - 2013-02-04

    Already done it as a command, but I think [#5730] would affect this to, so we can change it to a script when making changes related to [#5730], if it's necessary.

     

    Related

    Tickets: #5730

  • Dave Brondsema

    Dave Brondsema - 2013-02-04

    It's not a big deal, if you already have it done as a command that's fine.

     
  • Chris Tsai - 2013-02-05
    • labels: 42cc --> 42cc, support, p2
     
  • Igor Bondarenko - 2013-02-06

    Closed #264. allura:je/42cc_5727

    You can run command as follows:

    $ cd ForgeTracker
    $ paster fix-discussion /var/local/allura/Allura/production.ini project_name_or_id
    

    If you omit project_name_or_id then command will run for all projects.

     
  • Igor Bondarenko - 2013-02-06
    • status: in-progress --> code-review
     
  • Dave Brondsema

    Dave Brondsema - 2013-02-11
    • qa: Dave Brondsema
    • milestone: limbo --> forge-backlog
     
  • Dave Brondsema

    Dave Brondsema - 2013-02-12

    Minor performance note: looping through all the projects with a regular loop has issues on a very large database of projects, should use chunked_find. Doesn't matter in this case since we are just going to run it for specific projects, but noting it for the future.

     
  • Dave Brondsema

    Dave Brondsema - 2013-02-12
    • status: code-review --> validation
    • milestone: forge-backlog --> forge-feb-22
     
  • Igor Bondarenko - 2013-02-13

    Ok, I'll keep it in mind.

     
  • Dave Brondsema

    Dave Brondsema - 2013-02-13
    • status: validation --> closed
     

Log in to post a comment.