Allow to process imported content. (add additional callbacks) #4515

Merged
merged 1 commit into from Oct 26, 2016

Conversation

4 participants
@mrded
Contributor

mrded commented Oct 26, 2016

Hello,

I'm trying to import content into Discourse using /script/import_scripts/base.rb, and I found that after creating a post created_post(post) is called.

def created_post(post)
  # override if needed
end

That is very nice, because I can trigger some post-migration things.

Unfortunately you have it only for posts. Can I ask you to implement something similar for Users, Topics, Categories, etc?

Thanks.

@mention-bot

This comment has been minimized.

Show comment
Hide comment
@mention-bot

mention-bot Oct 26, 2016

@mrded, thanks for your PR! By analyzing the history of the files in this pull request, we identified @eviltrout, @nlalonde and @gschlager to be potential reviewers.

@mrded, thanks for your PR! By analyzing the history of the files in this pull request, we identified @eviltrout, @nlalonde and @gschlager to be potential reviewers.

@discoursebot

This comment has been minimized.

Show comment
Hide comment
@discoursebot

discoursebot Oct 26, 2016

Thanks for contributing this pull request! Could you please sign our CLA so we can review it? http://www.discourse.org/cla

Thanks for contributing this pull request! Could you please sign our CLA so we can review it? http://www.discourse.org/cla

@nlalonde

This comment has been minimized.

Show comment
Hide comment
@nlalonde

nlalonde Oct 26, 2016

Member

Thanks!

Member

nlalonde commented Oct 26, 2016

Thanks!

@nlalonde nlalonde merged commit 3ff563e into discourse:master Oct 26, 2016

1 check was pending

continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
@mrded

This comment has been minimized.

Show comment
Hide comment
@mrded

mrded Oct 26, 2016

Contributor

Wow, so quick! :)

Contributor

mrded commented Oct 26, 2016

Wow, so quick! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment