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

Support getting/setting of Help Center article's content_tag_ids field #557

Closed
andy-may-at opened this issue Mar 8, 2023 · 0 comments
Closed

Comments

@andy-may-at
Copy link
Contributor

andy-may-at commented Mar 8, 2023

Help Center articles have a (mutable & optional) 'content_tag_ids' field
The documentation says that the field contains 'The list of content tags attached to the article'

This field is not currently exposed in the Article model & so cannot be read/written
Feature request is to add it to the model.

Additional context
N.B. a potential risk of adding a new field to the model seems to be that any existing code using the client that was doing a overwrite of an existing article (by calling Zendesk.updateArticle(article) (without having recently read the article in question from the API, or where the Article instance has been created by copying a known set of fields from another Article instance) would have been preserving any pre-existing content_tags_id value on the article.
But if we add the field to the model, then any code like this will now be updating the content_tags_id field to be empty
This edge-case change in behaviour seems worthwhile, but may be worth documenting in release notes.

I'm building a PR for this issue & will submit it shortly

@andy-may-at andy-may-at changed the title Support getting/setting of Help Center article's content_type_ids field Support getting/setting of Help Center article's content_tag_ids field Mar 8, 2023
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

No branches or pull requests

1 participant