# Development

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

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

**Page:** 119

---

## [Code linting and formatting with prettier](https://meta.discourse.org/t/code-linting-and-formatting-with-prettier/92981)

<div class="topic-metadata">

**Author:** [@pmusaraj](https://meta.discourse.org/u/pmusaraj)\
**Replies:** 6\
**Last updated:** [July 24, 2018, 9:54am UTC](https://meta.discourse.org/t/code-linting-and-formatting-with-prettier/92981 "2018-07-24T09:54:28Z")

</div>

I just wrote a PR that didn’t pass the Travis tests due to linting issues. I couldn’t find any entries in meta that discussed eslinting/prettier, so I went digging around the code and found out how to improve my code to …

---

## [Android Webview Discourse Invite Link](https://meta.discourse.org/t/android-webview-discourse-invite-link/92959)

<div class="topic-metadata">

**Author:** [@Dai\_Dao](https://meta.discourse.org/u/Dai_Dao)\
**Replies:** 0\
**Last updated:** [July 23, 2018, 8:27pm UTC](https://meta.discourse.org/t/android-webview-discourse-invite-link/92959 "2018-07-23T20:27:08Z")

</div>

Hi, I generate an invite link using the Discourse API given the user’s email. When I get the link I try to load it with the WebView but it just appears blank. This is strange I’m not sure why the invite link wouldn’t lo…

---

## [Can we install discourse in another container distro?](https://meta.discourse.org/t/can-we-install-discourse-in-another-container-distro/91941)

<div class="topic-metadata">

**Author:** [@hosna](https://meta.discourse.org/u/hosna)\
**Replies:** 14\
**Last updated:** [July 24, 2018, 5:26am UTC](https://meta.discourse.org/t/can-we-install-discourse-in-another-container-distro/91941 "2018-07-24T05:26:56Z")

</div>

when I enter discourse application, I can realize that the container of my discourse forum is ubuntu 16.04. Its working fine. However I’m curious, can we install discourse on other container distros like centos or ubuntu…

---

## [How does discourse get full names of imported users?](https://meta.discourse.org/t/how-does-discourse-get-full-names-of-imported-users/92916)

<div class="topic-metadata">

**Author:** [@mrded](https://meta.discourse.org/u/mrded)\
**Replies:** 3\
**Last updated:** [July 23, 2018, 10:30am UTC](https://meta.discourse.org/t/how-does-discourse-get-full-names-of-imported-users/92916 "2018-07-23T10:30:14Z")

</div>

We have a database of users to be migrated into Discourse. All these users have only emails and random usernames. After a migration, I noticed that most of the users got user.name fields, which are real full names. Fir…

---

## [JavaScript + Electron to make a discourse forum into app?](https://meta.discourse.org/t/javascript-electron-to-make-a-discourse-forum-into-app/92895)

<div class="topic-metadata">

**Author:** [@nexo](https://meta.discourse.org/u/nexo)\
**Replies:** 1\
**Last updated:** [July 23, 2018, 2:01am UTC](https://meta.discourse.org/t/javascript-electron-to-make-a-discourse-forum-into-app/92895 "2018-07-23T02:01:54Z")

</div>

Hi, Do you think if i learn JavaScript and Electron I could make my discourse forum into a legitimate mobile app?

---

## [Quick question: is it possible to make a plugin altering the "latest" page request?](https://meta.discourse.org/t/quick-question-is-it-possible-to-make-a-plugin-altering-the-latest-page-request/92573)

<div class="topic-metadata">

**Author:** [@Canapin](https://meta.discourse.org/u/Canapin)\
**Replies:** 5\
**Last updated:** [July 23, 2018, 1:24am UTC](https://meta.discourse.org/t/quick-question-is-it-possible-to-make-a-plugin-altering-the-latest-page-request/92573 "2018-07-23T01:24:21Z")

</div>

Hi. I would like to filter the topics displayed on the “latest” page. Like changing the SQL or something like that. Is it possible?

---

## [Discourse-doctor 👩‍⚕️](https://meta.discourse.org/t/discourse-doctor/65169)

<div class="topic-metadata">

**Author:** [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Replies:** 26\
**Last updated:** [July 21, 2018, 6:18am UTC](https://meta.discourse.org/t/discourse-doctor/65169 "2018-07-21T06:18:57Z")

</div>

Hi everyone, lately I’ve been playing with the idea of having a discourse-doctor utility to help people troubleshoot their docker discourse instance. https://github.com/jjaffeux/discourse-doctor I’m opening this topic…

---

## [Adding explanatory information to the group page](https://meta.discourse.org/t/adding-explanatory-information-to-the-group-page/92822)

<div class="topic-metadata">

**Author:** [@Stranik](https://meta.discourse.org/u/Stranik)\
**Replies:** 0\
**Last updated:** [July 20, 2018, 6:07pm UTC](https://meta.discourse.org/t/adding-explanatory-information-to-the-group-page/92822 "2018-07-20T18:07:25Z")

</div>

Some users do not quite understand what groups are. Page “empty”, no information, no title, etc. Can it make sense to do the following? At the topmost line of the file, before: https://github.com/discourse/discourse/b…

---

## [Webhooks for user deletion/deactivation?](https://meta.discourse.org/t/webhooks-for-user-deletion-deactivation/92496)

<div class="topic-metadata">

**Author:** [@j127](https://meta.discourse.org/u/j127)\
**Replies:** 3\
**Last updated:** [July 20, 2018, 7:00am UTC](https://meta.discourse.org/t/webhooks-for-user-deletion-deactivation/92496 "2018-07-20T07:00:58Z")

</div>

Is there an easy way to add webhooks for user deletion and deactivation? I think I’ve found the relevant code but it appears to only list webhooks for these actions: user\_logged\_out user\_created user\_logged\_in user\_app…

---

## [Overriding a Method in a controller](https://meta.discourse.org/t/overriding-a-method-in-a-controller/92657)

<div class="topic-metadata">

**Author:** [@Sanjay1](https://meta.discourse.org/u/Sanjay1)\
**Replies:** 1\
**Last updated:** [July 19, 2018, 4:18pm UTC](https://meta.discourse.org/t/overriding-a-method-in-a-controller/92657 "2018-07-19T16:18:19Z")

</div>

Hi All, I am attempting in overriding the behaviour of a an action controller, to be precise, the TopicsController#latest, I want to add a custom field to it as part of the response. And in order to do that I have crea…

---

## [Store: What’s the correct type of a record ID?](https://meta.discourse.org/t/store-what-s-the-correct-type-of-a-record-id/92605)

<div class="topic-metadata">

**Author:** [@kleinfreund](https://meta.discourse.org/u/kleinfreund)\
**Replies:** 1\
**Last updated:** [July 19, 2018, 7:37am UTC](https://meta.discourse.org/t/store-what-s-the-correct-type-of-a-record-id/92605 "2018-07-19T07:37:49Z")

</div>

With the store.js.es6, one can store records on the server. Providing an id property for records upon creation makes it easier managing them in the long run (e.g. knowing when two records are the same on the client side,…

---

## [Understanding the development/deployment process](https://meta.discourse.org/t/understanding-the-development-deployment-process/92669)

<div class="topic-metadata">

**Author:** [@Genyus](https://meta.discourse.org/u/Genyus)\
**Replies:** 4\
**Last updated:** [July 18, 2018, 8:07pm UTC](https://meta.discourse.org/t/understanding-the-development-deployment-process/92669 "2018-07-18T20:07:36Z")

</div>

Hi all, Having decided that Discourse represents the best platform for a new community project I’m launching, I’ve been lurking in the forums for a few weeks now, trying to get my head around how it all hangs together. …

---

## [Potential bug in store when hydrating find results](https://meta.discourse.org/t/potential-bug-in-store-when-hydrating-find-results/92394)

<div class="topic-metadata">

**Author:** [@kleinfreund](https://meta.discourse.org/u/kleinfreund)\
**Replies:** 3\
**Last updated:** [July 17, 2018, 3:14pm UTC](https://meta.discourse.org/t/potential-bug-in-store-when-hydrating-find-results/92394 "2018-07-17T15:14:17Z")

</div>

What is the following line doing: discourse/app/assets/javascripts/discourse/models/store.js.es6 ? return this.\_hydrate(type, result\[Ember.String.underscore(type)\], result); In particular, why is the second argument o…

---

## [Get server-side controller method to be called via plugin route](https://meta.discourse.org/t/get-server-side-controller-method-to-be-called-via-plugin-route/92186)

<div class="topic-metadata">

**Author:** [@kleinfreund](https://meta.discourse.org/u/kleinfreund)\
**Replies:** 1\
**Last updated:** [July 13, 2018, 9:33am UTC](https://meta.discourse.org/t/get-server-side-controller-method-to-be-called-via-plugin-route/92186 "2018-07-13T09:33:50Z")

</div>

Assume I setup a route in my plugin like this: plugin.rb: get '/css/styles.css' =\> 'plugin\_routes#show' ./app/controllers/plugin\_routes\_controller.rb: class PluginRoutesController \< ApplicationController def show …

---

## [Adding a button for unauthorized members](https://meta.discourse.org/t/adding-a-button-for-unauthorized-members/77018)

<div class="topic-metadata">

**Author:** [@Stranik](https://meta.discourse.org/u/Stranik)\
**Replies:** 0\
**Last updated:** [December 31, 2017, 12:44pm UTC](https://meta.discourse.org/t/adding-a-button-for-unauthorized-members/77018 "2017-12-31T12:44:32Z")

</div>

I tried to add this button only for unregistered users. Make it visible, when you click on that, the transition goes to the registration page. \<script type="text/discourse-plugin" version="0.2"\> let currentUser = api.ge…

---

## [Add plug-in (in search results)](https://meta.discourse.org/t/add-plug-in-in-search-results/92404)

<div class="topic-metadata">

**Author:** [@Stranik](https://meta.discourse.org/u/Stranik)\
**Replies:** 0\
**Last updated:** [July 15, 2018, 7:28pm UTC](https://meta.discourse.org/t/add-plug-in-in-search-results/92404 "2018-07-15T19:28:43Z")

</div>

This will allow to make hints in the search result, add dictionaries, etc. https://github.com/discourse/discourse/pull/6090 Demo: https://toxu.ru/search?q=discourse Just an example of how you can use a dictionary o…

---

## [Public profiles for imported, inactive users](https://meta.discourse.org/t/public-profiles-for-imported-inactive-users/92004)

<div class="topic-metadata">

**Author:** [@davidmh](https://meta.discourse.org/u/davidmh)\
**Replies:** 1\
**Last updated:** [July 10, 2018, 9:45pm UTC](https://meta.discourse.org/t/public-profiles-for-imported-inactive-users/92004 "2018-07-10T21:45:50Z")

</div>

I’m migrating the content and user profiles from an old project and since the users in the project are no longer active, I decided to import them with active = false, which works great to avoid sending them emails that t…

---

## [\[Widget\] Menu based on group permission](https://meta.discourse.org/t/widget-menu-based-on-group-permission/91997)

<div class="topic-metadata">

**Author:** [@tanzaho](https://meta.discourse.org/u/tanzaho)\
**Replies:** 1\
**Last updated:** [July 10, 2018, 4:51pm UTC](https://meta.discourse.org/t/widget-menu-based-on-group-permission/91997 "2018-07-10T16:51:43Z")

</div>

I have a navigation menu built with the api.decorateWidget method. Here is an example from my template, file: \<script type="text/discourse-plugin" version="0.2"\> api.decorateWidget('home-logo:after', helper =\> { c…

---

## [Learning Ember.js before developing on Discourse](https://meta.discourse.org/t/learning-ember-js-before-developing-on-discourse/59710)

<div class="topic-metadata">

**Author:** [@Fabrizio\_Bertoglio](https://meta.discourse.org/u/Fabrizio_Bertoglio)\
**Replies:** 8\
**Last updated:** [July 7, 2018, 6:12am UTC](https://meta.discourse.org/t/learning-ember-js-before-developing-on-discourse/59710 "2018-07-07T06:12:36Z")

</div>

Hello, sorry, I don’t really know which is the relevant section for this question. I develop with Ruby on Rails since 4 months and I just launched my app Bartering Apps, I would like to build a QandA forum for my second…

---

## [Retrieving user information via REST API](https://meta.discourse.org/t/retrieving-user-information-via-rest-api/90425)

<div class="topic-metadata">

**Author:** [@sarahann](https://meta.discourse.org/u/sarahann)\
**Replies:** 6\
**Last updated:** [July 5, 2018, 1:54am UTC](https://meta.discourse.org/t/retrieving-user-information-via-rest-api/90425 "2018-07-05T01:54:29Z")

</div>

Hello! I have been looking for some specific user data. The users flagged data: number\_of\_flagged\_posts number\_of\_suspensions warnings\_received\_count I found that this information is part of the user class but is …

---

## [Read time & badgers on custom pages](https://meta.discourse.org/t/read-time-badgers-on-custom-pages/90933)

<div class="topic-metadata">

**Author:** [@Bas](https://meta.discourse.org/u/Bas)\
**Replies:** 6\
**Last updated:** [July 4, 2018, 1:28pm UTC](https://meta.discourse.org/t/read-time-badgers-on-custom-pages/90933 "2018-07-04T13:28:38Z")

</div>

We are running some custom documentation pages at custom routes. I’d love to know how to hook into Discourse’s built-in read-time metrics on these pages. Ideally I’d like to solve this usecase: Grant a ‘Bookworm badge…

---

## [Libvips instead of imagemagick7](https://meta.discourse.org/t/libvips-instead-of-imagemagick7/91551)

<div class="topic-metadata">

**Author:** [@arrowcircle](https://meta.discourse.org/u/arrowcircle)\
**Replies:** 3\
**Last updated:** [July 4, 2018, 11:22am UTC](https://meta.discourse.org/t/libvips-instead-of-imagemagick7/91551 "2018-07-04T11:22:57Z")

</div>

Hello! I’ve seen task in 2.1 release: Upgrade ImageMagick to ImageMagick7 (6 is getting old) There are more modern libraries to process image with less CPU and memory. Great example is libvips, and this lib has ruby …

---

## [API to retrieve posts sorted by updated\_at?](https://meta.discourse.org/t/api-to-retrieve-posts-sorted-by-updated-at/91003)

<div class="topic-metadata">

**Author:** [@BrendanGraham14](https://meta.discourse.org/u/BrendanGraham14)\
**Replies:** 1\
**Last updated:** [July 3, 2018, 2:11pm UTC](https://meta.discourse.org/t/api-to-retrieve-posts-sorted-by-updated-at/91003 "2018-07-03T14:11:36Z")

</div>

I see that there’s the /posts.json API which retrieves posts sorted by created\_at. Is there any way to retrieve the latest updated\_at posts?

---

## [Post import: user stats most-replied-to is empty](https://meta.discourse.org/t/post-import-user-stats-most-replied-to-is-empty/91225)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 2\
**Last updated:** [July 3, 2018, 9:50am UTC](https://meta.discourse.org/t/post-import-user-stats-most-replied-to-is-empty/91225 "2018-07-03T09:50:30Z")

</div>

On an import I just did, on a user profile page, the “most replied to” section is empty. I think that sidekiq finished. It’s been on a production site for a few days. I don’t see a rake task that’s obviously going to po…

---

## [Highlight current page in Brand Header links](https://meta.discourse.org/t/highlight-current-page-in-brand-header-links/312632)

<div class="topic-metadata">

**Author:** [@davidkingham](https://meta.discourse.org/u/davidkingham)\
**Replies:** 0\
**Last updated:** [July 2, 2018, 4:07am UTC](https://meta.discourse.org/t/highlight-current-page-in-brand-header-links/312632 "2018-07-02T04:07:41Z")

</div>

For those interested I was able to sort of achieve this, it’s not intelligent for what page you’re on, but for most, it will do the trick. Change the (2) to whatever position your forum button is .b-header .nav-pills \> …

---

## [Instagram Embed Plugin - is it possible?](https://meta.discourse.org/t/instagram-embed-plugin-is-it-possible/91222)

<div class="topic-metadata">

**Author:** [@cmwebdev](https://meta.discourse.org/u/cmwebdev)\
**Replies:** 4\
**Last updated:** [June 30, 2018, 3:31am UTC](https://meta.discourse.org/t/instagram-embed-plugin-is-it-possible/91222 "2018-06-30T03:31:27Z")

</div>

I, along with my users, prefer the way an Instagram embed looks compared to the onebox of an Instagram image/post. With their embed you can tell right away that you’re looking at an Instagram image, and the full caption …

---

## [Issues with Top topic and categories API on local development setup](https://meta.discourse.org/t/issues-with-top-topic-and-categories-api-on-local-development-setup/90835)

<div class="topic-metadata">

**Author:** [@ntanh1](https://meta.discourse.org/u/ntanh1)\
**Replies:** 2\
**Last updated:** [June 27, 2018, 8:11am UTC](https://meta.discourse.org/t/issues-with-top-topic-and-categories-api-on-local-development-setup/90835 "2018-06-27T08:11:11Z")

</div>

Hi team, I’ve setup a local Discourse server following this tutorial: My version is 1.9.7. Problem is when I call categories API and top topic API, I don’t get expected result. 1/ Refer the attachment for http://a52…

---

## [Sprockets replacements and code splitting](https://meta.discourse.org/t/sprockets-replacements-and-code-splitting/90930)

<div class="topic-metadata">

**Author:** [@misaka4e21](https://meta.discourse.org/u/misaka4e21)\
**Replies:** 0\
**Last updated:** [June 28, 2018, 8:44am UTC](https://meta.discourse.org/t/sprockets-replacements-and-code-splitting/90930 "2018-06-28T08:44:00Z")

</div>

Is there still any plan to replace sprockets, the current assets-building pipeline with another one that supports code splitting such as webpack? It seems that an all-in-one bundle of all JavaScript files, rather than …

---

## [Recommended way to get SMTP configuration](https://meta.discourse.org/t/recommended-way-to-get-smtp-configuration/90433)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 3\
**Last updated:** [June 26, 2018, 8:59pm UTC](https://meta.discourse.org/t/recommended-way-to-get-smtp-configuration/90433 "2018-06-26T20:59:11Z")

</div>

I’m working on Discourse Doctor. As part of that, I’m adding a rake task to lib/tasks/emails.rake to test connectivity to the mail server. The way that @j.jaffeux did it in a stand-alone ruby script was def check\_env\_v…

---

## [Little mistake in the API manual](https://meta.discourse.org/t/little-mistake-in-the-api-manual/90420)

<div class="topic-metadata">

**Author:** [@Canapin](https://meta.discourse.org/u/Canapin)\
**Replies:** 3\
**Last updated:** [June 23, 2018, 5:50pm UTC](https://meta.discourse.org/t/little-mistake-in-the-api-manual/90420 "2018-06-23T17:50:35Z")

</div>

Hi, on the update topic entry, there is what seems to be a little mistake in the path: Should be: /t/{slug}/{id}.json I guess?

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

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