Skip to content
This repository was archived by the owner on Jan 31, 2019. It is now read-only.

Send deprecation notice with IRC and XMPP messages - #1246

Closed
swinton wants to merge 4 commits into
masterfrom
add-deprecation-notice
Closed

swinton wants to merge 4 commits into
masterfrom
add-deprecation-notice

Conversation

@swinton

@swinton swinton commented Jun 25, 2018 •

Copy link
Copy Markdown
Contributor

This PR sends our deprecation notice with IRC and XMPP messages

To do

  • Abstract out deprecation notice
  • Send with XmppIm messages
  • Update XmppIm tests
  • Send with XmppMuc messages
  • Update XmppMuc tests
  • Send with IRC messages
  • Update IRC tests

@swinton
swinton requested a review from gjtorikian June 25, 2018 21:14
Comment thread lib/services/irc.rb

def send_messages(messages)
messages = Array(messages)
messages.push(*Service::DEPRECATION_NOTE.split("\n"))

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was necessary to split the DEPRECATION_NOTICE array up into separate lines, so the IRC command was correctly prepended to each line.

Comment thread lib/services/xmpp_im.rb

def send_messages(messages)
messages = Array(messages)
messages << Service::DEPRECATION_NOTE

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 I'm not sure if we should be similarly breaking this up into separate lines, or will XMPP accept multi-line text.

@gjtorikian any idea?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue suggests that multiple lines are fine. 🤷🏻‍♂️

@swinton swinton self-assigned this Jun 25, 2018
Comment thread lib/service.rb
class Service
UTF8 = "UTF-8".freeze
DEPRECATION_NOTE = [
"**NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noticed this pull request—it might be worth updating this to "This service has been marked for deprecation ...". See #1248.

@ghost

ghost commented Oct 14, 2018

Copy link
Copy Markdown

Cidya iOS 12

Comment thread lib/services/xmpp_im.rb
default_events :push, :commit_comment, :issue_comment,
:issues, :pull_request, :pull_request_review_comment,
:gollum

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@G00FTR00P9D

Copy link
Copy Markdown

He

@Moda9plus

Copy link
Copy Markdown

email.rb
email.rb

@swinton swinton closed this Jan 17, 2019
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.

8 participants