# Development

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

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

**Page:** 132

---

## [Add the SSO record external id to UserSerializer](https://meta.discourse.org/t/add-the-sso-record-external-id-to-userserializer/60751)

<div class="topic-metadata">

**Author:** [@simon](https://meta.discourse.org/u/simon)\
**Replies:** 3\
**Last updated:** [July 5, 2017, 8:27pm UTC](https://meta.discourse.org/t/add-the-sso-record-external-id-to-userserializer/60751 "2017-07-05T20:27:37Z")

</div>

Could the user’s SSO record external\_id be added to the UserSerializer? It would be useful for syncing Discourse user data with the SSO provider’s user data through the user event webhook.

---

## [Send paramaters function @computed](https://meta.discourse.org/t/send-paramaters-function-computed/65568)

<div class="topic-metadata">

**Author:** [@Yohan](https://meta.discourse.org/u/Yohan)\
**Replies:** 3\
**Last updated:** [July 5, 2017, 10:01am UTC](https://meta.discourse.org/t/send-paramaters-function-computed/65568 "2017-07-05T10:01:00Z")

</div>

Hi, I have a problem with a function in ES6. I have made a @computed function who calls a function in the ruby Tag component. It works fine. But i need to send a parameter from my ES6 function to the component… and i c…

---

## [Redirects performance: permalinks vs nginx](https://meta.discourse.org/t/redirects-performance-permalinks-vs-nginx/65482)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 7\
**Last updated:** [July 3, 2017, 5:18pm UTC](https://meta.discourse.org/t/redirects-performance-permalinks-vs-nginx/65482 "2017-07-03T17:18:13Z")

</div>

I’ve just submitted a PR for the mybb importer that includes permalinks for users, categories, and topics (in Discourse terminology. The person I did it for is concerned that having Discourse handle these will be less ef…

---

## [How to adjust topics so they load in a modal?](https://meta.discourse.org/t/how-to-adjust-topics-so-they-load-in-a-modal/65456)

<div class="topic-metadata">

**Author:** [@mastef](https://meta.discourse.org/u/mastef)\
**Replies:** 6\
**Last updated:** [July 3, 2017, 5:31am UTC](https://meta.discourse.org/t/how-to-adjust-topics-so-they-load-in-a-modal/65456 "2017-07-03T05:31:39Z")

</div>

Ideally I’d like topics to show up in a modal sliding in from the right side, while the category view is still shown in the background. Similar to the old Product Hunt layout, or the reddit iPad app layout ( https://you…

---

## [Rails Girls Summer of Code](https://meta.discourse.org/t/rails-girls-summer-of-code/65458)

<div class="topic-metadata">

**Author:** [@kajatiger](https://meta.discourse.org/u/kajatiger)\
**Replies:** 4\
**Last updated:** [July 2, 2017, 6:24pm UTC](https://meta.discourse.org/t/rails-girls-summer-of-code/65458 "2017-07-02T18:24:38Z")

</div>

Hi there, we are a team from Berlin and we will work on the Discourse app during the next three months. If you have any suggestions what we should be looking at, please let us know here! We are happy to start coding s…

---

## [How to render template when adding custom route in discourse](https://meta.discourse.org/t/how-to-render-template-when-adding-custom-route-in-discourse/64374)

<div class="topic-metadata">

**Author:** [@net\_deamon](https://meta.discourse.org/u/net_deamon)\
**Replies:** 1\
**Last updated:** [July 2, 2017, 3:52am UTC](https://meta.discourse.org/t/how-to-render-template-when-adding-custom-route-in-discourse/64374 "2017-07-02T03:52:04Z")

</div>

I am trying to add a custom route (non-admin route) discourse. Required route http://discourse.org/customroute I am able to add the route, but the problem is that instead of rendering the template, it just outputs the…

---

## [How to identify "about" topics?](https://meta.discourse.org/t/how-to-identify-about-topics/65403)

<div class="topic-metadata">

**Author:** [@jack2](https://meta.discourse.org/u/jack2)\
**Replies:** 3\
**Last updated:** [July 1, 2017, 10:18am UTC](https://meta.discourse.org/t/how-to-identify-about-topics/65403 "2017-07-01T10:18:39Z")

</div>

I’m using the API to delete a category and all related topics. Here is what I do: I get the category topic list I iterate over category topics and delete them I delete the empty category The category “about” topic can…

---

## [Discourse session variables](https://meta.discourse.org/t/discourse-session-variables/65260)

<div class="topic-metadata">

**Author:** [@Sergiodev](https://meta.discourse.org/u/Sergiodev)\
**Replies:** 2\
**Last updated:** [June 29, 2017, 6:51am UTC](https://meta.discourse.org/t/discourse-session-variables/65260 "2017-06-29T06:51:48Z")

</div>

Hi everyone. I want to know if i can retrieve a login session variable from the Discourse login, to use it in another route with NodeJS installed, so they can only acccess to the content of this page if they are logged…

---

## [Best approach to maintain a custom discobot command](https://meta.discourse.org/t/best-approach-to-maintain-a-custom-discobot-command/65071)

<div class="topic-metadata">

**Author:** [@rudygodoy](https://meta.discourse.org/u/rudygodoy)\
**Replies:** 2\
**Last updated:** [June 24, 2017, 9:51pm UTC](https://meta.discourse.org/t/best-approach-to-maintain-a-custom-discobot-command/65071 "2017-06-24T21:51:10Z")

</div>

Hi, before discourse-narrative-bot was merged into core, I did what was obvious to implement a custom command: fork it and implement what I wanted discobot to do, then configured the plugin from my repo, pretty simple an…

---

## [Adding the wp-id parameter to topics created through WordPress](https://meta.discourse.org/t/adding-the-wp-id-parameter-to-topics-created-through-wordpress/64630)

<div class="topic-metadata">

**Author:** [@simon](https://meta.discourse.org/u/simon)\
**Replies:** 11\
**Last updated:** [June 22, 2017, 10:15pm UTC](https://meta.discourse.org/t/adding-the-wp-id-parameter-to-topics-created-through-wordpress/64630 "2017-06-22T22:15:07Z")

</div>

When a new topic is created through the WP Discourse plugin, the plugin is sending a wp-id (with a hyphen) parameter to Discourse. It’s been doing this since before I started working on the plugin. It doesn’t seem that i…

---

## [SSO user creation error](https://meta.discourse.org/t/sso-user-creation-error/53946)

<div class="topic-metadata">

**Author:** [@aedensixty](https://meta.discourse.org/u/aedensixty)\
**Replies:** 2\
**Last updated:** [June 20, 2017, 8:04pm UTC](https://meta.discourse.org/t/sso-user-creation-error/53946 "2017-06-20T20:04:42Z")

</div>

I am getting the error below. Is this due to the avatar\_url beind undefined or has anyone seen this before? Are there defaults I need to set? Can I just not pass a parameter if empty/undefined? Failed to create or look…

---

## [API endpoint for voting](https://meta.discourse.org/t/api-endpoint-for-voting/64754)

<div class="topic-metadata">

**Author:** [@drzraf](https://meta.discourse.org/u/drzraf)\
**Replies:** 5\
**Last updated:** [June 19, 2017, 4:21pm UTC](https://meta.discourse.org/t/api-endpoint-for-voting/64754 "2017-06-19T16:21:30Z")

</div>

That would open the vote feature to mobile user, external app’, … The API seems to lack a “votes” definition The Poll::vote and add\_anonymous\_votes function is already there, but lack a controller but since votes are a…

---

## [How to use api.addHeaderPanel?](https://meta.discourse.org/t/how-to-use-api-addheaderpanel/64065)

<div class="topic-metadata">

**Author:** [@kara-todd](https://meta.discourse.org/u/kara-todd)\
**Replies:** 3\
**Last updated:** [June 9, 2017, 7:40pm UTC](https://meta.discourse.org/t/how-to-use-api-addheaderpanel/64065 "2017-06-09T19:40:40Z")

</div>

I’ve been trying to add an interactive nav icon to our top menu bar. So far I have: created a widget found the addHeaderPanel and called api.addHeaderPanel('custom-menu-button', 'customMenu') However, this is where I…

---

## [Generate Letter Icon from Name instead of Username?](https://meta.discourse.org/t/generate-letter-icon-from-name-instead-of-username/64167)

<div class="topic-metadata">

**Author:** [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Replies:** 7\
**Last updated:** [June 8, 2017, 5:54pm UTC](https://meta.discourse.org/t/generate-letter-icon-from-name-instead-of-username/64167 "2017-06-08T17:54:48Z")

</div>

I’m doing an import and all of the usernames are integers. Most users have avatars, but those that don’t end up with something like as their avatar. Is there some way to have them generated by their name rather than us…

---

## [API: cannot update user](https://meta.discourse.org/t/api-cannot-update-user/63876)

<div class="topic-metadata">

**Author:** [@Massimo\_Redaelli](https://meta.discourse.org/u/Massimo_Redaelli)\
**Replies:** 13\
**Last updated:** [June 3, 2017, 2:30pm UTC](https://meta.discourse.org/t/api-cannot-update-user/63876 "2017-06-03T14:30:01Z")

</div>

I’m trying to use the API to sync user data. I was able to, for instance, add a user to a group with a PUT to groups/:id/members.json However, now I’d like to update fields in the user profile – the name, for instance.…

---

## [New helper to test \`DiscourseEvents\` triggers in RSpec](https://meta.discourse.org/t/new-helper-to-test-discourseevents-triggers-in-rspec/63729)

<div class="topic-metadata">

**Author:** [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Replies:** 0\
**Last updated:** [June 1, 2017, 12:50pm UTC](https://meta.discourse.org/t/new-helper-to-test-discourseevents-triggers-in-rspec/63729 "2017-06-01T12:50:51Z")

</div>

Previously, we used to test that a DiscourseEvent has been triggered by mocking the method call using Mocha which looks something like: DiscourseEvent.expects(:trigger).with(:user\_created) However, these mocks make tes…

---

## [Docker image improvements using multi-stage builds and build args](https://meta.discourse.org/t/docker-image-improvements-using-multi-stage-builds-and-build-args/63677)

<div class="topic-metadata">

**Author:** [@ibnesayeed](https://meta.discourse.org/u/ibnesayeed)\
**Replies:** 1\
**Last updated:** [June 1, 2017, 5:54am UTC](https://meta.discourse.org/t/docker-image-improvements-using-multi-stage-builds-and-build-args/63677 "2017-06-01T05:54:09Z")

</div>

People coming from the Docker background, but new to Discourse, often seem to wonder about question like: How the Docker image is setup? Why do we need a bootstrap process? Why is there a launcher script? Why can’t we …

---

## [How to render avatar images to .hbs template with user\_id](https://meta.discourse.org/t/how-to-render-avatar-images-to-hbs-template-with-user-id/63571)

<div class="topic-metadata">

**Author:** [@codechef](https://meta.discourse.org/u/codechef)\
**Replies:** 2\
**Last updated:** [May 31, 2017, 5:42pm UTC](https://meta.discourse.org/t/how-to-render-avatar-images-to-hbs-template-with-user-id/63571 "2017-05-31T17:42:14Z")

</div>

I’m probably making this more difficult than it needs to be. I have a plug-in with a handlebars template. Within it, I have access to a list of objects that include a user\_id. From that user\_id, I’d like to render an ava…

---

## [Usage rights of CoC](https://meta.discourse.org/t/usage-rights-of-coc/63615)

<div class="topic-metadata">

**Author:** [@AlexandraB](https://meta.discourse.org/u/AlexandraB)\
**Replies:** 10\
**Last updated:** [May 30, 2017, 9:41pm UTC](https://meta.discourse.org/t/usage-rights-of-coc/63615 "2017-05-30T21:41:11Z")

</div>

How are community managers and communities allowed to leverage and use the Discourse CoC for their communities? Is this under a creative commons or something? What are the usage rights?

---

## [Regular expression (non-English)](https://meta.discourse.org/t/regular-expression-non-english/63471)

<div class="topic-metadata">

**Author:** [@Stranik](https://meta.discourse.org/u/Stranik)\
**Replies:** 4\
**Last updated:** [May 28, 2017, 4:57am UTC](https://meta.discourse.org/t/regular-expression-non-english/63471 "2017-05-28T04:57:23Z")

</div>

Continuation: Tag search in tags dropdown box does not work for non-English characters file: discourse\_tagging.rb - term.gsub!(/\[^a-z0-9\\.\\-\\\_\]\*/, '') + term.gsub!(/\[^a-z0-9а-я\\.\\-\\\_\]\*/, '') All checks have…

---

## [Hacking discourse to create sub-sub categories](https://meta.discourse.org/t/hacking-discourse-to-create-sub-sub-categories/63454)

<div class="topic-metadata">

**Author:** [@Mehal\_Shah](https://meta.discourse.org/u/Mehal_Shah)\
**Replies:** 7\
**Last updated:** [May 27, 2017, 10:11pm UTC](https://meta.discourse.org/t/hacking-discourse-to-create-sub-sub-categories/63454 "2017-05-27T22:11:22Z")

</div>

Hi folks, I need to create one additional level of categorization for our forum for Code.org. I’d like people to click a category (High School Computer Science), and see a list of our courses (Course 1, Course 2, Course…

---

## [Bootsnap not compiling on branch main ( FreeBSD 10.0 ) \[ fatal error: sys/xattr.h: No such file or directory #include \<sys/xattr.h\> \]](https://meta.discourse.org/t/bootsnap-not-compiling-on-branch-main-freebsd-10-0-fatal-error-sys-xattr-h-no-such-file-or-directory-include-sys-xattr-h/62723)

<div class="topic-metadata">

**Author:** [@HugeSpider](https://meta.discourse.org/u/HugeSpider)\
**Replies:** 3\
**Last updated:** [May 26, 2017, 1:39pm UTC](https://meta.discourse.org/t/bootsnap-not-compiling-on-branch-main-freebsd-10-0-fatal-error-sys-xattr-h-no-such-file-or-directory-include-sys-xattr-h/62723 "2017-05-26T13:39:13Z")

</div>

branch: master OS: 10.3-STABLE FreeBSD since bootsnap was added on May 11 when i try to env GYP\_DEFINES="make\_clang\_dir=" CXX=/usr/bin/clang++ CC=/usr/bin/clang bundle install --without development test I get error (…

---

## [How do I access SSO external\_id in widget?](https://meta.discourse.org/t/how-do-i-access-sso-external-id-in-widget/63378)

<div class="topic-metadata">

**Author:** [@rohmann](https://meta.discourse.org/u/rohmann)\
**Replies:** 2\
**Last updated:** [May 25, 2017, 9:38pm UTC](https://meta.discourse.org/t/how-do-i-access-sso-external-id-in-widget/63378 "2017-05-25T21:38:01Z")

</div>

I need to know my user’s ID from the our external user database to connect an integration. Some context: HBS {{mount-widget widget="my-custom-widget" args=(hash user=user)}} Widget export default createWidget('topic-…

---

## [Vagrant installation requires wget](https://meta.discourse.org/t/vagrant-installation-requires-wget/63225)

<div class="topic-metadata">

**Author:** [@GlitchMr](https://meta.discourse.org/u/GlitchMr)\
**Replies:** 1\
**Last updated:** [May 23, 2017, 11:07pm UTC](https://meta.discourse.org/t/vagrant-installation-requires-wget/63225 "2017-05-23T23:07:29Z")

</div>

Without wget, Vagrant tries to download Discourse using some other way than wget (curl, perhaps?), and that for some reason doesn’t work (on Arch Linux, I wonder if it’s any different on other operating systems). Without…

---

## [Rate limits on getting a single topic](https://meta.discourse.org/t/rate-limits-on-getting-a-single-topic/63162)

<div class="topic-metadata">

**Author:** [@Bouncey](https://meta.discourse.org/u/Bouncey)\
**Replies:** 1\
**Last updated:** [May 22, 2017, 11:40pm UTC](https://meta.discourse.org/t/rate-limits-on-getting-a-single-topic/63162 "2017-05-22T23:40:11Z")

</div>

I am trying a pull all topics into an elasticsearch instance to enable them to be searchable from our main website. One issue I have is I keep hitting a rate limit that responds with an empty string. I haveset up an int…

---

## [Http trace for a post](https://meta.discourse.org/t/http-trace-for-a-post/62993)

<div class="topic-metadata">

**Author:** [@gchiu](https://meta.discourse.org/u/gchiu)\
**Replies:** 5\
**Last updated:** [May 22, 2017, 10:23am UTC](https://meta.discourse.org/t/http-trace-for-a-post/62993 "2017-05-22T10:23:14Z")

</div>

I’m looking on how to do a HTTP POST to create a reply message to an existing topic. The docs here Discourse API Docs say that for a HTTP POST curl -X POST "Content-Type: multipart/form-data;" -F "api\_key=714552c6148e1…

---

## [Allocating a response (comment)](https://meta.discourse.org/t/allocating-a-response-comment/63054)

<div class="topic-metadata">

**Author:** [@Stranik](https://meta.discourse.org/u/Stranik)\
**Replies:** 0\
**Last updated:** [May 20, 2017, 10:00am UTC](https://meta.discourse.org/t/allocating-a-response-comment/63054 "2017-05-20T10:00:36Z")

</div>

I try to bring out (for testing) posts that are comments. import { withPluginApi } from 'discourse/lib/plugin-api'; import RawHtml from 'discourse/widgets/raw-html'; //TABLE posts: reply\_to\_post\_number integer functio…

---

## [PUT requests to Suspend account using different content-type on 1.5](https://meta.discourse.org/t/put-requests-to-suspend-account-using-different-content-type-on-1-5/42789)

<div class="topic-metadata">

**Author:** [@citadelgrad](https://meta.discourse.org/u/citadelgrad)\
**Replies:** 9\
**Last updated:** [May 19, 2017, 8:57pm UTC](https://meta.discourse.org/t/put-requests-to-suspend-account-using-different-content-type-on-1-5/42789 "2017-05-19T20:57:14Z")

</div>

Our site is using Discourse 1.5.1 and I believe our hosting provider upgraded us from 1.4 last week. I have no control over this. It appears that all API responses from Discourse have the content-type of “application/js…

---

## [Plugins not loading. What am I missing?](https://meta.discourse.org/t/plugins-not-loading-what-am-i-missing/62885)

<div class="topic-metadata">

**Author:** [@rohmann](https://meta.discourse.org/u/rohmann)\
**Replies:** 3\
**Last updated:** [May 17, 2017, 10:07pm UTC](https://meta.discourse.org/t/plugins-not-loading-what-am-i-missing/62885 "2017-05-17T22:07:44Z")

</div>

I’m attempting to write a custom plugin. I’ve got a development environment setup with vagrant. I’ve created my own plugin # name: my-plugin # about: Customizations # version: 0.0.1 # authors: Alex I’ve also installed …

---

## [Where is the user content stored in the database?](https://meta.discourse.org/t/where-is-the-user-content-stored-in-the-database/62759)

<div class="topic-metadata">

**Author:** [@kodab](https://meta.discourse.org/u/kodab)\
**Replies:** 9\
**Last updated:** [May 17, 2017, 2:05pm UTC](https://meta.discourse.org/t/where-is-the-user-content-stored-in-the-database/62759 "2017-05-17T14:05:26Z")

</div>

Hi guys, I’m currently exploring the postgres discourse database for a migration to discourse. Now I know that postgres holds the content of a discourse board, right? But I can’t find it. If I create a new topic and c…

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

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