#1360 clean out old duplicate ticket subscriptions and ones without urls

v1.0.0
closed
sf-2 (994)
General
nobody
2015-08-20
2011-01-19
Wolf
No

about a third of the tickets listed don't link back to the ticket. Additionally, I have entries for some tickets duplicated. In the second case pictured below a duplicate is shown where one has a link, the other doesn't.

Get to your preferences by going to your profile (e.g., for me: https://sourceforge.net/u/yesjustwolf/profile/) and clicking the "Preferences" button in the left sidebar.

Related

Tickets: #1133

Discussion

  • Mark Ramm - 2011-01-19
    • milestone: backlog --> jan-31
     
  • Rick Copeland - 2011-01-24

    Timebox to 1

     
  • Rick Copeland - 2011-01-24
    • size: --> 1
     
  • John Hoffman - 2011-02-02
    • assigned_to: John Hoffmann
     
  • John Hoffman - 2011-02-04
    • summary: ticket link problems in subscription preferences --> clean out old duplicate ticket subscriptions and ones without urls
     
  • John Hoffman - 2011-02-04

    To try creating the problem:

    $ mongo pyforge
    
    > var foo = db.mailbox.findOne({artifact_title:'Ticket 1', type:'direct'})
    > delete foo._id
    > delete foo.artifact_url
    > delete foo.artifact_index_id
    > db.mailbox.save(foo)
    

    Then run the script:

    $ cd /var/local/allura/Allura
    $ paster script production.ini ../scripts/remove_duplicate_ticket_notifications.py test
    

    Sample output:

    Found 1 'Ticket 1' subs with for user '4d49bac57a1c962e0800009d'
       Keeping good subscription with a URL of '/p/test/bugs/1/'
    Found 1 'Ticket 2' subs with for user '4d49bac57a1c962e0800009d'
       Keeping good subscription with a URL of '/p/test/bugs/2/'
    Found 2 'Ticket 3' subs with for user '4d49bac57a1c962e0800009d'
       Keeping good subscription with a URL of '/p/test/bugs/3/'
       Found subscription with no artifact URL, deleting.
    Found 1 'Ticket 4' subs with for user '4d49bac57a1c962e0800009d'
       Keeping good subscription with a URL of '/p/test/bugs/4/'
    Found 2 'Ticket 5' subs with for user '4d4abc7a7a1c96772100004e'
       Keeping good subscription with a URL of '/p/test/bugs/5/'
       Found subscription with no artifact URL, deleting.
    
     
  • John Hoffman - 2011-02-07
    • status: open --> code-review
    • assigned_to: John Hoffmann --> Rick Copéland
     
  • Rick Copeland - 2011-02-07

    Updated branch, sent back to you for review of my changes and merge if the changes look good.

    • assigned_to: Rick Copéland --> John Hoffmann
     
  • John Hoffman - 2011-02-07
    • status: code-review --> closed
     
  • John Hoffman - 2011-02-11
    • status: closed --> validation
    • milestone: feb-10 --> limbo
     
  • Mark Ramm - 2011-03-16
    • size: 2 --> 2
    • milestone: limbo --> mar-17

    • status: validation --> closed

     

Log in to post a comment.