# Development

**URL:** https://meta.discourse.org/c/dev/7.md?page=104

[Latest](https://meta.discourse.org/latest.md) · [Categories](https://meta.discourse.org/categories.md) · [Tags](https://meta.discourse.org/tags.md)

**Page:** 105

---

## [Zero Downtime Upgrades](https://meta.discourse.org/t/zero-downtime-upgrades/120673)

<div class="topic-metadata">

**Author:** [@Eduardo\_Poleo](https://meta.discourse.org/u/Eduardo_Poleo)\
**Replies:** 1\
**Last updated:** [September 11, 2019, 12:11pm UTC](https://meta.discourse.org/t/zero-downtime-upgrades/120673 "2019-09-11T12:11:29Z")

</div>

Hello there, We are wondering if zero downtime upgrades are possible. We are using the discourse\_docker installation using separate web and data containers, so the issue is more around the old application code (v2.1) ru…

---

## [Like/Unlike a post returns 404](https://meta.discourse.org/t/like-unlike-a-post-returns-404/128242)

<div class="topic-metadata">

**Author:** [@Vishal\_Kaushik](https://meta.discourse.org/u/Vishal_Kaushik)\
**Replies:** 4\
**Last updated:** [September 11, 2019, 9:58am UTC](https://meta.discourse.org/t/like-unlike-a-post-returns-404/128242 "2019-09-11T09:58:05Z")

</div>

I am trying to like/unlike a post via API but it returns 404, “errors”:\[“The requested URL or resource could not be found.”\] and sometimes it executes successfully. What could be the possible reason for this?

---

## [Accepting arguments for method defined by add\_to\_class](https://meta.discourse.org/t/accepting-arguments-for-method-defined-by-add-to-class/128184)

<div class="topic-metadata">

**Author:** [@markvanlan](https://meta.discourse.org/u/markvanlan)\
**Replies:** 3\
**Last updated:** [September 10, 2019, 3:31pm UTC](https://meta.discourse.org/t/accepting-arguments-for-method-defined-by-add-to-class/128184 "2019-09-10T15:31:07Z")

</div>

Instance methods can be added to classes by plugins using add\_to\_class, defined as: def add\_to\_class(class\_name, attr, &block) reloadable\_patch do |plugin| klass = class\_name.to\_s.classify.constantize rescue class…

---

## [Discourse Event Bus Question](https://meta.discourse.org/t/discourse-event-bus-question/128107)

<div class="topic-metadata">

**Author:** [@Marcy](https://meta.discourse.org/u/Marcy)\
**Replies:** 4\
**Last updated:** [September 9, 2019, 11:52pm UTC](https://meta.discourse.org/t/discourse-event-bus-question/128107 "2019-09-09T23:52:06Z")

</div>

I’m sorry if this is wrong area but does Discourse fire an event when the profile JSON file is requested over HTTP? https://meta.discourse.org/u/Marcy.json for example.

---

## [Private repo on Github](https://meta.discourse.org/t/private-repo-on-github/128018)

<div class="topic-metadata">

**Author:** [@verilog15](https://meta.discourse.org/u/verilog15)\
**Replies:** 1\
**Last updated:** [September 9, 2019, 12:02pm UTC](https://meta.discourse.org/t/private-repo-on-github/128018 "2019-09-09T12:02:29Z")

</div>

Hello all :slight\_smile:, A small Github question if you may. I have a repo on Github with a plugin for Discourse. This repo is private. I would like to insert it into the yml file but because the repo is private, it …

---

## [Most clicked external links?](https://meta.discourse.org/t/most-clicked-external-links/127742)

<div class="topic-metadata">

**Author:** [@olegbc1](https://meta.discourse.org/u/olegbc1)\
**Replies:** 2\
**Last updated:** [September 6, 2019, 4:02pm UTC](https://meta.discourse.org/t/most-clicked-external-links/127742 "2019-09-06T16:02:13Z")

</div>

I want to put together a list of most clicked external links that we have on our forum. Which table/column in discourse database has the count that I can pull from? Thanks!

---

## [Add a direct button to canned replies in editor](https://meta.discourse.org/t/add-a-direct-button-to-canned-replies-in-editor/127659)

<div class="topic-metadata">

**Author:** [@bartv](https://meta.discourse.org/u/bartv)\
**Replies:** 3\
**Last updated:** [September 6, 2019, 11:17pm UTC](https://meta.discourse.org/t/add-a-direct-button-to-canned-replies-in-editor/127659 "2019-09-06T23:17:04Z")

</div>

I use the ‘canned replies’ plugin quite often. They’re now 2 clicks deep (gear → canned replies); is there a way to customise my editor toolbar to have direct access, while still respecting user permissions?

---

## [Reverse Proxy Assets](https://meta.discourse.org/t/reverse-proxy-assets/127706)

<div class="topic-metadata">

**Author:** [@KnightYoshi](https://meta.discourse.org/u/KnightYoshi)\
**Replies:** 1\
**Last updated:** [September 5, 2019, 4:13pm UTC](https://meta.discourse.org/t/reverse-proxy-assets/127706 "2019-09-05T16:13:05Z")

</div>

I have a reverse proxy set up for Discourse example.com/forum which works (somewhat), but the assets (JS and CSS) are loaded from the domain root, not relative to the /forum path. I couldn’t find anything about it in the…

---

## [Logging in discourse using API - using discourse as API server only](https://meta.discourse.org/t/logging-in-discourse-using-api-using-discourse-as-api-server-only/68938)

<div class="topic-metadata">

**Author:** [@Tech\_Domain](https://meta.discourse.org/u/Tech_Domain)\
**Replies:** 4\
**Last updated:** [September 5, 2019, 3:20pm UTC](https://meta.discourse.org/t/logging-in-discourse-using-api-using-discourse-as-api-server-only/68938 "2019-09-05T15:20:45Z")

</div>

I want to login discourse using API. But there is no such API in docs.discourse.org. I checked many questions regarding Q1, but I am surprised none of them correctly answer (other than ‘check the network logs and figur…

---

## [Using a hbs file as the template for widget](https://meta.discourse.org/t/using-a-hbs-file-as-the-template-for-widget/121420)

<div class="topic-metadata">

**Author:** [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Replies:** 3\
**Last updated:** [September 3, 2019, 11:37am UTC](https://meta.discourse.org/t/using-a-hbs-file-as-the-template-for-widget/121420 "2019-09-03T11:37:15Z")

</div>

As this commit makes it possible to use hbs style code as a widget template, and that being a simpler and better way of doing things than generating HTML using the hyper script object. I was thinking if it is possible(o…

---

## [Rails plugins vs discourse plugins - what is the difference?](https://meta.discourse.org/t/rails-plugins-vs-discourse-plugins-what-is-the-difference/127109)

<div class="topic-metadata">

**Author:** [@spirobel](https://meta.discourse.org/u/spirobel)\
**Replies:** 8\
**Last updated:** [August 30, 2019, 6:14pm UTC](https://meta.discourse.org/t/rails-plugins-vs-discourse-plugins-what-is-the-difference/127109 "2019-08-30T18:14:38Z")

</div>

I want to make a plugin that needs its own tables. So its a good idea to have migration and model generators, because manually copying them from the main app dir will lead to errors and is just not very convenient. So I …

---

## [Important question about importing users](https://meta.discourse.org/t/important-question-about-importing-users/127140)

<div class="topic-metadata">

**Author:** [@ramjke](https://meta.discourse.org/u/ramjke)\
**Replies:** 0\
**Last updated:** [August 29, 2019, 4:55pm UTC](https://meta.discourse.org/t/important-question-about-importing-users/127140 "2019-08-29T16:55:11Z")

</div>

Hello, community. I’ve been learning and remaking an import script for my site on Livestreet CMS for a couple of weeks. I have already finished writing the script, it remains to clean it up and make a pull request. I ha…

---

## [Bizarre import issue -- Mysql query returning PG::Result?](https://meta.discourse.org/t/bizarre-import-issue-mysql-query-returning-pg-result/126852)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 2\
**Last updated:** [August 28, 2019, 9:36pm UTC](https://meta.discourse.org/t/bizarre-import-issue-mysql-query-returning-pg-result/126852 "2019-08-28T21:36:27Z")

</div>

This has me stumped. Here is mysql\_query: def mysql\_query(sql) begin #puts "Query: \\n#{sql}" @client.query(sql, cache\_rows: true) rescue Exception =\> ex begin ActiveRecord::Base.conne…

---

## [Get the current theme](https://meta.discourse.org/t/get-the-current-theme/126994)

<div class="topic-metadata">

**Author:** [@rimian](https://meta.discourse.org/u/rimian)\
**Replies:** 2\
**Last updated:** [August 28, 2019, 9:07am UTC](https://meta.discourse.org/t/get-the-current-theme/126994 "2019-08-28T09:07:35Z")

</div>

My plugin embeds a third party iframe and I need to pass it some css style declarations so it renders properly in the current theme. On the dark theme, it renders black text on a dark background. What is the best way fo…

---

## [Expand discourse with plugins or create a web app?](https://meta.discourse.org/t/expand-discourse-with-plugins-or-create-a-web-app/126990)

<div class="topic-metadata">

**Author:** [@28Tom](https://meta.discourse.org/u/28Tom)\
**Replies:** 3\
**Last updated:** [August 28, 2019, 8:24am UTC](https://meta.discourse.org/t/expand-discourse-with-plugins-or-create-a-web-app/126990 "2019-08-28T08:24:09Z")

</div>

Hi ! I’d like to present corporate customers who sign up in my forum a better way to present themselves per example an extended user profile, adding photo galleries, adding Status.. I also would like to integrate an off…

---

## [Using tag-chooser in a plugin](https://meta.discourse.org/t/using-tag-chooser-in-a-plugin/124656)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 21\
**Last updated:** [August 26, 2019, 12:18pm UTC](https://meta.discourse.org/t/using-tag-chooser-in-a-plugin/124656 "2019-08-26T12:18:31Z")

</div>

I’m working on a plugin that will assign a default tag to new topics created in a category. The below code “works” if I enter tag names separated by “|”, so “tag1|tag2” works. (I can hardly believe it! But I digress.) \<…

---

## [How make multiselect fields?](https://meta.discourse.org/t/how-make-multiselect-fields/126617)

<div class="topic-metadata">

**Author:** [@Dev\_Work](https://meta.discourse.org/u/Dev_Work)\
**Replies:** 5\
**Last updated:** [August 27, 2019, 12:56pm UTC](https://meta.discourse.org/t/how-make-multiselect-fields/126617 "2019-08-27T12:56:55Z")

</div>

On the pages /admin/dashboard/reports screenshot /admin/reports/time\_to\_first\_response example multiselect fields -

---

## [Category serializer modification is behaving differently in 2.4.0](https://meta.discourse.org/t/category-serializer-modification-is-behaving-differently-in-2-4-0/126612)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**Replies:** 10\
**Last updated:** [August 27, 2019, 9:13am UTC](https://meta.discourse.org/t/category-serializer-modification-is-behaving-differently-in-2-4-0/126612 "2019-08-27T09:13:49Z")

</div>

After upgrading to Release v2.4.0.beta2 · discourse/discourse · GitHub, almost all of our plugins (i.e. topic list previews, events, locations, ratings etc) have been experiencing an issue with the add\_to\_serializer plug…

---

## [Are there any changes to the CSS connection in the plugins?](https://meta.discourse.org/t/are-there-any-changes-to-the-css-connection-in-the-plugins/126350)

<div class="topic-metadata">

**Author:** [@Stranik](https://meta.discourse.org/u/Stranik)\
**Replies:** 7\
**Last updated:** [August 26, 2019, 11:32am UTC](https://meta.discourse.org/t/are-there-any-changes-to-the-css-connection-in-the-plugins/126350 "2019-08-26T11:32:00Z")

</div>

Perhaps a local problem, but the css styles in the plugins did not connect. latest-release +320 ActionView::Template::Error (undefined method \`find\_plugin\_css\_assets' for Discourse:Module) /var/www/discourse/app/views/…

---

## [Getting Topic Information](https://meta.discourse.org/t/getting-topic-information/126269)

<div class="topic-metadata">

**Author:** [@sfoster](https://meta.discourse.org/u/sfoster)\
**Replies:** 2\
**Last updated:** [August 23, 2019, 12:05pm UTC](https://meta.discourse.org/t/getting-topic-information/126269 "2019-08-23T12:05:43Z")

</div>

Newbie question: In your Developer’s Guide (Developing Discourse Themes & Theme Components), you explain how to to get information about a user by using api.getCurrentUser(); and then console.log(user). Simple enough. H…

---

## [Some basic questions about discourse and rails](https://meta.discourse.org/t/some-basic-questions-about-discourse-and-rails/66852)

<div class="topic-metadata">

**Author:** [@Alavi1412](https://meta.discourse.org/u/Alavi1412)\
**Replies:** 3\
**Last updated:** [July 29, 2017, 11:28am UTC](https://meta.discourse.org/t/some-basic-questions-about-discourse-and-rails/66852 "2017-07-29T11:28:48Z")

</div>

I worked with discourse about 10 months and created some plugin for this. but I have still some questions that I didn’t find the answers during these 10 months and searching in web. So I decided to ask them here Because …

---

## [Running server side ruby code after an event](https://meta.discourse.org/t/running-server-side-ruby-code-after-an-event/126562)

<div class="topic-metadata">

**Author:** [@csmu](https://meta.discourse.org/u/csmu)\
**Replies:** 1\
**Last updated:** [August 22, 2019, 7:50pm UTC](https://meta.discourse.org/t/running-server-side-ruby-code-after-an-event/126562 "2019-08-22T19:50:22Z")

</div>

Context: We resort categories alphabetically manually after categories are changed. We’d like that to happen automatically after a category is saved. How do you watch for the category saved event on discourse from the s…

---

## [Where to check Exception of plugin](https://meta.discourse.org/t/where-to-check-exception-of-plugin/126095)

<div class="topic-metadata">

**Author:** [@livc](https://meta.discourse.org/u/livc)\
**Replies:** 2\
**Last updated:** [August 22, 2019, 1:02pm UTC](https://meta.discourse.org/t/where-to-check-exception-of-plugin/126095 "2019-08-22T13:02:13Z")

</div>

Hi, I use a plugin containing rescue Exception =\> e feed.exceptions \<\< e.message \<\< '&#10;' end I want to know where to check the exceptions? A log file or other place? How to enter tha…

---

## [Unable to override template using plugin](https://meta.discourse.org/t/unable-to-override-template-using-plugin/126453)

<div class="topic-metadata">

**Author:** [@anant2](https://meta.discourse.org/u/anant2)\
**Replies:** 0\
**Last updated:** [August 21, 2019, 10:50pm UTC](https://meta.discourse.org/t/unable-to-override-template-using-plugin/126453 "2019-08-21T22:50:39Z")

</div>

Hi there! I’m using the latest beta version of Discourse and trying to create a plugin similar to: https://github.com/muhlisbc/discourse-custom-activity-summary-template The plugin gets activated (I can see it in admi…

---

## [How are post IDs assigned? (and other /posts.json questions)](https://meta.discourse.org/t/how-are-post-ids-assigned-and-other-posts-json-questions/126046)

<div class="topic-metadata">

**Author:** [@Michal\_Mazurek](https://meta.discourse.org/u/Michal_Mazurek)\
**Replies:** 3\
**Last updated:** [August 20, 2019, 6:18am UTC](https://meta.discourse.org/t/how-are-post-ids-assigned-and-other-posts-json-questions/126046 "2019-08-20T06:18:20Z")

</div>

I’m working on https://mentionme.app and I want to gather the latest content from publicly available Discourse forums. For that I’ve picked the /posts.json API endpoint. I noticed that this endpoint returns a seemingly …

---

## [Seed or API calls to create test users](https://meta.discourse.org/t/seed-or-api-calls-to-create-test-users/126025)

<div class="topic-metadata">

**Author:** [@alank](https://meta.discourse.org/u/alank)\
**Replies:** 6\
**Last updated:** [August 19, 2019, 11:50am UTC](https://meta.discourse.org/t/seed-or-api-calls-to-create-test-users/126025 "2019-08-19T11:50:36Z")

</div>

In my development and testing I’m running a Discourse instance (Docker Discourse from Bitnami) and it fulfills most of my API testing for our API service which talks to Discourse, however I now need to test search using /…

---

## [Make an external http request from discourse](https://meta.discourse.org/t/make-an-external-http-request-from-discourse/126054)

<div class="topic-metadata">

**Author:** [@Thecave3](https://meta.discourse.org/u/Thecave3)\
**Replies:** 9\
**Last updated:** [August 17, 2019, 1:32pm UTC](https://meta.discourse.org/t/make-an-external-http-request-from-discourse/126054 "2019-08-17T13:32:42Z")

</div>

Hi, I’m thinking of replacing an existing website with discourse. The problem is the backend of that site contains a shared logic even for a mobile app and specific actions for the site. So, having to keep an active se…

---

## [Exclude website title from topic \<title\> attribute](https://meta.discourse.org/t/exclude-website-title-from-topic-title-attribute/125979)

<div class="topic-metadata">

**Author:** [@Mike\_Gehrhardt](https://meta.discourse.org/u/Mike_Gehrhardt)\
**Replies:** 1\
**Last updated:** [August 17, 2019, 9:09am UTC](https://meta.discourse.org/t/exclude-website-title-from-topic-title-attribute/125979 "2019-08-17T09:09:26Z")

</div>

Hi all, we would like to exclude the title of the whole page (like myforum.com) from the of a topic. At the moment it is possible to use ’ topic page title includes category’ to exclude the category and we want to do t…

---

## ["password too short" on vbulletin import due to migratepasssword plugin](https://meta.discourse.org/t/password-too-short-on-vbulletin-import-due-to-migratepasssword-plugin/125164)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 1\
**Last updated:** [August 16, 2019, 3:29pm UTC](https://meta.discourse.org/t/password-too-short-on-vbulletin-import-due-to-migratepasssword-plugin/125164 "2019-08-16T15:29:46Z")

</div>

I’m running a vbulletin import. I’ve got a few users that are failing because the password is too short. I’m confused beacuse though the vbulletin importer does do this: password = \[user\["password"\].presence, user\["s…

---

## [Creating a plugin to increase the thumbnail image size of onebox whitelabels?](https://meta.discourse.org/t/creating-a-plugin-to-increase-the-thumbnail-image-size-of-onebox-whitelabels/125974)

<div class="topic-metadata">

**Author:** [@othhughes](https://meta.discourse.org/u/othhughes)\
**Replies:** 0\
**Last updated:** [August 16, 2019, 11:30am UTC](https://meta.discourse.org/t/creating-a-plugin-to-increase-the-thumbnail-image-size-of-onebox-whitelabels/125974 "2019-08-16T11:30:31Z")

</div>

Hey, Love the onebox feature, but I’m keen to create a plugin which increases the unfurled image size within a discourse post for our domain. Before I do this, I thought I would check if anyone had a plugin template fo…

[Previous page](https://meta.discourse.org/c/dev/7.md?page=103)

[Next page](https://meta.discourse.org/c/dev/7.md?page=105)
