<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ticket search results</title><link>https://forge-allura.apache.org/p/allura/tickets/</link><description>You searched for labels:"forgechat"</description><language>en</language><lastBuildDate>Thu, 12 Mar 2015 22:33:14 -0000</lastBuildDate><item><title>Installed ForgeChat in bootstrap.py has blank channel </title><link>https://forge-allura.apache.org/p/allura/tickets/3400/</link><description>When `paster setup-app` is run, the ForgeChat-created `ChatChannel` on the default project has a `channel` of ''. While this works for the first time, if say, more than one project were to be created in `setup-app`, this would fail.

The error is a little hard to debug, as it will occur only when the session is being flushed, as a DuplicateKeyError, with no reference to ChatChannel. I thought it was about another Tool altogether (downloads) which happened to show up next in `entry_points` and flush.

Presumably, this is because the `options` created for the ForgeChat in `allura.model.Project.install_app` do not contain a `channel` value.

Possible solutions (not sure which one makes the most sense):

- remove the `unique_index` on ChatChannel
- Allow Tools to specify a `default_override_options` callback so that an app can make something up
- Have ForgeChat specify a default value of, say, `#&lt;projectname&gt;` if one isn't in `options`
- Allow Tools to specify `install_on_setup` (default `True`) if ForgeChat shouldn't be installed by default 


</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">karsten</dc:creator><pubDate>Thu, 12 Mar 2015 22:33:14 -0000</pubDate><guid>https://forge-allura.apache.org/p/allura/tickets/3400/</guid></item></channel></rss>