mozilla-cit / discourse-bugzilla

Discourse plugin to make it play nice with Bugzilla
Mozilla Public License 2.0
2 stars 2 forks source link

Add bug status to link title #4

Open LeoMcA opened 9 years ago

LeoMcA commented 9 years ago

Information shown should be the same as firebot: <status>, <assignee> - <title>

LeoMcA commented 9 years ago

I'm probably playing with fire here.

LeoMcA commented 9 years ago

I've tried a slightly different way of implementing this, but it still doesn't seem to be working. I get an error from the server:

PrettyText::JavaScriptError (Object #<Object> has no method 'ajax'):
  lib/pretty_text.rb:157:in `block in markdown'
  lib/pretty_text.rb:322:in `block in protect'
  lib/pretty_text.rb:320:in `synchronize'
  lib/pretty_text.rb:320:in `protect'
  lib/pretty_text.rb:138:in `markdown'
  lib/pretty_text.rb:190:in `cook'
  app/models/post_analyzer.rb:12:in `cook'
  app/models/post_analyzer.rb:104:in `cooked_document'
  app/models/post_analyzer.rb:49:in `raw_mentions'
  app/models/post.rb:154:in `block (2 levels) in <class:Post>'
  lib/validators/post_validator.rb:40:in `max_mention_validator'
  lib/validators/post_validator.rb:10:in `validate'
  lib/post_creator.rb:251:in `save_post'
  lib/post_creator.rb:74:in `block in create'
  lib/distributed_mutex.rb:21:in `synchronize'
  lib/distributed_mutex.rb:5:in `synchronize'
  lib/post_creator.rb:137:in `block in transaction'
  lib/post_creator.rb:131:in `transaction'
  lib/post_creator.rb:69:in `create'
  app/controllers/posts_controller.rb:80:in `create_post'
  app/controllers/posts_controller.rb:65:in `create'
  lib/middleware/anonymous_cache.rb:119:in `call'
  config/initializers/quiet_logger.rb:10:in `call_with_quiet_assets'
  config/initializers/silence_logger.rb:26:in `call'
  lib/middleware/unicorn_oobgc.rb:95:in `process_client'