This has been implemented on the test server (minus automated choice of title), but I have not moved the code over because I was worried that it may place too great a load on the database.
The code traverses the thread and for each node that needs re-titling, executes an Update (to change the title) and an Insert (to update the node history).
Take for example 'Algorithm wanted' (481987) which at the moment has 83 replies; clicking the retitle button would execute 84 Updates and 84 Inserts. Even if the re-titling could be done using a single Update (I think we would need subqueries to do that), there's no escaping the Inserts if we want edit histories.
For any interested pmdevs, the re-titler is node 324584 on the test server.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.