-
Notifications
You must be signed in to change notification settings - Fork 737
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
Expose segmentation tags in moderation #6360
Conversation
|
||
question = get_object_or_404(Question, pk=question_id) | ||
if tag_ids: | ||
sumo_tags = SumoTag.objects.filter(id__in=tag_ids) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be limited only to segmentation tags
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a custom manager to return non-archived tags that start with seg-
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some nits to consider, but it looks good! Thanks @akatsoulas!
@@ -7,7 +7,12 @@ | |||
<hgroup> | |||
<h2 class="sumo-card-heading">{{ _('Flagged {t} (Reason: {r})')|f(t=object.content_type, r=object.get_reason_display()) }}</h2> | |||
{% if object.notes %} | |||
<p class="notes">{{ _('Other reason:') }} {{ object.notes }}</p> | |||
{% if object.content_type.model == 'question' %} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit. Remove this empty line?
<p class="notes">{{ _('Other reason:') }} {{ object.notes }}</p> | ||
{% if object.content_type.model == 'question' %} | ||
|
||
<p class="notes">{{ _('Additional notes:') }}<a target="_blank" href="{{ object.content_object.get_absolute_url() }}">{{ object.notes }}</a></p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const url = `/en-US/questions/${questionId}/add-tag-async`; | ||
const response = await fetchData(url, { method: 'POST', body: { tags: selectedTags } }); | ||
if (response) { | ||
console.log(response.message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit. Is this a leftover from debugging?
0710e3e
to
9033d1f
Compare
9033d1f
to
382b6f8
Compare
No description provided.