# Development

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

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

**Page:** 143

---

## [Render server response to ember main view](https://meta.discourse.org/t/render-server-response-to-ember-main-view/47861)

<div class="topic-metadata">

**Author:** [@EndruK](https://meta.discourse.org/u/EndruK)\
**Replies:** 4\
**Last updated:** [August 4, 2016, 10:01am UTC](https://meta.discourse.org/t/render-server-response-to-ember-main-view/47861 "2016-08-04T10:01:39Z")

</div>

Hi, I retrieve some content from my server and want to render it to the Ember Main View. Currently I add a div called disraptorView and append via jQuery the Content retrieved from the server controller. The Problem i…

---

## [My custom route generates 404](https://meta.discourse.org/t/my-custom-route-generates-404/48170)

<div class="topic-metadata">

**Author:** [@Overgrow](https://meta.discourse.org/u/Overgrow)\
**Replies:** 3\
**Last updated:** [August 3, 2016, 4:27pm UTC](https://meta.discourse.org/t/my-custom-route-generates-404/48170 "2016-08-03T16:27:48Z")

</div>

Hello, I’m trying to get new site section working.. I’ve got .json part succesfully serving data (http://localhost/faq\_categories.json) But for HTML request (http://localhost/faq\_categories) Discourse generates 404 no…

---

## [Passing an api\_username for a user that does not exist returns a 500 with no useful context](https://meta.discourse.org/t/passing-an-api-username-for-a-user-that-does-not-exist-returns-a-500-with-no-useful-context/46407)

<div class="topic-metadata">

**Author:** [@cappslock](https://meta.discourse.org/u/cappslock)\
**Replies:** 9\
**Last updated:** [August 2, 2016, 6:51pm UTC](https://meta.discourse.org/t/passing-an-api-username-for-a-user-that-does-not-exist-returns-a-500-with-no-useful-context/46407 "2016-08-02T18:51:59Z")

</div>

On the beta branch, when attempting to create a POST on behalf of a user, I use the API and provide the username as the api\_username. Because of the way I’m managing users, the user may not exist in Discourse at this tim…

---

## [Migrating without getting seeds loaded?](https://meta.discourse.org/t/migrating-without-getting-seeds-loaded/47737)

<div class="topic-metadata">

**Author:** [@andrewroth](https://meta.discourse.org/u/andrewroth)\
**Replies:** 4\
**Last updated:** [July 31, 2016, 5:23pm UTC](https://meta.discourse.org/t/migrating-without-getting-seeds-loaded/47737 "2016-07-31T17:23:55Z")

</div>

Hi all, Is there a way to run migrations without getting the seeds also run? Actually, I suppose I should check – is that normal behavior? As it is what I’m seeing. In any case I’ve tried rake -T seed/seeds/migrate t…

---

## [Hide features for non-admin users through plugin](https://meta.discourse.org/t/hide-features-for-non-admin-users-through-plugin/47973)

<div class="topic-metadata">

**Author:** [@gingerman](https://meta.discourse.org/u/gingerman)\
**Replies:** 5\
**Last updated:** [July 29, 2016, 4:39pm UTC](https://meta.discourse.org/t/hide-features-for-non-admin-users-through-plugin/47973 "2016-07-29T16:39:46Z")

</div>

tldr: I would like to hide certain features in the page & api backend for non-admin users. For example, I would like to show the list of liked users only for admin users and not for everyone. The count can be seen by e…

---

## [When does the "System" user read topics?](https://meta.discourse.org/t/when-does-the-system-user-read-topics/47947)

<div class="topic-metadata">

**Author:** [@Tyler\_Humphress](https://meta.discourse.org/u/Tyler_Humphress)\
**Replies:** 1\
**Last updated:** [July 28, 2016, 11:43pm UTC](https://meta.discourse.org/t/when-does-the-system-user-read-topics/47947 "2016-07-28T23:43:14Z")

</div>

Working with the API and I’m curious both what the ‘unseen’ entails for topics, and when the system user “reads” a topic? I’m looking to posting new threads to a Discord server and was going to base it off of the unseen …

---

## [Adding visited class to topic-details instead of just topic-title](https://meta.discourse.org/t/adding-visited-class-to-topic-details-instead-of-just-topic-title/47850)

<div class="topic-metadata">

**Author:** [@andrewroth](https://meta.discourse.org/u/andrewroth)\
**Replies:** 5\
**Last updated:** [July 27, 2016, 3:27pm UTC](https://meta.discourse.org/t/adding-visited-class-to-topic-details-instead-of-just-topic-title/47850 "2016-07-27T15:27:31Z")

</div>

Hi all, The team I’m working with is using the topic previews plugin, and we want to make the plugin text the same as the title’s visited style if the topic has been visited. I quickly found out that that plugin caches…

---

## [Getting joined data for widget scope](https://meta.discourse.org/t/getting-joined-data-for-widget-scope/42264)

<div class="topic-metadata">

**Author:** [@stevenpslade](https://meta.discourse.org/u/stevenpslade)\
**Replies:** 15\
**Last updated:** [July 25, 2016, 4:44pm UTC](https://meta.discourse.org/t/getting-joined-data-for-widget-scope/42264 "2016-07-25T16:44:23Z")

</div>

Continuing the discussion from A tour of how the Widget (Virtual DOM) code in Discourse works: If I want to access something outside the scope of a widget that only has access to the User object, how would I do? I am sp…

---

## [Anyone interested in a mass automatic archiving plugin?](https://meta.discourse.org/t/anyone-interested-in-a-mass-automatic-archiving-plugin/47477)

<div class="topic-metadata">

**Author:** [@eriko](https://meta.discourse.org/u/eriko)\
**Replies:** 11\
**Last updated:** [July 25, 2016, 9:55pm UTC](https://meta.discourse.org/t/anyone-interested-in-a-mass-automatic-archiving-plugin/47477 "2016-07-25T21:55:21Z")

</div>

So our instance is used by a small college and there is a reasonable request to mark all topics as archived on a yearly basis. Something like all topic created before July 30th will be archived on September 1, Now I can…

---

## [Is \`topic\_users.last\_visited\_at\` supposed to be updated on every visit?](https://meta.discourse.org/t/is-topic-users-last-visited-at-supposed-to-be-updated-on-every-visit/42164)

<div class="topic-metadata">

**Author:** [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)\
**Replies:** 5\
**Last updated:** [July 25, 2016, 2:02pm UTC](https://meta.discourse.org/t/is-topic-users-last-visited-at-supposed-to-be-updated-on-every-visit/42164 "2016-07-25T14:02:24Z")

</div>

Am I completely misunderstanding entirely what these values are for? I’ve been using Data Explorer to review activity and noted that topic\_users.last\_visited\_at didn’t seem to be updating / showing topics I have recentl…

---

## [How to replace existing widget with my own](https://meta.discourse.org/t/how-to-replace-existing-widget-with-my-own/47433)

<div class="topic-metadata">

**Author:** [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Replies:** 1\
**Last updated:** [July 18, 2016, 8:07pm UTC](https://meta.discourse.org/t/how-to-replace-existing-widget-with-my-own/47433 "2016-07-18T20:07:20Z")

</div>

Now I know how to write a widget and display it via plugin. But how can I replace discourse’s existing widget like ‘hamburger-categories’ with my own custom widget.

---

## [Vagrant shows errors](https://meta.discourse.org/t/vagrant-shows-errors/47457)

<div class="topic-metadata">

**Author:** [@uwe\_keim](https://meta.discourse.org/u/uwe_keim)\
**Replies:** 1\
**Last updated:** [July 18, 2016, 1:32pm UTC](https://meta.discourse.org/t/vagrant-shows-errors/47457 "2016-07-18T13:32:22Z")

</div>

Following the Guide “Discourse as Your First Rails App” (hopefully), I’m having trouble running: vagrant up When doing so, I get some messages: Windows PowerShell Copyright (C) 2015 Microsoft Corporation. Alle Rechte …

---

## [Qunit only running lib: and preload-](https://meta.discourse.org/t/qunit-only-running-lib-and-preload/47252)

<div class="topic-metadata">

**Author:** [@dachary](https://meta.discourse.org/u/dachary)\
**Replies:** 3\
**Last updated:** [July 17, 2016, 5:30pm UTC](https://meta.discourse.org/t/qunit-only-running-lib-and-preload/47252 "2016-07-17T17:30:41Z")

</div>

Hi, As of 2e71e6fc6f72442a6b93200debfaa7f9c18be9bc running http://localhost:4000/qunit only shows the lib: and preload- suites for a total of 251 asserts. I was at 304f704 earlier today and did the following: git pul…

---

## [Plugin acceptance tests showcase](https://meta.discourse.org/t/plugin-acceptance-tests-showcase/47251)

<div class="topic-metadata">

**Author:** [@dachary](https://meta.discourse.org/u/dachary)\
**Replies:** 1\
**Last updated:** [July 13, 2016, 9:49pm UTC](https://meta.discourse.org/t/plugin-acceptance-tests-showcase/47251 "2016-07-13T21:49:40Z")

</div>

Hi, Is there a plugin with acceptance tests that are a good showcase from which I could get inspiration ? Cheers

---

## [Use ":" (colon) separator in redis cache](https://meta.discourse.org/t/use-colon-separator-in-redis-cache/47092)

<div class="topic-metadata">

**Author:** [@Baptiste\_Michaud](https://meta.discourse.org/u/Baptiste_Michaud)\
**Replies:** 1\
**Last updated:** [July 11, 2016, 1:38pm UTC](https://meta.discourse.org/t/use-colon-separator-in-redis-cache/47092 "2016-07-11T13:38:49Z")

</div>

This feature request is so little that I ashamed to bring it on the table. It’s considered as a best practice to use “:” instead of “\_” in redis keys name. I have a architecture where redis is share with other part of …

---

## [Vagrant: eviltrout user not found](https://meta.discourse.org/t/vagrant-eviltrout-user-not-found/47057)

<div class="topic-metadata">

**Author:** [@dachary](https://meta.discourse.org/u/dachary)\
**Replies:** 3\
**Last updated:** [July 11, 2016, 2:55pm UTC](https://meta.discourse.org/t/vagrant-eviltrout-user-not-found/47057 "2016-07-11T14:55:24Z")

</div>

Hi, After setting up vagrant for development I try to login as eviltrout as instructed but get an error. What am I missing ? Cheers Note: I ran bundle exec rake db:migrate

---

## [Separating the forum software into API and static website](https://meta.discourse.org/t/separating-the-forum-software-into-api-and-static-website/47041)

<div class="topic-metadata">

**Author:** [@seekerOfPeace](https://meta.discourse.org/u/seekerOfPeace)\
**Replies:** 3\
**Last updated:** [July 10, 2016, 4:53am UTC](https://meta.discourse.org/t/separating-the-forum-software-into-api-and-static-website/47041 "2016-07-10T04:53:07Z")

</div>

Hi, This is my first post. And i am new to this forum. Not sure if this question is asked before. My apologies if this question is repeated. I was wondering if technically it is possible. That the Discourse forum could…

---

## [Loading our SiteSetting properties before plugin loads](https://meta.discourse.org/t/loading-our-sitesetting-properties-before-plugin-loads/45572)

<div class="topic-metadata">

**Author:** [@def](https://meta.discourse.org/u/def)\
**Replies:** 14\
**Last updated:** [July 8, 2016, 9:33pm UTC](https://meta.discourse.org/t/loading-our-sitesetting-properties-before-plugin-loads/45572 "2016-07-08T21:33:32Z")

</div>

I’m aware that after\_initialize allows us to have access to the loaded properties in SiteSetting but I’m struggling to update my register\_middleware method. Since ruby isn’t my working language it’s more difficult for m…

---

## [Badge for posting image in specific topic](https://meta.discourse.org/t/badge-for-posting-image-in-specific-topic/46960)

<div class="topic-metadata">

**Author:** [@JoeZ](https://meta.discourse.org/u/JoeZ)\
**Replies:** 1\
**Last updated:** [July 8, 2016, 7:36am UTC](https://meta.discourse.org/t/badge-for-posting-image-in-specific-topic/46960 "2016-07-08T07:36:49Z")

</div>

I had an idea for a badge, one that’d work well for a site like @yetidragon http://forum.combustionpunks.co.uk/badges Assume a car forum. In this forum, there is a set topic for different makes, like Honda, Toyota, etc…

---

## [Can't create topic with tag using admin API due to insufficient trust level](https://meta.discourse.org/t/cant-create-topic-with-tag-using-admin-api-due-to-insufficient-trust-level/46972)

<div class="topic-metadata">

**Author:** [@cappslock](https://meta.discourse.org/u/cappslock)\
**Replies:** 9\
**Last updated:** [July 7, 2016, 10:24pm UTC](https://meta.discourse.org/t/cant-create-topic-with-tag-using-admin-api-due-to-insufficient-trust-level/46972 "2016-07-07T22:24:18Z")

</div>

I have not been able to create a topic with a tag using the admin API (i.e. when I include api\_key and api\_username on the query string). POSTing to /posts, I attempted to use the tags\[\] param I see in the UI’s calls to…

---

## [How to make a React.js-based page within Discourse that only re-uses its header and session?](https://meta.discourse.org/t/how-to-make-a-react-js-based-page-within-discourse-that-only-re-uses-its-header-and-session/46927)

<div class="topic-metadata">

**Author:** [@meglio](https://meta.discourse.org/u/meglio)\
**Replies:** 7\
**Last updated:** [July 7, 2016, 8:27am UTC](https://meta.discourse.org/t/how-to-make-a-react-js-based-page-within-discourse-that-only-re-uses-its-header-and-session/46927 "2016-07-07T08:27:57Z")

</div>

I would like to create a page under the Discourse’s main domain, for example: https://meta.discourse.org/my-page I’d like this page to get full access to Discourse js environment, but only show the main header: Und…

---

## [Widget action not found](https://meta.discourse.org/t/widget-action-not-found/46903)

<div class="topic-metadata">

**Author:** [@piratdavid](https://meta.discourse.org/u/piratdavid)\
**Replies:** 2\
**Last updated:** [July 7, 2016, 8:36am UTC](https://meta.discourse.org/t/widget-action-not-found/46903 "2016-07-07T08:36:58Z")

</div>

I’m using the new widget api to add a download button to the post menu. The button renders correctly but my action is not called. What am I doing wrong? I am attach an action in the same initializer as I am adding the bu…

---

## [Code fences toolbar button plugin](https://meta.discourse.org/t/code-fences-toolbar-button-plugin/44508)

<div class="topic-metadata">

**Author:** [@Mazzen](https://meta.discourse.org/u/Mazzen)\
**Replies:** 10\
**Last updated:** [July 4, 2016, 12:21pm UTC](https://meta.discourse.org/t/code-fences-toolbar-button-plugin/44508 "2016-07-04T12:21:54Z")

</div>

Hey guys, We are looking into adding the ability to insert code fences with ('syntax highlighting') as a button to the toolbar because code snippets are important in our installation and not all users know about code …

---

## [Issue with vagrant version following the dev guide](https://meta.discourse.org/t/issue-with-vagrant-version-following-the-dev-guide/46760)

<div class="topic-metadata">

**Author:** [@chagara](https://meta.discourse.org/u/chagara)\
**Replies:** 8\
**Last updated:** [July 3, 2016, 3:40pm UTC](https://meta.discourse.org/t/issue-with-vagrant-version-following-the-dev-guide/46760 "2016-07-03T15:40:10Z")

</div>

helo, I was following the guide in https://github.com/discourse/discourse/blob/master/docs/VAGRANT.md and I’m running into a couple of issues: Can someone update the vagrant VM listed in the guide above? I install th…

---

## [NULL first\_visited\_at dates in the topic\_users table](https://meta.discourse.org/t/null-first-visited-at-dates-in-the-topic-users-table/45996)

<div class="topic-metadata">

**Author:** [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Replies:** 5\
**Last updated:** [July 2, 2016, 10:27pm UTC](https://meta.discourse.org/t/null-first-visited-at-dates-in-the-topic-users-table/45996 "2016-07-02T22:27:51Z")

</div>

While investigating the topic users table last month Mysterious entries in topic\_users table: I noticed quite a few rows had NULL first\_visited\_at dates even though the last\_visited\_at date was not null. Not certain w…

---

## [How does Discourse implement live update notifications?](https://meta.discourse.org/t/how-does-discourse-implement-live-update-notifications/46610)

<div class="topic-metadata">

**Author:** [@piratdavid](https://meta.discourse.org/u/piratdavid)\
**Replies:** 6\
**Last updated:** [July 1, 2016, 4:37pm UTC](https://meta.discourse.org/t/how-does-discourse-implement-live-update-notifications/46610 "2016-07-01T16:37:20Z")

</div>

Hi, I have written a plugin that has a news feed with a lists of latest topics in a sidebar. It updates regularly by making an ajax call to /latest.json every few seconds. The existing latest page in the forum has the s…

---

## [decorateWidget does not return vDom element](https://meta.discourse.org/t/decoratewidget-does-not-return-vdom-element/46680)

<div class="topic-metadata">

**Author:** [@stevenpslade](https://meta.discourse.org/u/stevenpslade)\
**Replies:** 2\
**Last updated:** [June 30, 2016, 8:44pm UTC](https://meta.discourse.org/t/decoratewidget-does-not-return-vdom-element/46680 "2016-06-30T20:44:16Z")

</div>

Continuing the discussion from Accessing topic.views from widget or plugin initializer: I was encountering issues, as per the linked topic and I have boiled it down to this: I cannot seem to return a virtual-dom elemen…

---

## [Plugin outlets using site customizations not working after 1.6 upgrade](https://meta.discourse.org/t/plugin-outlets-using-site-customizations-not-working-after-1-6-upgrade/46440)

<div class="topic-metadata">

**Author:** [@Ashwani\_K\_Goel](https://meta.discourse.org/u/Ashwani_K_Goel)\
**Replies:** 3\
**Last updated:** [June 27, 2016, 2:34am UTC](https://meta.discourse.org/t/plugin-outlets-using-site-customizations-not-working-after-1-6-upgrade/46440 "2016-06-27T02:34:27Z")

</div>

Hi there, I recently rebuilt discourse and ended up updating from v1.5.0.beta3 +81 to 1.6.0.beta9 and all the outlets have stopped working. Something as simple as below in section of Customise won’t work: \<script type…

---

## [Running a single test](https://meta.discourse.org/t/running-a-single-test/46429)

<div class="topic-metadata">

**Author:** [@markwingerd](https://meta.discourse.org/u/markwingerd)\
**Replies:** 2\
**Last updated:** [June 25, 2016, 2:21am UTC](https://meta.discourse.org/t/running-a-single-test/46429 "2016-06-25T02:21:00Z")

</div>

Hi, Is there a way to run a single JavaScript test file? Thanks

---

## [Plugin Controller Method never called](https://meta.discourse.org/t/plugin-controller-method-never-called/42815)

<div class="topic-metadata">

**Author:** [@EndruK](https://meta.discourse.org/u/EndruK)\
**Replies:** 15\
**Last updated:** [June 23, 2016, 9:00am UTC](https://meta.discourse.org/t/plugin-controller-method-never-called/42815 "2016-06-23T09:00:02Z")

</div>

I there, I want to create a plugin with new routes and an own server-controller. My problem is that discourse knows that there is the controller and expects the method for the route. But the code in my controller meth…

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

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