libraries.io icon indicating copy to clipboard operation
libraries.io copied to clipboard

How do I configure subscriptions?

Open WhyNotHugo opened this issue 4 years ago • 1 comments

Bugs

This isn't really an issue (maybe a UX one?), but I can't figure out how to configure subscriptions. So I logged in, found the package I want, and then clicked on "Subscribe to releases". It switched straight to "Already subscribed".

But I haven't been prompted for any notification data.

The API documentation doesn't reveal any clues as to how to configure notifications either.

I'm maybe missing some obvious button, but I think I should have been prompted where to deliver these notifications at some point.

WhyNotHugo avatar Apr 14 '21 19:04 WhyNotHugo

I've been digging through the code trying to find exactly how to do this.

Apparently, notifications are sent to the user's email: https://github.com/librariesio/libraries.io/blob/6aeb4640777b62b6128a25b745dc6c2615e667bb/app/mailers/versions_mailer.rb#L11

This is configurable in account settings: https://libraries.io/account

In hindsight, it's kind of obvious, there's only one input field in settings, and that's where notifications are delivered. I think my confusion comes because, for most websites, the email is the log in email. In this case, it isn't, and there is no log in email; one logs in with third party providers :facepalm:

I do think that a tiny text under the email field saying "This is where we'll deliver notifications" might make sense though. Or maybe I'm the only idiot for whom it wasn't obvious.

I do, however, also see code that sends webhook notifications: https://github.com/librariesio/libraries.io/blob/6aeb4640777b62b6128a25b745dc6c2615e667bb/app/models/version.rb#L78

But I definitely can't find where to configure those webhooks on my account.

WhyNotHugo avatar Apr 16 '21 19:04 WhyNotHugo