change getDiscussionRefs to getDiscussionIds