Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Conversation

drselump14
Copy link
Contributor

somehow I couldn't add owner using self.owners= method, so I add add_owner method using owner's API

  • add attribute person for Comment model, because it's needed to get person object directly from comment

@coveralls
Copy link

coveralls commented Dec 31, 2016

Coverage Status

Coverage decreased (-0.4%) to 95.991% when pulling 01ccd12 on drselump14:master into d0b5962 on dashofcode:master.

@forest
Copy link
Contributor

forest commented Jan 2, 2017

@drselump14 you can add to the array of owner_ids and that will get save with the story is saved. See https://github.com/dashofcode/tracker_api/pull/88/files#diff-7801f5012a085139832e168522bc85dcL55.

You should need to add the new endpoint.

If you want the story.owners= to work you can override and update the owner_ids. Make sure you have the current list of owners or owner_ids so you don't overwrite existing owners.

@drselump14
Copy link
Contributor Author

@forest Thanks for the reply.
I've tried the owner_ids= method before, but sometimes it didn't work as expected. I don't know how to replicate the bug. Maybe that's the reason why they provide API for posting owners.

'You should need to add the new endpoint.'
Could you please explain more about this point please? I think story_owners endpoint is fit with this function.

@forest
Copy link
Contributor

forest commented Jan 3, 2017 via email

@drselump14
Copy link
Contributor Author

drselump14 commented Jan 3, 2017 via email

@coveralls
Copy link

coveralls commented Jan 5, 2017

Coverage Status

Coverage decreased (-0.4%) to 96.009% when pulling 04c32a6 on drselump14:master into ac3be0a on dashofcode:master.

@forest
Copy link
Contributor

forest commented Jan 5, 2017

This is not needed. Just use owner_ids=.

story.owner_ids = [123, 456]

@forest forest closed this Jan 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants