# Development

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

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

**Page:** 90

---

## [Render template under user primary navigation](https://meta.discourse.org/t/render-template-under-user-primary-navigation/155884)

<div class="topic-metadata">

**Author:** [@wyudong](https://meta.discourse.org/u/wyudong)\
**Replies:** 1\
**Last updated:** [June 27, 2020, 2:36am UTC](https://meta.discourse.org/t/render-template-under-user-primary-navigation/155884 "2020-06-27T02:36:33Z")

</div>

My plugin is to add a new tab in user primary navigation and show a page when clicking it. But the page is not showed at the proper place. See: Like the other tabs (e.g. Badges), I want the template to render under t…

---

## [Custom field with a list](https://meta.discourse.org/t/custom-field-with-a-list/156027)

<div class="topic-metadata">

**Author:** [@Oliver\_Walker](https://meta.discourse.org/u/Oliver_Walker)\
**Replies:** 0\
**Last updated:** [June 26, 2020, 2:00pm UTC](https://meta.discourse.org/t/custom-field-with-a-list/156027 "2020-06-26T14:00:48Z")

</div>

How do I make and interact with a custom field with a list of strings from a plugin? I was thinking it will be something similar to the below code but I can’t find the correct way to do this. # array of strings T…

---

## [In html, id="ember+number." What does that mean?](https://meta.discourse.org/t/in-html-id-ember-number-what-does-that-mean/155963)

<div class="topic-metadata">

**Author:** [@JQ331](https://meta.discourse.org/u/JQ331)\
**Replies:** 1\
**Last updated:** [June 25, 2020, 8:38pm UTC](https://meta.discourse.org/t/in-html-id-ember-number-what-does-that-mean/155963 "2020-06-25T20:38:44Z")

</div>

Visible in the inspector, many elements on the html of discourse pages have ids of the form “ember\[somenumber\]”, like id=“ember36”. Can I use these ids to learn anything about the discourse codebase? For example, I’m of…

---

## [Discourse on k8s on a private network](https://meta.discourse.org/t/discourse-on-k8s-on-a-private-network/153243)

<div class="topic-metadata">

**Author:** [@Divyaanand\_Sinha](https://meta.discourse.org/u/Divyaanand_Sinha)\
**Replies:** 15\
**Last updated:** [June 8, 2020, 5:39pm UTC](https://meta.discourse.org/t/discourse-on-k8s-on-a-private-network/153243 "2020-06-08T17:39:22Z")

</div>

I am trying to setup discourse for my organisation on k8s. However there are few issues I am facing. When I try to deploy the bootstrapped image on kubernetes it tries to do stuff like git pull pups and git pull discou…

---

## [Get topic id when the topic show page loads](https://meta.discourse.org/t/get-topic-id-when-the-topic-show-page-loads/155620)

<div class="topic-metadata">

**Author:** [@JQ331](https://meta.discourse.org/u/JQ331)\
**Replies:** 21\
**Last updated:** [June 24, 2020, 2:38pm UTC](https://meta.discourse.org/t/get-topic-id-when-the-topic-show-page-loads/155620 "2020-06-24T14:38:11Z")

</div>

In my theme, when a topic show page is loaded, I need to get the id of that topic (and name too, if possible, but id would be sufficient). I then use this information in my theme to make an API call to get information a…

---

## [Vagrantfile in discourse\_docker repo - for production?](https://meta.discourse.org/t/vagrantfile-in-discourse-docker-repo-for-production/151356)

<div class="topic-metadata">

**Author:** [@pihentagy](https://meta.discourse.org/u/pihentagy)\
**Replies:** 3\
**Last updated:** [June 24, 2020, 10:57am UTC](https://meta.discourse.org/t/vagrantfile-in-discourse-docker-repo-for-production/151356 "2020-06-24T10:57:29Z")

</div>

Is the https://github.com/discourse/discourse\_docker/blob/master/Vagrantfile file supposed to be used for production? If yes, how one can reach the discourse installation inside? (by default it maps to 192.168.33.11) O…

---

## [Plugin Development Workflow](https://meta.discourse.org/t/plugin-development-workflow/155722)

<div class="topic-metadata">

**Author:** [@codechef](https://meta.discourse.org/u/codechef)\
**Replies:** 2\
**Last updated:** [June 24, 2020, 4:14am UTC](https://meta.discourse.org/t/plugin-development-workflow/155722 "2020-06-24T04:14:59Z")

</div>

How have you setup your plugin development workflow? I’m tinkering with some plugin development in a local docker dev environment. I d/boot\_dev --init and can run my plugin. The issue is when I make a change to the plug…

---

## [Link click badges](https://meta.discourse.org/t/link-click-badges/155750)

<div class="topic-metadata">

**Author:** [@gar1t](https://meta.discourse.org/u/gar1t)\
**Replies:** 3\
**Last updated:** [June 24, 2020, 4:13am UTC](https://meta.discourse.org/t/link-click-badges/155750 "2020-06-24T04:13:47Z")

</div>

What is the rationale for the incrementing count next to links in a page? I’m not asking in a challenging way. This looks odd but interesting. Why keep track of this? As it’s unfamiliar to me, I’m finding myself distrac…

---

## [License headers missing from many JS files](https://meta.discourse.org/t/license-headers-missing-from-many-js-files/155144)

<div class="topic-metadata">

**Author:** [@sudoman](https://meta.discourse.org/u/sudoman)\
**Replies:** 1\
**Last updated:** [June 23, 2020, 5:41am UTC](https://meta.discourse.org/t/license-headers-missing-from-many-js-files/155144 "2020-06-23T05:41:12Z")

</div>

It would be great if these files had license headers. It’s not clear what their licenses or who their authors are because the COPYRIGHT file at the project root only states that licenses are different for JQuery and Embe…

---

## [Posting custom user fields via the Ember side User model just ignores the fields](https://meta.discourse.org/t/posting-custom-user-fields-via-the-ember-side-user-model-just-ignores-the-fields/155650)

<div class="topic-metadata">

**Author:** [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Replies:** 0\
**Last updated:** [June 23, 2020, 5:30am UTC](https://meta.discourse.org/t/posting-custom-user-fields-via-the-ember-side-user-model-just-ignores-the-fields/155650 "2020-06-23T05:30:58Z")

</div>

Continuing the discussion from Adding Custom Fields via Plugin Outlet: I just tried to add a custom setting to user-preferences-profile outlet. I also reopened the controllers/preferences/profile.js to add my attribute…

---

## [Requesting help with failure finding DiscourseRedis::Connector running tests](https://meta.discourse.org/t/requesting-help-with-failure-finding-discourseredis-connector-running-tests/155599)

<div class="topic-metadata">

**Author:** [@mcdanlj](https://meta.discourse.org/u/mcdanlj)\
**Replies:** 6\
**Last updated:** [June 23, 2020, 4:12am UTC](https://meta.discourse.org/t/requesting-help-with-failure-finding-discourseredis-connector-running-tests/155599 "2020-06-23T04:12:12Z")

</div>

For the past some days, when I try to run tests locally, I am getting this error: $ bundle exec rake autospec ... An error occurred while loading ./spec/components/discourse\_redis\_spec.rb. Failure/Error: describe …

---

## [Long Running Sidekiq Job Restarting Internal Code](https://meta.discourse.org/t/long-running-sidekiq-job-restarting-internal-code/150773)

<div class="topic-metadata">

**Author:** [@Luke\_Clancy](https://meta.discourse.org/u/Luke_Clancy)\
**Replies:** 11\
**Last updated:** [June 22, 2020, 8:24pm UTC](https://meta.discourse.org/t/long-running-sidekiq-job-restarting-internal-code/150773 "2020-06-22T20:24:04Z")

</div>

I am currently creating a plugin related to meritmoot.com (which is in development and in rolling releases) and due to its use of outside data, I have a long-running sidekiq job that I am utilizing. Unfortunately for som…

---

## [How to get user by email via api](https://meta.discourse.org/t/how-to-get-user-by-email-via-api/145242)

<div class="topic-metadata">

**Author:** [@tpetrov](https://meta.discourse.org/u/tpetrov)\
**Replies:** 3\
**Last updated:** [June 22, 2020, 5:47pm UTC](https://meta.discourse.org/t/how-to-get-user-by-email-via-api/145242 "2020-06-22T17:47:16Z")

</div>

How can I get a user by email, instead of username in the API?

---

## [API Error: You are not permitted to view the requested resource](https://meta.discourse.org/t/api-error-you-are-not-permitted-to-view-the-requested-resource/35035)

<div class="topic-metadata">

**Author:** [@erik\_chan](https://meta.discourse.org/u/erik_chan)\
**Replies:** 13\
**Last updated:** [June 19, 2020, 11:55pm UTC](https://meta.discourse.org/t/api-error-you-are-not-permitted-to-view-the-requested-resource/35035 "2020-06-19T23:55:52Z")

</div>

I am receiving the following error: DiscourseApi::UnauthenticatedError: {"errors"=\>\["You are not permitted to view the requested resource."\], "error\_type"=\>"invalid\_access"} when I make the ruby API call ‘category\_lat…

---

## [Creating Parsing Extensions](https://meta.discourse.org/t/creating-parsing-extensions/154915)

<div class="topic-metadata">

**Author:** [@R4356th](https://meta.discourse.org/u/R4356th)\
**Replies:** 5\
**Last updated:** [June 19, 2020, 1:24pm UTC](https://meta.discourse.org/t/creating-parsing-extensions/154915 "2020-06-19T13:24:36Z")

</div>

Hello, I want to make a parsing extension for Discourse which would change text like say \[Hello World!\] to and many other images of this type. Do I need to make any changes to the existing Discourse files or can I just…

---

## [Can't set up dev environment due to cppjieba\_rb failing to install](https://meta.discourse.org/t/cant-set-up-dev-environment-due-to-cppjieba-rb-failing-to-install/104048)

<div class="topic-metadata">

**Author:** [@nsuchy](https://meta.discourse.org/u/nsuchy)\
**Replies:** 17\
**Last updated:** [June 19, 2020, 7:25am UTC](https://meta.discourse.org/t/cant-set-up-dev-environment-due-to-cppjieba-rb-failing-to-install/104048 "2020-06-19T07:25:11Z")

</div>

Hi, I am attempting to setup a development enviroment for Discourse. When running bundle install based on the instructions at Install Discourse on macOS for development I get an error. An error occurred while installi…

---

## [Using discourse as one part of a larger rails app?](https://meta.discourse.org/t/using-discourse-as-one-part-of-a-larger-rails-app/155312)

<div class="topic-metadata">

**Author:** [@Chris\_Dawson](https://meta.discourse.org/u/Chris_Dawson)\
**Replies:** 7\
**Last updated:** [June 19, 2020, 5:37am UTC](https://meta.discourse.org/t/using-discourse-as-one-part-of-a-larger-rails-app/155312 "2020-06-19T05:37:13Z")

</div>

Is it possible to use discourse as one component of a bigger rails app? My goals: Share the database. I would love to have my rails app use the same database as discourse uses. Share login: meaning, it would be great …

---

## [Should the password be plain text when creating a user through the API?](https://meta.discourse.org/t/should-the-password-be-plain-text-when-creating-a-user-through-the-api/66024)

<div class="topic-metadata">

**Author:** [@mikeredick](https://meta.discourse.org/u/mikeredick)\
**Replies:** 6\
**Last updated:** [June 19, 2020, 2:57am UTC](https://meta.discourse.org/t/should-the-password-be-plain-text-when-creating-a-user-through-the-api/66024 "2020-06-19T02:57:04Z")

</div>

I’m creating a small windows application that will use Discourse as the SSO provider. The first step in that chain is allowing the app to create a user through the Discourse API. I’ve got that working, however it seems …

---

## ["Score" in JSON APIs](https://meta.discourse.org/t/score-in-json-apis/155263)

<div class="topic-metadata">

**Author:** [@RiversideRocks](https://meta.discourse.org/u/RiversideRocks)\
**Replies:** 5\
**Last updated:** [June 18, 2020, 7:46pm UTC](https://meta.discourse.org/t/score-in-json-apis/155263 "2020-06-18T19:46:29Z")

</div>

Hello, I was looking through the JSON file of my user profile, and I noticed that on there is an object called “score”. What does this mean?

---

## [API connection via ipv6 vs. ipv4](https://meta.discourse.org/t/api-connection-via-ipv6-vs-ipv4/155024)

<div class="topic-metadata">

**Author:** [@bhuang61\_gmail.com](https://meta.discourse.org/u/bhuang61_gmail.com)\
**Replies:** 6\
**Last updated:** [June 18, 2020, 3:40pm UTC](https://meta.discourse.org/t/api-connection-via-ipv6-vs-ipv4/155024 "2020-06-18T15:40:35Z")

</div>

Hi all, I have a problem with accessing the API in a timely manner. I’m accessing the following URL: https://community.tenxguitar.com/c/7.json I’ve created an API key and a user and all seems good so far. When I tes…

---

## [Discord Integration with Webhooks](https://meta.discourse.org/t/discord-integration-with-webhooks/155082)

<div class="topic-metadata">

**Author:** [@Razboy20](https://meta.discourse.org/u/Razboy20)\
**Replies:** 2\
**Last updated:** [June 17, 2020, 8:24pm UTC](https://meta.discourse.org/t/discord-integration-with-webhooks/155082 "2020-06-17T20:24:43Z")

</div>

Hi! I’m wondering if it is possible that the ID of a discord user is sent on a user update through a web hook? I want to connect discourses discord authentication to a discord guild where I have a verification bot. (Sor…

---

## [Unable to GET user by External ID](https://meta.discourse.org/t/unable-to-get-user-by-external-id/154996)

<div class="topic-metadata">

**Author:** [@mpemburn](https://meta.discourse.org/u/mpemburn)\
**Replies:** 8\
**Last updated:** [June 17, 2020, 6:22pm UTC](https://meta.discourse.org/t/unable-to-get-user-by-external-id/154996 "2020-06-17T18:22:27Z")

</div>

Hi, I’ve been attempting to get a user by external ID using the docs: https://docs.discourse.org/#tag/Users/paths/~1u~1by-external~1{external\_id}.json/get It returns a “404 not found” with any user I try. Using the s…

---

## [Hiding the API Key](https://meta.discourse.org/t/hiding-the-api-key/155136)

<div class="topic-metadata">

**Author:** [@JQ331](https://meta.discourse.org/u/JQ331)\
**Replies:** 3\
**Last updated:** [June 17, 2020, 4:31pm UTC](https://meta.discourse.org/t/hiding-the-api-key/155136 "2020-06-17T16:31:04Z")

</div>

I would like to make calls to the JSON API at various points. Sometimes, I need to provide an API key–so I generate one on the admin dashboard, and need to include it in the API call. For example: var token = \[API KEY\] …

---

## [Add javascript to a theme component](https://meta.discourse.org/t/add-javascript-to-a-theme-component/152480)

<div class="topic-metadata">

**Author:** [@sbernhard](https://meta.discourse.org/u/sbernhard)\
**Replies:** 4\
**Last updated:** [June 17, 2020, 4:08pm UTC](https://meta.discourse.org/t/add-javascript-to-a-theme-component/152480 "2020-06-17T16:08:18Z")

</div>

Is there a good way to add javascript (one file, minimized) to a theme component so that it can be used in common/header.html?

---

## [Adding topic-list-after-title outlet to the mobile template](https://meta.discourse.org/t/adding-topic-list-after-title-outlet-to-the-mobile-template/155087)

<div class="topic-metadata">

**Author:** [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Replies:** 5\
**Last updated:** [June 17, 2020, 9:30am UTC](https://meta.discourse.org/t/adding-topic-list-after-title-outlet-to-the-mobile-template/155087 "2020-06-17T09:30:18Z")

</div>

In the events plugin, we currently override the mobile template. I’m very appreciative of the recent outlet additions to the mobile template which already make things a lot better. Just wondering whether we can have topi…

---

## [Customising the CSS of tags](https://meta.discourse.org/t/customising-the-css-of-tags/154636)

<div class="topic-metadata">

**Author:** [@Bhagyashri](https://meta.discourse.org/u/Bhagyashri)\
**Replies:** 5\
**Last updated:** [June 16, 2020, 4:25am UTC](https://meta.discourse.org/t/customising-the-css-of-tags/154636 "2020-06-16T04:25:39Z")

</div>

how to change view for topics? and how to add new tags in our side community forum.

---

## [Problem adding to post admin menu via plugin](https://meta.discourse.org/t/problem-adding-to-post-admin-menu-via-plugin/154913)

<div class="topic-metadata">

**Author:** [@LeoDavidson](https://meta.discourse.org/u/LeoDavidson)\
**Replies:** 0\
**Last updated:** [June 15, 2020, 6:15pm UTC](https://meta.discourse.org/t/problem-adding-to-post-admin-menu-via-plugin/154913 "2020-06-15T18:15:43Z")

</div>

I am stuck trying to update my plugin ( Bump Reset plugin - Annotated to help new devs ) to look right in the current version of Discourse. The source file in question is here: discourse-reset-bump/assets/javascripts/…

---

## [Approving a new user with ruby console - 20200613.042854](https://meta.discourse.org/t/approving-a-new-user-with-ruby-console-20200613-042854/154690)

<div class="topic-metadata">

**Author:** [@csmu](https://meta.discourse.org/u/csmu)\
**Replies:** 2\
**Last updated:** [June 15, 2020, 7:49am UTC](https://meta.discourse.org/t/approving-a-new-user-with-ruby-console-20200613-042854/154690 "2020-06-15T07:49:53Z")

</div>

This was working around March and is now failing for some reason. ReviewableUser.find\_by(target:user).perform(csmu, :approve\_user) NoMethodError: undefined method \`perform' for nil:NilClass user and csmu are valid obje…

---

## [How to Add Ngrok to Allowed Hosts](https://meta.discourse.org/t/how-to-add-ngrok-to-allowed-hosts/144002)

<div class="topic-metadata">

**Author:** [@Mikitos](https://meta.discourse.org/u/Mikitos)\
**Replies:** 2\
**Last updated:** [June 15, 2020, 5:06am UTC](https://meta.discourse.org/t/how-to-add-ngrok-to-allowed-hosts/144002 "2020-06-15T05:06:34Z")

</div>

Currently trying to connect to my site with ngrok, however I’m not familiar with with adding it to Discourse’s host whitelist? My installation is based on this guide Install Discourse on Windows for development

---

## [How do you verify a user with ruby?](https://meta.discourse.org/t/how-do-you-verify-a-user-with-ruby/154740)

<div class="topic-metadata">

**Author:** [@csmu](https://meta.discourse.org/u/csmu)\
**Replies:** 2\
**Last updated:** [June 14, 2020, 1:25pm UTC](https://meta.discourse.org/t/how-do-you-verify-a-user-with-ruby/154740 "2020-06-14T13:25:17Z")

</div>

Given a user is created with a username and an email address … how do you verify that user in ruby?

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

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