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

Send the "moderation in process" message to the public issue #3150

Closed
miketaylr opened this issue Jan 13, 2020 · 2 comments · Fixed by #3156
Closed

Send the "moderation in process" message to the public issue #3150

miketaylr opened this issue Jan 13, 2020 · 2 comments · Fixed by #3156
Assignees

Comments

@miketaylr
Copy link
Member

@karlcow has a suggestion here: #3147 (comment)

It will return the text from #3137

@miketaylr
Copy link
Member Author

This should happen somewhere in issues.py, https://github.com/webcompat/webcompat.com/blob/master/webcompat/issues.py#L26 is a good place to start.

@karlcow has suggestions for content in #3137 which are good.

@ksy36 would you like to work on this?

@karlcow
Copy link
Member

karlcow commented Jan 14, 2020

Repeating here the suggestion here:

def unmoderated_issue():
"""Gets the placeholder data to send for unmoderated issues."""
# TODO: Replace this with something meaningful.
# See https://github.com/webcompat/webcompat.com/issues/3137
summary = 'Placeholder in-moderation title.'
body = 'Placeholder in-moderation body.'
return {'title': summary, 'body': body}

This should probably be renamed:

def moderation_template(status):

Though it's not even sure we need a specific function for this, because this is just calling one specific object, text.

return proxy_request('post', path, data=json.dumps(unmoderated_issue()))

@karlcow karlcow changed the title Create method to return 1 of 2 moderate templates Send the "moderation in process" message to the public issue Jan 14, 2020
@ksy36 ksy36 self-assigned this Jan 14, 2020
ksy36 added a commit that referenced this issue Jan 15, 2020
karlcow pushed a commit that referenced this issue Jan 15, 2020
karlcow pushed a commit that referenced this issue Jan 15, 2020
Fixes #3150 - Send the "moderation in process" message to the public issue
karlcow added a commit to karlcow/webcompat.com that referenced this issue Mar 24, 2020
karlcow added a commit to karlcow/webcompat.com that referenced this issue Mar 24, 2020
karlcow added a commit to karlcow/webcompat.com that referenced this issue Mar 24, 2020
karlcow added a commit to karlcow/webcompat.com that referenced this issue Mar 24, 2020
karlcow added a commit to karlcow/webcompat.com that referenced this issue Mar 24, 2020
karlcow added a commit to karlcow/webcompat.com that referenced this issue Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants