# Development

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

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

**Page:** 74

---

## [Cannot update group owners via Ruby or REST API](https://meta.discourse.org/t/cannot-update-group-owners-via-ruby-or-rest-api/98253)

<div class="topic-metadata">

**Author:** [@typeoneerror](https://meta.discourse.org/u/typeoneerror)\
**Replies:** 4\
**Last updated:** [August 10, 2021, 2:10pm UTC](https://meta.discourse.org/t/cannot-update-group-owners-via-ruby-or-rest-api/98253 "2021-08-10T14:10:19Z")

</div>

The ruby API shows an option to assign owner\_usernames on create\_group and update\_group. The create\_group seems to work (and the owner is there after the group is created) but it appears that owner\_usernames are only ass…

---

## [Getting \["BAD CSRF"\] when updating topic via API \[python\]](https://meta.discourse.org/t/getting-bad-csrf-when-updating-topic-via-api-python/199857)

<div class="topic-metadata">

**Author:** [@pedroleaoc](https://meta.discourse.org/u/pedroleaoc)\
**Replies:** 2\
**Last updated:** [August 9, 2021, 7:53pm UTC](https://meta.discourse.org/t/getting-bad-csrf-when-updating-topic-via-api-python/199857 "2021-08-09T19:53:18Z")

</div>

Hey folks, I am having issues updating a topic. I am able to get the id of the first post as shown here. This is confirmed by running the following: import requests from requests.structures import CaseInsensitiveDict u…

---

## [Loading topics in a new-plugin outlet I've added](https://meta.discourse.org/t/loading-topics-in-a-new-plugin-outlet-ive-added/199819)

<div class="topic-metadata">

**Author:** [@JQ331](https://meta.discourse.org/u/JQ331)\
**Replies:** 2\
**Last updated:** [August 9, 2021, 8:38pm UTC](https://meta.discourse.org/t/loading-topics-in-a-new-plugin-outlet-ive-added/199819 "2021-08-09T20:38:50Z")

</div>

Hi. I am trying to pass a list of topics to {{topic-list topics=myChosenTopics}} in a new template I have created in a plugin. So I am trying to figure out how to set the value for “myChosenTopics” in my js file so it c…

---

## [Meta is running our Ember CLI build](https://meta.discourse.org/t/meta-is-running-our-ember-cli-build/199836)

<div class="topic-metadata">

**Author:** [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Replies:** 0\
**Last updated:** [August 9, 2021, 4:13pm UTC](https://meta.discourse.org/t/meta-is-running-our-ember-cli-build/199836 "2021-08-09T16:13:24Z")

</div>

We’ve deployed meta using our new Ember CLI asset pipeline. The code is otherwise the same but we are building and packaging it in a new way. If all goes well there should be no differences, but since this is a new way …

---

## [Access category/group permission in javascript](https://meta.discourse.org/t/access-category-group-permission-in-javascript/199603)

<div class="topic-metadata">

**Author:** [@oca](https://meta.discourse.org/u/oca)\
**Replies:** 0\
**Last updated:** [August 7, 2021, 4:58pm UTC](https://meta.discourse.org/t/access-category-group-permission-in-javascript/199603 "2021-08-07T16:58:30Z")

</div>

Dear all, I’m trying to make a component that would display in the category banner what are the groups that can read this category. I’m imagining something like that: for (g of groups) { if (g.permission(category)…

---

## [How to get a Post model from a post id?](https://meta.discourse.org/t/how-to-get-a-post-model-from-a-post-id/199360)

<div class="topic-metadata">

**Author:** [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)\
**Replies:** 1\
**Last updated:** [August 6, 2021, 7:47am UTC](https://meta.discourse.org/t/how-to-get-a-post-model-from-a-post-id/199360 "2021-08-06T07:47:38Z")

</div>

I’m writing a component with an action that opens the composer. I want to send a REPLY action and reference a specific post. I can get the post object, no problem: ajax(\`/posts/${this.get('postId')}\`).then((post) =\> {…

---

## [How to access a different model in a connector?](https://meta.discourse.org/t/how-to-access-a-different-model-in-a-connector/198916)

<div class="topic-metadata">

**Author:** [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)\
**Replies:** 4\
**Last updated:** [August 5, 2021, 5:56pm UTC](https://meta.discourse.org/t/how-to-access-a-different-model-in-a-connector/198916 "2021-08-05T17:56:55Z")

</div>

I’m pretty close, but I can’t figure it out. I’ve created a connector here connectors/revision-user-details-after: In my connector class, I can access args and component via the shouldRender method, which lets me acc…

---

## [PostMenu's '\_extraButtons' isn't reset in between acceptance tests](https://meta.discourse.org/t/postmenus-extrabuttons-isnt-reset-in-between-acceptance-tests/197887)

<div class="topic-metadata">

**Author:** [@Connor\_Parrish](https://meta.discourse.org/u/Connor_Parrish)\
**Replies:** 1\
**Last updated:** [August 4, 2021, 9:11am UTC](https://meta.discourse.org/t/postmenus-extrabuttons-isnt-reset-in-between-acceptance-tests/197887 "2021-08-04T09:11:29Z")

</div>

When you’re conditionally adding a PostMenuButton using the plugin-api, the extra button is included in \_extraButtons in between acceptance tests. When I run tests, if the tests where the button shouldn’t be visible are…

---

## [Mark specific posts as "read" through the API?](https://meta.discourse.org/t/mark-specific-posts-as-read-through-the-api/198701)

<div class="topic-metadata">

**Author:** [@vagosduke](https://meta.discourse.org/u/vagosduke)\
**Replies:** 2\
**Last updated:** [July 30, 2021, 3:53pm UTC](https://meta.discourse.org/t/mark-specific-posts-as-read-through-the-api/198701 "2021-07-30T15:53:39Z")

</div>

Hello, I’m pulling posts through the discourse API. I’m using python for that. The request calls the following code (which makes a GET request essentially) and returns the .json similar to this post def topic\_by\_id…

---

## [Upload images from Github .md file using Discourse API](https://meta.discourse.org/t/upload-images-from-github-md-file-using-discourse-api/198661)

<div class="topic-metadata">

**Author:** [@marielavd](https://meta.discourse.org/u/marielavd)\
**Replies:** 1\
**Last updated:** [July 30, 2021, 12:26pm UTC](https://meta.discourse.org/t/upload-images-from-github-md-file-using-discourse-api/198661 "2021-07-30T12:26:17Z")

</div>

Hi all, I use a Node.js workflow to connect Github repository and Discourse through Discourse API. Every time someone pushes .md file in a repository automatically Discourse topic is created using POST request https://…

---

## [Bad CSRF on request from cloned session with Python](https://meta.discourse.org/t/bad-csrf-on-request-from-cloned-session-with-python/198348)

<div class="topic-metadata">

**Author:** [@Hans](https://meta.discourse.org/u/Hans)\
**Replies:** 2\
**Last updated:** [July 29, 2021, 10:32pm UTC](https://meta.discourse.org/t/bad-csrf-on-request-from-cloned-session-with-python/198348 "2021-07-29T22:32:11Z")

</div>

I am a moderator on a Discourse forum and I wanted to write a python program that will clone the session cookies out of the browser and run a simple user action like liking a post. I successfully cloned the session and w…

---

## [Getting Post ID with Topic ID - API Help Needed](https://meta.discourse.org/t/getting-post-id-with-topic-id-api-help-needed/44239)

<div class="topic-metadata">

**Author:** [@P16](https://meta.discourse.org/u/P16)\
**Replies:** 7\
**Last updated:** [July 28, 2021, 6:30pm UTC](https://meta.discourse.org/t/getting-post-id-with-topic-id-api-help-needed/44239 "2021-07-28T18:30:22Z")

</div>

Hi Everyone, We are setting up a new Discourse forum and needed some help with the API. One of the changes we are making is that we show the first post in a topic on the topic page (like Topic Preview). Since most post…

---

## [Message bus: channel subscription permission](https://meta.discourse.org/t/message-bus-channel-subscription-permission/197995)

<div class="topic-metadata">

**Author:** [@supercobra](https://meta.discourse.org/u/supercobra)\
**Replies:** 3\
**Last updated:** [July 28, 2021, 6:15pm UTC](https://meta.discourse.org/t/message-bus-channel-subscription-permission/197995 "2021-07-28T18:15:26Z")

</div>

Hi there, I understand message bus publishes to target users as per the documentation: However, I am wondering if there is a way to check permission when a client tries to subscribe to a channel, something like this: …

---

## [Access reports JSON data via Pipedream](https://meta.discourse.org/t/access-reports-json-data-via-pipedream/198367)

<div class="topic-metadata">

**Author:** [@paigen11](https://meta.discourse.org/u/paigen11)\
**Replies:** 2\
**Last updated:** [July 28, 2021, 1:31pm UTC](https://meta.discourse.org/t/access-reports-json-data-via-pipedream/198367 "2021-07-28T13:31:58Z")

</div>

Hello, I’m trying to pull Discourse report info via Pipedream so I can send it to Segment for analytics purposes. The Pipedream integration with Discourse works when I run the starting query of https://${auths.discours…

---

## [Change user registration date (created\_at) via API](https://meta.discourse.org/t/change-user-registration-date-created-at-via-api/172398)

<div class="topic-metadata">

**Author:** [@Daniil\_Bazhenov](https://meta.discourse.org/u/Daniil_Bazhenov)\
**Replies:** 7\
**Last updated:** [July 28, 2021, 8:07am UTC](https://meta.discourse.org/t/change-user-registration-date-created-at-via-api/172398 "2021-07-28T08:07:19Z")

</div>

Hi, I am experimenting with migration from another platform to Discourse using the API. I have a lot of users and I will migrate them to Discource. When I create a user, it has today’s creation date. But many users ar…

---

## [Autocompletion for a user field at signup](https://meta.discourse.org/t/autocompletion-for-a-user-field-at-signup/198182)

<div class="topic-metadata">

**Author:** [@vinyll](https://meta.discourse.org/u/vinyll)\
**Replies:** 3\
**Last updated:** [July 27, 2021, 1:57pm UTC](https://meta.discourse.org/t/autocompletion-for-a-user-field-at-signup/198182 "2021-07-27T13:57:45Z")

</div>

Hey all, I’ve been playing for a few weeks tweaking the forum. The doc for themes and components has definitely been very helpful! Lately I’ve added custom user fields at signup that can be edited after signup. My cur…

---

## [Hide flag actions for current user when they're flagged or the flagger](https://meta.discourse.org/t/hide-flag-actions-for-current-user-when-theyre-flagged-or-the-flagger/198202)

<div class="topic-metadata">

**Author:** [@Heliosurge](https://meta.discourse.org/u/Heliosurge)\
**Replies:** 4\
**Last updated:** [July 26, 2021, 2:47pm UTC](https://meta.discourse.org/t/hide-flag-actions-for-current-user-when-theyre-flagged-or-the-flagger/198202 "2021-07-26T14:47:02Z")

</div>

I apologize if this is maybe not the right place to ask. But it looks like it might be. I would like to use I am guessing a boolean to compare say current user to 2 things in flag review. The Flagger and target of fla…

---

## [Continuous Development Cycle Docs](https://meta.discourse.org/t/continuous-development-cycle-docs/198149)

<div class="topic-metadata">

**Author:** [@leog](https://meta.discourse.org/u/leog)\
**Replies:** 0\
**Last updated:** [July 25, 2021, 10:17pm UTC](https://meta.discourse.org/t/continuous-development-cycle-docs/198149 "2021-07-25T22:17:07Z")

</div>

Hello there :waving\_hand: I wanted to know if there is any documentation about how are things put together to have such a smooth development cycle using Docker, and it’s CI process, updating mechanism, and everything ar…

---

## [Doing something each time a user signs on, reading information from OAuth2 signup, and updating user avatars](https://meta.discourse.org/t/doing-something-each-time-a-user-signs-on-reading-information-from-oauth2-signup-and-updating-user-avatars/198023)

<div class="topic-metadata">

**Author:** [@Sxribe](https://meta.discourse.org/u/Sxribe)\
**Replies:** 0\
**Last updated:** [July 23, 2021, 9:00pm UTC](https://meta.discourse.org/t/doing-something-each-time-a-user-signs-on-reading-information-from-oauth2-signup-and-updating-user-avatars/198023 "2021-07-23T21:00:45Z")

</div>

Hey, I’ve been asked to write a plugin for Discourse to better integrate with a specific community’s systems. I’m trying to write a plugin that automatically changes a user’s avatar and username depending on specific in…

---

## [Add Multiple Header Buttons](https://meta.discourse.org/t/add-multiple-header-buttons/197808)

<div class="topic-metadata">

**Author:** [@401Ott](https://meta.discourse.org/u/401Ott)\
**Replies:** 2\
**Last updated:** [July 22, 2021, 6:51pm UTC](https://meta.discourse.org/t/add-multiple-header-buttons/197808 "2021-07-22T18:51:29Z")

</div>

Hi Team, I’ve enjoyed a CTA button applied using Kris’ code here. However, I would like to add another button next to the current one I have. Does anyone know how to modify this code to add another button? When duplicat…

---

## [Anyone thought of connecting Hasura to Discourse's Postgres database for a potentially more customised (or narrowed down) FE?](https://meta.discourse.org/t/anyone-thought-of-connecting-hasura-to-discourses-postgres-database-for-a-potentially-more-customised-or-narrowed-down-fe/149576)

<div class="topic-metadata">

**Author:** [@dnk8n](https://meta.discourse.org/u/dnk8n)\
**Replies:** 10\
**Last updated:** [July 22, 2021, 12:53pm UTC](https://meta.discourse.org/t/anyone-thought-of-connecting-hasura-to-discourses-postgres-database-for-a-potentially-more-customised-or-narrowed-down-fe/149576 "2021-07-22T12:53:37Z")

</div>

poll

---

## [Our default branch is now \`main\`](https://meta.discourse.org/t/our-default-branch-is-now-main/197598)

<div class="topic-metadata">

**Author:** [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Replies:** 8\
**Last updated:** [July 20, 2021, 7:49pm UTC](https://meta.discourse.org/t/our-default-branch-is-now-main/197598 "2021-07-20T19:49:40Z")

</div>

As of this morning, our main repo discourse/discourse has renamed its main branch from master to main to avoid slavery references. We’ve spent a long time slowly renaming all our branches and updating our code base to …

---

## [From post number to post id](https://meta.discourse.org/t/from-post-number-to-post-id/193247)

<div class="topic-metadata">

**Author:** [@marcozambi](https://meta.discourse.org/u/marcozambi)\
**Replies:** 2\
**Last updated:** [July 21, 2021, 4:43pm UTC](https://meta.discourse.org/t/from-post-number-to-post-id/193247 "2021-07-21T16:43:15Z")

</div>

Hi everybody! I’m wondering whether there’s a way through Discourse API to get the post id from a canonical post url such as https://myweb.site/t/\<topic\_id\>/\<post\_number\> where of course TN is the topic id/number and PN…

---

## [Combo-box with nameProperty not working as expected](https://meta.discourse.org/t/combo-box-with-nameproperty-not-working-as-expected/197694)

<div class="topic-metadata">

**Author:** [@paresy](https://meta.discourse.org/u/paresy)\
**Replies:** 0\
**Last updated:** [July 20, 2021, 6:58pm UTC](https://meta.discourse.org/t/combo-box-with-nameproperty-not-working-as-expected/197694 "2021-07-20T18:58:59Z")

</div>

Hi Dev’s! I am trying to write a plugin and wanted to use the combo-box, with an array of objects attached to the ‘contents’. I properly set ‘nameProperty’ to “name” and ‘valueProperty’ to null which fills the combo-box…

---

## [Multisite DISCOURSE\_RELATIVE\_URL\_ROOT](https://meta.discourse.org/t/multisite-discourse-relative-url-root/197627)

<div class="topic-metadata">

**Author:** [@kassius](https://meta.discourse.org/u/kassius)\
**Replies:** 1\
**Last updated:** [July 19, 2021, 9:19pm UTC](https://meta.discourse.org/t/multisite-discourse-relative-url-root/197627 "2021-07-19T21:19:47Z")

</div>

Is there any workaround to use DISCOURSE\_RELATIVE\_URL\_ROOT (also Subfolder support with Docker) on a per-site basis in multisite.yml? EDIT: eg., so that would be possible a multisite setup like 3 sites: domain.com, subd…

---

## [Using the Discourse API with Front App](https://meta.discourse.org/t/using-the-discourse-api-with-front-app/197234)

<div class="topic-metadata">

**Author:** [@pawlean](https://meta.discourse.org/u/pawlean)\
**Replies:** 6\
**Last updated:** [July 16, 2021, 4:17pm UTC](https://meta.discourse.org/t/using-the-discourse-api-with-front-app/197234 "2021-07-16T16:17:53Z")

</div>

Hey there folks! I’m currently working on an integration with the Front App and Discourse. As of now, I’m using Pipedream to connect them together. I managed to set up two workflows: Discourse → Front App. When a new …

---

## [\[A/B Testing\] Changing parent CSS class based on experiment variable](https://meta.discourse.org/t/a-b-testing-changing-parent-css-class-based-on-experiment-variable/196501)

<div class="topic-metadata">

**Author:** [@daniyal](https://meta.discourse.org/u/daniyal)\
**Replies:** 2\
**Last updated:** [July 15, 2021, 6:19pm UTC](https://meta.discourse.org/t/a-b-testing-changing-parent-css-class-based-on-experiment-variable/196501 "2021-07-15T18:19:21Z")

</div>

We have an existing theme which we want to experiment. An example would be to experiment different styles of topic list view. For this we are using Google Optimize A/B testing. Currently we plan to show theme without cha…

---

## [Apple M1 for discourse development](https://meta.discourse.org/t/apple-m1-for-discourse-development/194714)

<div class="topic-metadata">

**Author:** [@Ahmed\_Gagan](https://meta.discourse.org/u/Ahmed_Gagan)\
**Replies:** 6\
**Last updated:** [July 15, 2021, 8:22am UTC](https://meta.discourse.org/t/apple-m1-for-discourse-development/194714 "2021-07-15T08:22:08Z")

</div>

Hi there, I am planning to get Apple macbook pro M1 for discourse development and wanted to get some community dev’s review about Apple’s m1 processor with discourse development. Do you suggest getting Apple MacBook pr…

---

## [Problems with understanding the development of Discourse](https://meta.discourse.org/t/problems-with-understanding-the-development-of-discourse/196966)

<div class="topic-metadata">

**Author:** [@Mikhail\_Tyuftyaev](https://meta.discourse.org/u/Mikhail_Tyuftyaev)\
**Replies:** 5\
**Last updated:** [July 14, 2021, 10:30am UTC](https://meta.discourse.org/t/problems-with-understanding-the-development-of-discourse/196966 "2021-07-14T10:30:04Z")

</div>

Hello everyone. I have a discourse installed on my local computer on http://localhost:4200/ according to this guide. Here I develop a discourse, themes and plugins. I also have a discourse installed on a virtual mach…

---

## [Rename Users to People](https://meta.discourse.org/t/rename-users-to-people/196930)

<div class="topic-metadata">

**Author:** [@rudzainy](https://meta.discourse.org/u/rudzainy)\
**Replies:** 7\
**Last updated:** [July 14, 2021, 12:31am UTC](https://meta.discourse.org/t/rename-users-to-people/196930 "2021-07-14T00:31:48Z")

</div>

Don Norman, a person who is well-known and respected for pioneering the UX field in the 1990s and beyond, often reminds us that wording is important and we should focus on our goal of helping real, thinking, feeling peo…

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

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