# Development

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

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

**Page:** 100

---

## [Changing location of tmp directory](https://meta.discourse.org/t/changing-location-of-tmp-directory/139531)

<div class="topic-metadata">

**Author:** [@Nikolay](https://meta.discourse.org/u/Nikolay)\
**Replies:** 3\
**Last updated:** [January 23, 2020, 4:04pm UTC](https://meta.discourse.org/t/changing-location-of-tmp-directory/139531 "2020-01-23T16:04:02Z")

</div>

Hello. Is it possible to change location of “tmp” dir and how? For example now my tmp dir is in /var/discourse/tmp and i want temp files to be created in /tmp/discourse-tmp

---

## [How to login a user via API?](https://meta.discourse.org/t/how-to-login-a-user-via-api/134272)

<div class="topic-metadata">

**Author:** [@NathanLei](https://meta.discourse.org/u/NathanLei)\
**Replies:** 2\
**Last updated:** [January 23, 2020, 9:09am UTC](https://meta.discourse.org/t/how-to-login-a-user-via-api/134272 "2020-01-23T09:09:53Z")

</div>

I have gone thought all the topic, None of them explain well, how to log in a user via API. I’m making an APP base on discourse APIs.. someone cares to share a link or code?? please…

---

## [Is there an endpoint to check if a user is logged in](https://meta.discourse.org/t/is-there-an-endpoint-to-check-if-a-user-is-logged-in/72780)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 17\
**Last updated:** [January 21, 2020, 5:41am UTC](https://meta.discourse.org/t/is-there-an-endpoint-to-check-if-a-user-is-logged-in/72780 "2020-01-21T05:41:44Z")

</div>

I need a URL that will return 200 for a logged in user and 401 or 403 if the user is not logged in. If require\_login is checked, every page does a 301 to the login page.

---

## [Custom CSS for removing view count bar](https://meta.discourse.org/t/custom-css-for-removing-view-count-bar/74581)

<div class="topic-metadata">

**Author:** [@Scott\_G\_Overend](https://meta.discourse.org/u/Scott_G_Overend)\
**Replies:** 8\
**Last updated:** [November 22, 2017, 3:29pm UTC](https://meta.discourse.org/t/custom-css-for-removing-view-count-bar/74581 "2017-11-22T15:29:08Z")

</div>

Does anyone have the custom css for removing the view count bar? I found it on the site, but the page has been removed Thanks!

---

## [Plugin development: A copy of ApplicationController has been removed from the module tree but is still active!](https://meta.discourse.org/t/plugin-development-a-copy-of-applicationcontroller-has-been-removed-from-the-module-tree-but-is-still-active/98584)

<div class="topic-metadata">

**Author:** [@Kampfkarren](https://meta.discourse.org/u/Kampfkarren)\
**Replies:** 6\
**Last updated:** [January 17, 2020, 12:16am UTC](https://meta.discourse.org/t/plugin-development-a-copy-of-applicationcontroller-has-been-removed-from-the-module-tree-but-is-still-active/98584 "2020-01-17T00:16:39Z")

</div>

I get this error non-stop when developing. It used to only happen after around ~8 pages, but now it’s happening after around 1-3. The error looks like this: The blurred text is the name of the module for my plugin N…

---

## [EdgeHTML Support](https://meta.discourse.org/t/edgehtml-support/138601)

<div class="topic-metadata">

**Author:** [@david](https://meta.discourse.org/u/david)\
**Replies:** 23\
**Last updated:** [January 16, 2020, 10:09pm UTC](https://meta.discourse.org/t/edgehtml-support/138601 "2020-01-16T22:09:09Z")

</div>

(Split from Discourse is ending support for Internet Explorer 11 (IE11) on June 1, 2020)

---

## [Include a simple svg icon to display in a plugin](https://meta.discourse.org/t/include-a-simple-svg-icon-to-display-in-a-plugin/138820)

<div class="topic-metadata">

**Author:** [@hamsterbacke23](https://meta.discourse.org/u/hamsterbacke23)\
**Replies:** 0\
**Last updated:** [January 16, 2020, 2:03pm UTC](https://meta.discourse.org/t/include-a-simple-svg-icon-to-display-in-a-plugin/138820 "2020-01-16T14:03:24Z")

</div>

I want to include and reference a simple svg icon in my plugin to display in the frontend. This seems a simple thing to do, but I’m totally lost how to tackle this, it seems quite hard to get started. Any ideas?

---

## [Including composer custom fields on save draft](https://meta.discourse.org/t/including-composer-custom-fields-on-save-draft/126913)

<div class="topic-metadata">

**Author:** [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Replies:** 5\
**Last updated:** [January 16, 2020, 10:44am UTC](https://meta.discourse.org/t/including-composer-custom-fields-on-save-draft/126913 "2020-01-16T10:44:04Z")

</div>

Recently, I started looking into a bug with the Events plugin where the events data shown on the composer is lost if the post is saved to drafts. I tried to fix the issue and soon found out that there’s no API exposed b…

---

## [How to allow customs hosts in development mode](https://meta.discourse.org/t/how-to-allow-customs-hosts-in-development-mode/129958)

<div class="topic-metadata">

**Author:** [@mompo](https://meta.discourse.org/u/mompo)\
**Replies:** 4\
**Last updated:** [January 15, 2020, 9:22am UTC](https://meta.discourse.org/t/how-to-allow-customs-hosts-in-development-mode/129958 "2020-01-15T09:22:14Z")

</div>

Hi. I’m new to discourse and started diving into it by setting up a development system, following this howto. Afterwards I was able to access my instance via ip address, but trying to access via hostname fails with fol…

---

## [Why isn't the Discourse API fully documented?](https://meta.discourse.org/t/why-isnt-the-discourse-api-fully-documented/138265)

<div class="topic-metadata">

**Author:** [@samamorgan](https://meta.discourse.org/u/samamorgan)\
**Replies:** 9\
**Last updated:** [January 13, 2020, 5:53pm UTC](https://meta.discourse.org/t/why-isnt-the-discourse-api-fully-documented/138265 "2020-01-13T17:53:55Z")

</div>

I don’t understand why full documentation for all API endpoints doesn’t exist. The original documentation was released to the public on December 2014, and here we are 6 years later and the documentation is still half-bak…

---

## [Search query times out for big sites](https://meta.discourse.org/t/search-query-times-out-for-big-sites/138267)

<div class="topic-metadata">

**Author:** [@Eduardo\_Poleo](https://meta.discourse.org/u/Eduardo_Poleo)\
**Replies:** 2\
**Last updated:** [January 13, 2020, 3:41pm UTC](https://meta.discourse.org/t/search-query-times-out-for-big-sites/138267 "2020-01-13T15:41:25Z")

</div>

Hey guys, We’re started seeing timeouts regularly on our /search query, we’ve benchmarked some search terms and some queries might take up to 2mins to complete. We found this post but were wondering if they are any ad…

---

## [Import Category class in a component](https://meta.discourse.org/t/import-category-class-in-a-component/138406)

<div class="topic-metadata">

**Author:** [@rogerco](https://meta.discourse.org/u/rogerco)\
**Replies:** 2\
**Last updated:** [January 13, 2020, 10:54am UTC](https://meta.discourse.org/t/import-category-class-in-a-component/138406 "2020-01-13T10:54:23Z")

</div>

Developing a component with the code in the Header section using \<script type="text/discourse-plugin" version="0.8.26"\> where I have lines like parentCat = Discourse.Category.findById(get(category, "parent\_catego…

---

## [Sidekiq fails to start after Zeitwerk on docker dev](https://meta.discourse.org/t/sidekiq-fails-to-start-after-zeitwerk-on-docker-dev/130031)

<div class="topic-metadata">

**Author:** [@averi](https://meta.discourse.org/u/averi)\
**Replies:** 24\
**Last updated:** [January 12, 2020, 10:51pm UTC](https://meta.discourse.org/t/sidekiq-fails-to-start-after-zeitwerk-on-docker-dev/130031 "2020-01-12T22:51:26Z")

</div>

We recently upgraded to 2.4.0.beta5 from 2.4.0.beta4 and sidekiq fails to start with the following traceback: \> $ bundle exec sidekiq -C config/sidekiq.yml \> uninitialized constant SiteSetting::SiteSettingExtension \> /d…

---

## [Import scripts fail to relate topics and posts](https://meta.discourse.org/t/import-scripts-fail-to-relate-topics-and-posts/60377)

<div class="topic-metadata">

**Author:** [@Matias\_Hernandez](https://meta.discourse.org/u/Matias_Hernandez)\
**Replies:** 2\
**Last updated:** [January 10, 2020, 12:55pm UTC](https://meta.discourse.org/t/import-scripts-fail-to-relate-topics-and-posts/60377 "2020-01-10T12:55:31Z")

</div>

I’m writing an import script for a custom forum. The importing of categories and users works good, but the script (using the create\_posts method) is not able to build the relation between the topic and the replies. The…

---

## [Custom Handlebars Template for Plugin](https://meta.discourse.org/t/custom-handlebars-template-for-plugin/138156)

<div class="topic-metadata">

**Author:** [@AlexanderFillbrunn](https://meta.discourse.org/u/AlexanderFillbrunn)\
**Replies:** 2\
**Last updated:** [January 9, 2020, 4:30pm UTC](https://meta.discourse.org/t/custom-handlebars-template-for-plugin/138156 "2020-01-09T16:30:07Z")

</div>

Hi, In my plugin I have added a new button to the toolbar using the API’s addButton method. Now I would like to show a custom text when the user hovers over the button, just like “Insert date/time” when hovering over th…

---

## [JavaScript Hook for Composer](https://meta.discourse.org/t/javascript-hook-for-composer/137967)

<div class="topic-metadata">

**Author:** [@AlexanderFillbrunn](https://meta.discourse.org/u/AlexanderFillbrunn)\
**Replies:** 4\
**Last updated:** [January 7, 2020, 3:51pm UTC](https://meta.discourse.org/t/javascript-hook-for-composer/137967 "2020-01-07T15:51:30Z")

</div>

Hi, I had a previous post that did not get any response, maybe because the request was too narrow. So here I try again: I would like to hook into the compose editor so that when the user types a certain sequence of char…

---

## [Upgrading Discourse to Rails 6](https://meta.discourse.org/t/upgrading-discourse-to-rails-6/128004)

<div class="topic-metadata">

**Author:** [@kris.kotlarek](https://meta.discourse.org/u/kris.kotlarek)\
**Replies:** 17\
**Last updated:** [January 7, 2020, 1:38am UTC](https://meta.discourse.org/t/upgrading-discourse-to-rails-6/128004 "2020-01-07T01:38:59Z")

</div>

Hi Team, Rails 6.0.0 was released 25 days ago so I think it is a time to update Discourse :slight\_smile: There were a few steps I needed to do to make that work. Fix broken specs Add empty method trigger\_transaction…

---

## [+New wiki button](https://meta.discourse.org/t/new-wiki-button/137859)

<div class="topic-metadata">

**Author:** [@tpetrov](https://meta.discourse.org/u/tpetrov)\
**Replies:** 6\
**Last updated:** [January 6, 2020, 4:00pm UTC](https://meta.discourse.org/t/new-wiki-button/137859 "2020-01-06T16:00:04Z")

</div>

I’d like to create a button that will preset the new topic as a wiki (if the user has the wiki permissions). Is that possible, is there some url parameter that can be used for that?

---

## [Update a Post, via API PUT: request](https://meta.discourse.org/t/update-a-post-via-api-put-request/130252)

<div class="topic-metadata">

**Author:** [@alank](https://meta.discourse.org/u/alank)\
**Replies:** 6\
**Last updated:** [October 31, 2023, 8:29pm UTC](https://meta.discourse.org/t/update-a-post-via-api-put-request/130252 "2023-10-31T20:29:56Z")

</div>

Just to understand, the API Discourse docs mention this kind of… structure… { "post\[raw\]": "string", "post\[raw\_old\]": "string", "post\[edit\_reason\]": "string", "post\[cooked\]": "string" } Before I attempt this, does this…

---

## [Making Logout more accessible](https://meta.discourse.org/t/making-logout-more-accessible/137639)

<div class="topic-metadata">

**Author:** [@rogerco](https://meta.discourse.org/u/rogerco)\
**Replies:** 9\
**Last updated:** [January 5, 2020, 4:15pm UTC](https://meta.discourse.org/t/making-logout-more-accessible/137639 "2020-01-05T16:15:28Z")

</div>

Right from day one of using Discourse it has been a minor irritant that you have to click an extra time (compared with most other systems) to get to the Logout link. TopRightAvatar - name - logout. Most other places Lo…

---

## [Download and restore of site settings](https://meta.discourse.org/t/download-and-restore-of-site-settings/65230)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 17\
**Last updated:** [January 5, 2020, 6:49am UTC](https://meta.discourse.org/t/download-and-restore-of-site-settings/65230 "2020-01-05T06:49:01Z")

</div>

For sites interested in moving to Discourse from another forum or trying out Discourse before an import, it’s tedious to see that settings get moved from a test site to the live one, or that settings done on a live insta…

---

## [Set watch\_first\_post via API?](https://meta.discourse.org/t/set-watch-first-post-via-api/137581)

<div class="topic-metadata">

**Author:** [@DDo](https://meta.discourse.org/u/DDo)\
**Replies:** 2\
**Last updated:** [January 4, 2020, 5:53pm UTC](https://meta.discourse.org/t/set-watch-first-post-via-api/137581 "2020-01-04T17:53:12Z")

</div>

Can someone push me in the right direction? I want to set a certain category to watch first post when creating a new user via the api. Didn’ t find it in the fine doc :frowning:

---

## [Add onebox engine](https://meta.discourse.org/t/add-onebox-engine/137431)

<div class="topic-metadata">

**Author:** [@tran](https://meta.discourse.org/u/tran)\
**Replies:** 0\
**Last updated:** [December 31, 2019, 12:18pm UTC](https://meta.discourse.org/t/add-onebox-engine/137431 "2019-12-31T12:18:39Z")

</div>

I wrote some onebox engines.How to add them to my application. I see the Contributing (GitHub - discourse/onebox: (DEPRECATED) A gem for turning URLs into website previews · GitHub)steps, but my code is not good, and s…

---

## [One reason to disable preload for browser-update JS](https://meta.discourse.org/t/one-reason-to-disable-preload-for-browser-update-js/136693)

<div class="topic-metadata">

**Author:** [@Gulshan\_Kumar](https://meta.discourse.org/u/Gulshan_Kumar)\
**Replies:** 9\
**Last updated:** [December 31, 2019, 8:05am UTC](https://meta.discourse.org/t/one-reason-to-disable-preload-for-browser-update-js/136693 "2019-12-31T08:05:48Z")

</div>

Hi, I noticed Discourse HTML code having below kind of lines \<link rel='preload' href='/assets/browser-update-xyz24ff41586d6dcda055f0cfb41488724ba2e2d5271fef65ce5f480b46f9231d.js' as='script'/\> \<script src='/assets…

---

## [Integrate with DjangoRest and Vue.js](https://meta.discourse.org/t/integrate-with-djangorest-and-vue-js/136973)

<div class="topic-metadata">

**Author:** [@pablogg](https://meta.discourse.org/u/pablogg)\
**Replies:** 2\
**Last updated:** [December 30, 2019, 12:04pm UTC](https://meta.discourse.org/t/integrate-with-djangorest-and-vue-js/136973 "2019-12-30T12:04:40Z")

</div>

Hi, I am trying to integrate Discourse with a Djangorest + Vue.js project. How could I do SSO with DjangoRest? any idea?? Regards

---

## [Can you bypass the Activation Email](https://meta.discourse.org/t/can-you-bypass-the-activation-email/136830)

<div class="topic-metadata">

**Author:** [@paultaylor](https://meta.discourse.org/u/paultaylor)\
**Replies:** 4\
**Last updated:** [December 28, 2019, 8:17am UTC](https://meta.discourse.org/t/can-you-bypass-the-activation-email/136830 "2019-12-28T08:17:25Z")

</div>

Using api I created the user with activate true, and it says the user is activated when I look at the user from the admin console But when try to login as user it says: You can’t log in yet. We previously sent an acti…

---

## [Appending an import \> it didn't import any posts (solved)](https://meta.discourse.org/t/appending-an-import-it-didnt-import-any-posts-solved/137082)

<div class="topic-metadata">

**Author:** [@Queth](https://meta.discourse.org/u/Queth)\
**Replies:** 4\
**Last updated:** [December 27, 2019, 9:04pm UTC](https://meta.discourse.org/t/appending-an-import-it-didnt-import-any-posts-solved/137082 "2019-12-27T21:04:13Z")

</div>

Hello, Edit: apologies for posting in the wrong category. Also, it appears I have been working with the old database somehow so that isn’t surprising it didn’t add anything ;p trying again with new database, hope that w…

---

## [category.isGrandParent?](https://meta.discourse.org/t/category-isgrandparent/137127)

<div class="topic-metadata">

**Author:** [@rogerco](https://meta.discourse.org/u/rogerco)\
**Replies:** 1\
**Last updated:** [December 27, 2019, 3:37am UTC](https://meta.discourse.org/t/category-isgrandparent/137127 "2019-12-27T03:37:46Z")

</div>

Subcategories of subcategories are not allowed, it seems (shame, but there you go). However, while looking for something else, I stumbled across a function isGrandparent() in discourse/app/assets/javascripts/discourse/model…

---

## [Cannot import discourse libs in markdown extensions](https://meta.discourse.org/t/cannot-import-discourse-libs-in-markdown-extensions/137077)

<div class="topic-metadata">

**Author:** [@jack2](https://meta.discourse.org/u/jack2)\
**Replies:** 1\
**Last updated:** [December 26, 2019, 8:22pm UTC](https://meta.discourse.org/t/cannot-import-discourse-libs-in-markdown-extensions/137077 "2019-12-26T20:22:56Z")

</div>

Continuing the discussion from Developer's guide to Markdown extensions: My extension code is like this: import { iconHTML } from 'discourse-common/lib/icon-library' export function setup(helper) { ... } When doi…

---

## [CSS for individual tables in a post](https://meta.discourse.org/t/css-for-individual-tables-in-a-post/87284)

<div class="topic-metadata">

**Author:** [@BlackKnob](https://meta.discourse.org/u/BlackKnob)\
**Replies:** 12\
**Last updated:** [December 26, 2019, 3:52am UTC](https://meta.discourse.org/t/css-for-individual-tables-in-a-post/87284 "2019-12-26T03:52:00Z")

</div>

Is it possible to style tables in a post individually? Discourse removes all styling elements from HTML in a post.

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

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