Add support for external_id in topic creation#263
Add support for external_id in topic creation#263blake-discourse merged 4 commits intodiscourse:mainfrom
Conversation
…ic_creation Add support for external_id in topic creation
|
Ops, I forgot to assign reviewers :( @oblakeerickson |
|
@thomasrossetto awesome thank you! Looks like there is a small linting error. Not sure if you have stree locally, but you can run If not the diff looks like this And could you add a test? I think it can look similar to this tags one: So you might need to make a new fixture, and then in your expect check for the external_id in your response (I'm pretty sure its returned). |
|
@thomasrossetto just checking in if you need any help? Would love to get this in. There are just some small updates we need to make. |
|
Sorry @blake-discourse! I’ll try to get this done in the next few days 😉 |
|
I decided to take a quick look just now. Formatting looks fine now. About testing: if you provide an external ID, it doesn’t appear in the response. But I’ve implemented this API I can add a test for it if you think it’s necessary. |
blake-discourse
left a comment
There was a problem hiding this comment.
Looks great, thank you!
|
@thomasrossetto there is a new gem version now with your change https://rubygems.org/gems/discourse_api/versions/2.1.0 :) |
Hi,
According to the Discourse docs, I have added external_id to the list of supported options for topic creation.