Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add user_segment_id and permission_group_id as arguments to create HelpCenter article #67

Merged
merged 5 commits into from
Aug 28, 2019

Conversation

jolly7nap3
Copy link
Contributor

@jolly7nap3 jolly7nap3 commented Jul 12, 2019

There was a change in the JSON Format of Help Center Article.
The following items were added as required.

  • user_segment_id
  • permission_group_id

ref. https://developer.zendesk.com/rest_api/docs/help_center/articles

This PR follows the above changes.

@@ -45,6 +45,10 @@ class Zendesk2::HelpCenter::Article
attribute :vote_count, type: :integer # ro:yes required:no
# @return [Integer] The total sum of votes on this article
attribute :vote_sum, type: :integer # ro:yes required:no
# @return [Integer] The id of the user segment which defines who can see this article
attribute :user_segment_id, type: :integer, default: nil # ro:no required:yes
Copy link
Contributor Author

@jolly7nap3 jolly7nap3 Jul 12, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the documentation, user_segment_id is required but can be nil.
So, I set nil if user_segment_id is not given.

image

@jolly7nap3 jolly7nap3 force-pushed the fix_helpcenter_article_argument branch from 9381414 to fa04d4c Compare July 12, 2019 02:31
@jolly7nap3
Copy link
Contributor Author

@lanej I would like to ask you to review these changes.

@lanej lanej merged commit 0c8bac3 into lanej:master Aug 28, 2019
@lanej
Copy link
Owner

lanej commented Aug 28, 2019

Sorry for the delay. Thanks @jolly7nap3

@jolly7nap3
Copy link
Contributor Author

Thank you for your review!

@jolly7nap3 jolly7nap3 deleted the fix_helpcenter_article_argument branch August 29, 2019 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants