[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2018-07-08 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the update, John. For future readers, here's a link to the discussion on the roundup-devel list: https://sourceforge.net/p/roundup/mailman/roundup-devel/thread/20180708014103.75EE34C0A5C%40itserver6.localdomain/

[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2018-07-08 Thread John Rouillard
John Rouillard added the comment: I found this same issue in other places in roundup. Thanks to Joseph Myers (jsm) for explaining what I was seeing on the roundup-devel mailing list. There is a fix for it now in roundup that will be released as version 1.6. You don't have to make any change

[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2018-06-19 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks Berker! ___ PSF Meta Tracker ___ ___ Tracker-dis

[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2018-06-06 Thread Berker Peksag
Berker Peksag added the comment: Implemented Nick's suggestion in https://hg.python.org/tracker/python-dev/rev/ad6158d8414f ___ PSF Meta Tracker ___

[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2018-06-06 Thread Berker Peksag
Berker Peksag added the comment: Ah, I've definitely missed the "You can instantiate your own instances of Random to get generators that don’t share state." part. Thanks! ___ PSF Meta Tracker

[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2018-06-06 Thread Nick Coghlan
Nick Coghlan added the comment: Huh, I'd never noticed how easy that documentation is to miss: it's in the preamble text at the start of https://docs.python.org/3/library/random.html I filed https://bugs.python.org/issue33783 to suggest giving it some proper Sphinx markup. _

[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2018-06-06 Thread Berker Peksag
Berker Peksag added the comment: Thank you again for taking a look at this, John. I didn't think about using random.Random() to be honest, thank you Nick! Is there a reason why random.Random() is undocumented in the random module documentation? __

[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2018-06-06 Thread Nick Coghlan
Nick Coghlan added the comment: Note that a potential variation of the new approach is that rather than reseeding the default instance, the Action could create and seed a new random.Random() instance every time. It would be slightly slower, but I don't think this gets hit often enough for th

[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2018-06-03 Thread John Rouillard
John Rouillard added the comment: Hi Berker: In message <1527918822.93.0.81473610881.issue...@psf.upfronthosting.co.za>, Berker Peksag writes: >Berker Peksag added the comment: > >I've just committed John's suggested approach in > https://hg.python.org/tracker/python-dev/rev/9e1d65b4927c but

[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2018-06-02 Thread Berker Peksag
Berker Peksag added the comment: Ezio has just deployed 9e1d65b4927c and I've confirmed that it works on bugs.python.org. Closing as 'resolved'. Thanks for the report, Cheryl. -- status: testing -> resolved ___ PSF Meta Tracker

[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2018-06-01 Thread Berker Peksag
Berker Peksag added the comment: I've just committed John's suggested approach in https://hg.python.org/tracker/python-dev/rev/9e1d65b4927c but it needs to be deployed by bugs.p.o maintainers. Thank you, again! > I'll keep poking at it to try to figure out why random seems to be > losing sta

[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2018-05-31 Thread Berker Peksag
Berker Peksag added the comment: Thank you for taking a look at this again, John. I will incorporate your suggestions and prepare a patch this weekend. ___ PSF Meta Tracker ___

[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2018-05-31 Thread John Rouillard
John Rouillard added the comment: Hi all: I took another look at this. I suggest replacing the current class with: class RandomIssueAction2(Action): def handle(self): """Redirect to a random open issue.""" issue = self.context['context'] # use issue._klass to get a

[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2017-11-11 Thread John Rouillard
John Rouillard added the comment: Hi all: In message <2017153201.827854C03FF@itserver6.localdomain>, John Rouillard writes: >In message <1510376704.3.0.213398074469.issue...@psf.upfronthosting.co.za>, >Berker Peksag writes: >>Thank you for your quick response and for your detailed analysis,

[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2017-11-11 Thread John Rouillard
John Rouillard added the comment: Hello Berker: In message <1510376704.3.0.213398074469.issue...@psf.upfronthosting.co.za>, Berker Peksag writes: >Thank you for your quick response and for your detailed analysis, John. > >I will attach a patch to implement your suggestions. > >> My thought was

[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2017-11-10 Thread Berker Peksag
Berker Peksag added the comment: Thank you for your quick response and for your detailed analysis, John. I will attach a patch to implement your suggestions. > My thought was that the random function wasn't so random. The new 1.5.1+ > (what will be 1.6) roundup uses more random data than 1.4.2

[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2017-11-10 Thread John Rouillard
John Rouillard added the comment: Hi Berker: In message <1510257288.61.0.213398074469.issue...@psf.upfronthosting.co.za>, Berker Peksag writes: >Hi John, do you know a workaround to make the random issue >extension work again? I pulled the source for the bugs.python.org tracker and took a look

[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2017-11-09 Thread Berker Peksag
Berker Peksag added the comment: Hi John, do you know a workaround to make the random issue extension work again? -- nosy: +rouilj ___ PSF Meta Tracker _

[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2017-11-05 Thread Berker Peksag
Berker Peksag added the comment: >From >http://www.roundup-tracker.org/docs/customizing.html#extensions-adding-capabilities-to-your-tracker All files from this dir are loaded when tracker instance is created, [...] It's not clear to me when this was added, but it seems like this is the ca

[Tracker-discuss] [issue644] 'Random Issue' Button isn't working

2017-10-23 Thread Cheryl Sabella
New submission from Cheryl Sabella : The 'Random Issue' button used to show a new issue every time it was clicked, but for the past few weeks, the issue returned only changes once a day. -- messages: 3407 nosy: csabella priority: bug status: unread title: 'Random Issue' Button isn't wor