# Development

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

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

**Page:** 116

---

## [Getting error message 403 on post request](https://meta.discourse.org/t/getting-error-message-403-on-post-request/100169)

<div class="topic-metadata">

**Author:** [@Edwin\_Mhoy\_Silva](https://meta.discourse.org/u/Edwin_Mhoy_Silva)\
**Replies:** 2\
**Last updated:** [October 22, 2018, 3:07pm UTC](https://meta.discourse.org/t/getting-error-message-403-on-post-request/100169 "2018-10-22T15:07:17Z")

</div>

Hey. I´m building a custom CMS to our discourse platform. I’m having some trouble when trying to post something. I’m building it in angular and the programing language is typescript. Here is a picture of my function …

---

## [Inserting HTML on Account Dropdown via JS](https://meta.discourse.org/t/inserting-html-on-account-dropdown-via-js/100105)

<div class="topic-metadata">

**Author:** [@Judd\_Cobler1](https://meta.discourse.org/u/Judd_Cobler1)\
**Replies:** 0\
**Last updated:** [October 21, 2018, 5:38pm UTC](https://meta.discourse.org/t/inserting-html-on-account-dropdown-via-js/100105 "2018-10-21T17:38:50Z")

</div>

Hey there! I’m wondering how I can insert html on the my account dropdown via JS (would need to be called when the account dropdown is loaded). I use api.onPageChange((url) =\> { for a few things but I need a different ev…

---

## [Docker dev database ownership and strange path problems](https://meta.discourse.org/t/docker-dev-database-ownership-and-strange-path-problems/75926)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 8\
**Last updated:** [October 19, 2018, 5:22pm UTC](https://meta.discourse.org/t/docker-dev-database-ownership-and-strange-path-problems/75926 "2018-10-19T17:22:44Z")

</div>

There are a couple snags with docker\_dev last I tried. The biggest is that I couldn’t connect to the database without entering the container and editing the postgres config file. I was also unable to get reset\_db to wor…

---

## [Free Ruby tutorials from Upcase](https://meta.discourse.org/t/free-ruby-tutorials-from-upcase/99906)

<div class="topic-metadata">

**Author:** [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)\
**Replies:** 0\
**Last updated:** [October 18, 2018, 7:51pm UTC](https://meta.discourse.org/t/free-ruby-tutorials-from-upcase/99906 "2018-10-18T19:51:33Z")

</div>

A series of high quality Ruby/Rails tutorials (and lots more) are now available for free :tada: https://forum.upcase.com/

---

## [Adding search bar to "After Header" banner](https://meta.discourse.org/t/adding-search-bar-to-after-header-banner/99647)

<div class="topic-metadata">

**Author:** [@Clark\_Varner](https://meta.discourse.org/u/Clark_Varner)\
**Replies:** 1\
**Last updated:** [October 18, 2018, 6:40pm UTC](https://meta.discourse.org/t/adding-search-bar-to-after-header-banner/99647 "2018-10-18T18:40:00Z")

</div>

Hello friends, I have created a banner that will go in the “After Header” section of our discourse page here at the company. This banner functions as kind of a landing page / table of contents for the website. However, …

---

## [Slow tags query when alphabetical sort is disabled](https://meta.discourse.org/t/slow-tags-query-when-alphabetical-sort-is-disabled/78133)

<div class="topic-metadata">

**Author:** [@SimonWu](https://meta.discourse.org/u/SimonWu)\
**Replies:** 16\
**Last updated:** [October 17, 2018, 5:49pm UTC](https://meta.discourse.org/t/slow-tags-query-when-alphabetical-sort-is-disabled/78133 "2018-10-17T17:49:03Z")

</div>

Hi, I found a slow query during the test. SELECT COUNT(topics.id) AS count\_topics\_id, tags.id, tags.name AS tags\_id\_tags\_name FROM "tags" LEFT JOIN topic\_tags ON tags.id = topic\_tags.tag\_id LEFT JOIN topics ON topics.…

---

## [Discourse API -- Additive or also breaking?](https://meta.discourse.org/t/discourse-api-additive-or-also-breaking/99639)

<div class="topic-metadata">

**Author:** [@boredomdenied](https://meta.discourse.org/u/boredomdenied)\
**Replies:** 1\
**Last updated:** [October 17, 2018, 12:30am UTC](https://meta.discourse.org/t/discourse-api-additive-or-also-breaking/99639 "2018-10-17T00:30:44Z")

</div>

I’m curious to know if the API has undergone points of breaking changes through the discourse versions in the last 5 years. If so, are there a few major versions where this occurred or has it been incremental? Is there a…

---

## [Adding service workers for third party services](https://meta.discourse.org/t/adding-service-workers-for-third-party-services/99619)

<div class="topic-metadata">

**Author:** [@RGJ](https://meta.discourse.org/u/RGJ)\
**Replies:** 0\
**Last updated:** [October 16, 2018, 6:55am UTC](https://meta.discourse.org/t/adding-service-workers-for-third-party-services/99619 "2018-10-16T06:55:04Z")

</div>

One of our customers asked us to drop a file in the document root for an integration with the ‘Subscriber’ service. I’ve been looking around on how to do this in a clean way. I do see some references to service worker…

---

## [Plugin outlet for a private group](https://meta.discourse.org/t/plugin-outlet-for-a-private-group/99614)

<div class="topic-metadata">

**Author:** [@Heidi\_V](https://meta.discourse.org/u/Heidi_V)\
**Replies:** 0\
**Last updated:** [October 16, 2018, 6:31am UTC](https://meta.discourse.org/t/plugin-outlet-for-a-private-group/99614 "2018-10-16T06:31:17Z")

</div>

Hi all, I’ve been working on a project for a few weeks now that has to do with having added features to members of a private group, and yet I have not been able to figure out how to find the plugin outlet for this speci…

---

## [How to override \`admin.hbs\`](https://meta.discourse.org/t/how-to-override-admin-hbs/98307)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 8\
**Last updated:** [October 9, 2018, 9:32pm UTC](https://meta.discourse.org/t/how-to-override-admin-hbs/98307 "2018-10-09T21:32:56Z")

</div>

I’m just a caveman. I want to override app/assets/javascripts/templates/admin.hbs because I want to change the nav menu on the admin page (but if that’s not how to do it, I’m all ears). If this is possible in a theme, I…

---

## [Implementing Push Notifications to the Native apps iOS and Android](https://meta.discourse.org/t/implementing-push-notifications-to-the-native-apps-ios-and-android/99099)

<div class="topic-metadata">

**Author:** [@Pavle\_Radoman](https://meta.discourse.org/u/Pavle_Radoman)\
**Replies:** 1\
**Last updated:** [October 9, 2018, 2:33pm UTC](https://meta.discourse.org/t/implementing-push-notifications-to-the-native-apps-ios-and-android/99099 "2018-10-09T14:33:19Z")

</div>

I am building a native app for my Discourse site. Do you have any idea how would I go to implement Firebase notifications or something similar?

---

## [Installing plugins that require data fail to start](https://meta.discourse.org/t/installing-plugins-that-require-data-fail-to-start/99066)

<div class="topic-metadata">

**Author:** [@eatcodetravel](https://meta.discourse.org/u/eatcodetravel)\
**Replies:** 0\
**Last updated:** [October 9, 2018, 4:06am UTC](https://meta.discourse.org/t/installing-plugins-that-require-data-fail-to-start/99066 "2018-10-09T04:06:30Z")

</div>

Hello, I have a plugin that requires data to be present to work. plugins: debtcollective\_solidarity\_message\_author: client: false default: "system" type: "username" I’m installing this in the after\_code …

---

## [Password Hashing PBKDF2 vs Argon2](https://meta.discourse.org/t/password-hashing-pbkdf2-vs-argon2/99056)

<div class="topic-metadata">

**Author:** [@mikymora](https://meta.discourse.org/u/mikymora)\
**Replies:** 3\
**Last updated:** [October 9, 2018, 12:05am UTC](https://meta.discourse.org/t/password-hashing-pbkdf2-vs-argon2/99056 "2018-10-09T00:05:38Z")

</div>

I was reading about password hashing and came across this What is the most reliable, safe and efficient password hashing algorithm as of 2018? if Argon2 is the best and most secure password hashing method, then why is …

---

## [Local development and deploying from same repo](https://meta.discourse.org/t/local-development-and-deploying-from-same-repo/99048)

<div class="topic-metadata">

**Author:** [@wouldwork](https://meta.discourse.org/u/wouldwork)\
**Replies:** 1\
**Last updated:** [October 8, 2018, 11:21pm UTC](https://meta.discourse.org/t/local-development-and-deploying-from-same-repo/99048 "2018-10-08T23:21:55Z")

</div>

I have Discourse running locally based off of this. No problems, worked fine. Install Discourse on macOS for development I am getting ready to deploy Discourse to a production environment using Docker via Digital Ocean …

---

## [Integrate OAuth with an invite only flow](https://meta.discourse.org/t/integrate-oauth-with-an-invite-only-flow/98841)

<div class="topic-metadata">

**Author:** [@Daniel\_Lopes](https://meta.discourse.org/u/Daniel_Lopes)\
**Replies:** 4\
**Last updated:** [October 8, 2018, 10:07pm UTC](https://meta.discourse.org/t/integrate-oauth-with-an-invite-only-flow/98841 "2018-10-08T22:07:46Z")

</div>

Hi everyone, I’m working on a project to integrate our main product (https://knowyourcompany.com/) into our community (https://thewatercooler.io/) and struggling a bit to find the best approach. Our community is invite…

---

## [Discourse web hook failing](https://meta.discourse.org/t/discourse-web-hook-failing/98545)

<div class="topic-metadata">

**Author:** [@Crackerjack](https://meta.discourse.org/u/Crackerjack)\
**Replies:** 0\
**Last updated:** [October 2, 2018, 10:43am UTC](https://meta.discourse.org/t/discourse-web-hook-failing/98545 "2018-10-02T10:43:30Z")

</div>

I am trying to use a web hook for integrating the forum with my application. I currently using SSO and it works correctly. I have created a new web hook and pointed it to a local server in order to test if the web hook w…

---

## [Introducing Post Deployment Migration](https://meta.discourse.org/t/introducing-post-deployment-migration/98974)

<div class="topic-metadata">

**Author:** [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Replies:** 0\
**Last updated:** [October 8, 2018, 8:28am UTC](https://meta.discourse.org/t/introducing-post-deployment-migration/98974 "2018-10-08T08:28:42Z")

</div>

As of FEATURE: Post deployment migrations. (#6406) · discourse/discourse@40fa967 · GitHub, we’re moving away from our delayed drop pattern to remove a column from a table in the database. Inspired by Gitlab’s pattern of …

---

## [Hacktoberfest 2018 - contribute to open source, get a free t-shirt!](https://meta.discourse.org/t/hacktoberfest-2018-contribute-to-open-source-get-a-free-t-shirt/98648)

<div class="topic-metadata">

**Author:** [@bts](https://meta.discourse.org/u/bts)\
**Replies:** 2\
**Last updated:** [October 6, 2018, 10:01am UTC](https://meta.discourse.org/t/hacktoberfest-2018-contribute-to-open-source-get-a-free-t-shirt/98648 "2018-10-06T10:01:55Z")

</div>

Just came across this: Seems like a good way to encourage contributions to open source projects like Discourse :slight\_smile: Here are the official guides on meta for how to contribute: Many large projects are ta…

---

## [Any side effects to using custom topic archetypes?](https://meta.discourse.org/t/any-side-effects-to-using-custom-topic-archetypes/98370)

<div class="topic-metadata">

**Author:** [@Kampfkarren](https://meta.discourse.org/u/Kampfkarren)\
**Replies:** 8\
**Last updated:** [October 5, 2018, 9:23pm UTC](https://meta.discourse.org/t/any-side-effects-to-using-custom-topic-archetypes/98370 "2018-10-05T21:23:14Z")

</div>

For a project I am working on, I am storing data as topics with their own special archetype. They’re not really topics, the category and body don’t matter and the important information is held in custom fields. I went wi…

---

## [Using the Discourse API ruby gem to post a topic as a specific user](https://meta.discourse.org/t/using-the-discourse-api-ruby-gem-to-post-a-topic-as-a-specific-user/98380)

<div class="topic-metadata">

**Author:** [@tshenry](https://meta.discourse.org/u/tshenry)\
**Replies:** 9\
**Last updated:** [October 3, 2018, 8:30am UTC](https://meta.discourse.org/t/using-the-discourse-api-ruby-gem-to-post-a-topic-as-a-specific-user/98380 "2018-10-03T08:30:29Z")

</div>

I’m trying to use the following to post a new topic as a non-staff user via the Discourse API ruby gem: $LOAD\_PATH.unshift File.expand\_path('../../lib', \_\_FILE\_\_) require File.expand\_path('../../lib/discourse\_api', \_\_FI…

---

## [Get number of comments and/or likes via API per topic?](https://meta.discourse.org/t/get-number-of-comments-and-or-likes-via-api-per-topic/98350)

<div class="topic-metadata">

**Author:** [@AstonJ](https://meta.discourse.org/u/AstonJ)\
**Replies:** 1\
**Last updated:** [October 1, 2018, 8:18pm UTC](https://meta.discourse.org/t/get-number-of-comments-and-or-likes-via-api-per-topic/98350 "2018-10-01T20:18:51Z")

</div>

What is the most efficient way to get the number of comments a topic has received (and perhaps the number of likes, either to first post post or all posts combined) via the API? (I haven’t looked but I guess there is a …

---

## [How not to structure your database-backed web applications](https://meta.discourse.org/t/how-not-to-structure-your-database-backed-web-applications/97912)

<div class="topic-metadata">

**Author:** [@mcwumbly](https://meta.discourse.org/u/mcwumbly)\
**Replies:** 1\
**Last updated:** [September 28, 2018, 7:46am UTC](https://meta.discourse.org/t/how-not-to-structure-your-database-backed-web-applications/97912 "2018-09-28T07:46:28Z")

</div>

I just came across this morning paper blog post from June:: How not to structure your database-backed web applications How not to structure your database-backed web applications: a study of performance bugs in the wi…

---

## [Container deployment rework](https://meta.discourse.org/t/container-deployment-rework/98108)

<div class="topic-metadata">

**Author:** [@rowanj](https://meta.discourse.org/u/rowanj)\
**Replies:** 4\
**Last updated:** [September 26, 2018, 2:59pm UTC](https://meta.discourse.org/t/container-deployment-rework/98108 "2018-09-26T14:59:51Z")

</div>

Would Team Discourse be open to some fairly significant rework of the discourse\_docker and any other setup and launch scripts to bring the install experience (and documentation, of course) more in-line with Docker expect…

---

## [Changing the excerpt content to last post](https://meta.discourse.org/t/changing-the-excerpt-content-to-last-post/98012)

<div class="topic-metadata">

**Author:** [@Carlo](https://meta.discourse.org/u/Carlo)\
**Replies:** 0\
**Last updated:** [September 25, 2018, 1:17pm UTC](https://meta.discourse.org/t/changing-the-excerpt-content-to-last-post/98012 "2018-09-25T13:17:21Z")

</div>

Update: I’ve just realised /posts.json does that :man\_facepalming: Hi everyone. I want to pull Discourse last messages/topics on my website. So far, I’ve been using the Json feed and it’s working fine. I am able to p…

---

## [Discourse erroneously requesting plural of route?](https://meta.discourse.org/t/discourse-erroneously-requesting-plural-of-route/97962)

<div class="topic-metadata">

**Author:** [@Kampfkarren](https://meta.discourse.org/u/Kampfkarren)\
**Replies:** 3\
**Last updated:** [September 25, 2018, 3:25am UTC](https://meta.discourse.org/t/discourse-erroneously-requesting-plural-of-route/97962 "2018-09-25T03:25:08Z")

</div>

In my plugin routes, I had the following (not these exact names, but hopefully the point is clear) get "/u/:username/thing" =\> "user\_thing#index", constraints: { username: RouteFormat.username } get "/u/:username/…

---

## [Making the "n posts in topic" user filter appear in mobile](https://meta.discourse.org/t/making-the-n-posts-in-topic-user-filter-appear-in-mobile/97858)

<div class="topic-metadata">

**Author:** [@Zephias](https://meta.discourse.org/u/Zephias)\
**Replies:** 0\
**Last updated:** [September 22, 2018, 9:45pm UTC](https://meta.discourse.org/t/making-the-n-posts-in-topic-user-filter-appear-in-mobile/97858 "2018-09-22T21:45:45Z")

</div>

I’m trying to hack it so that the “n posts in topic” user filter in the user card becomes available on mobile. What would be the easiest way to do this? The two options that came to mind were to make the button appear …

---

## [Where to find event logs in discourse?](https://meta.discourse.org/t/where-to-find-event-logs-in-discourse/97757)

<div class="topic-metadata">

**Author:** [@pranav\_vdd](https://meta.discourse.org/u/pranav_vdd)\
**Replies:** 3\
**Last updated:** [September 21, 2018, 2:56pm UTC](https://meta.discourse.org/t/where-to-find-event-logs-in-discourse/97757 "2018-09-21T14:56:57Z")

</div>

I am looking for event logs in discourse like if an user creates a question or reply for a question. I looked at following log files Rails Log → apps/discourse/htdocs/log/production.log Apache Log → apache2/logs/access…

---

## [Likes on a post](https://meta.discourse.org/t/likes-on-a-post/96396)

<div class="topic-metadata">

**Author:** [@Edwin\_Mhoy\_Silva](https://meta.discourse.org/u/Edwin_Mhoy_Silva)\
**Replies:** 12\
**Last updated:** [September 21, 2018, 9:31am UTC](https://meta.discourse.org/t/likes-on-a-post/96396 "2018-09-21T09:31:52Z")

</div>

Do discourse keep count of who has liked which post ? I’m working on a method, which changes the color of the like icon, when a user have liked the post. I have made it so, that if a user likes a post, the “like-icon” …

---

## [API documentation error?](https://meta.discourse.org/t/api-documentation-error/97624)

<div class="topic-metadata">

**Author:** [@Julian\_Elve](https://meta.discourse.org/u/Julian_Elve)\
**Replies:** 6\
**Last updated:** [September 20, 2018, 9:29am UTC](https://meta.discourse.org/t/api-documentation-error/97624 "2018-09-20T09:29:02Z")

</div>

At this page the documentation states that detailed record for user can be obtained by GET /admin/users/{id}.json Tests suggest this is not correct (returns 404) and the correct URL is GET /admin/users/{id}/{username}.…

---

## [New min-height on .btn](https://meta.discourse.org/t/new-min-height-on-btn/97611)

<div class="topic-metadata">

**Author:** [@angus](https://meta.discourse.org/u/angus)\
**Replies:** 1\
**Last updated:** [September 20, 2018, 4:51am UTC](https://meta.discourse.org/t/new-min-height-on-btn/97611 "2018-09-20T04:51:42Z")

</div>

I feel a bit nit-picky creating an entire topic for this, but I’m wondering about the thinking behind the new min-height of 30px on the base .btn class? (added here). Before I go through and make a bunch of CSS changes …

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

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