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

Have an RSS-feed (like) functionality to be notified about new objects created in PeeringDB #581

Open
koalafil opened this issue Sep 27, 2019 · 3 comments
Assignees
Labels
Milestone

Comments

@koalafil
Copy link

@koalafil koalafil commented Sep 27, 2019

This is a request from Walt Wollny and based on his feedback.

The idea is to have an RSS feed or some other similar functionality which periodically will send updates to subscribers showing new objects created in the PeeringDB since the last update. It could be weekly I presume.
[Of course POCs should be shown in the feed in accordance to their visibility settings...]

Thoughts?

@koalafil koalafil self-assigned this Sep 27, 2019
@koalafil koalafil changed the title Have an RSS-feed (like) functionality to be notified about new objects in PeeringDB Have an RSS-feed (like) functionality to be notified about new objects created in PeeringDB Sep 27, 2019
@koalafil koalafil added this to the Decide milestone Sep 27, 2019
@netravnen

This comment has been minimized.

Copy link

@netravnen netravnen commented Sep 27, 2019

Commentary Input

The current JSON API can be used as data-source for this functionality.

  • Fetch the N most recent entries based upon creation time (descending order, newest to oldest), and
  • Format data output in RSS compliant output.

Example using bash, output is json format

Fetch 5 latest created facilities in PeeringDB: NUM_COUNT=$(curl -X GET -snGL https://www.peeringdb.com/api/fac | jq '.data | length') ; NUM_SKIP=$[${NUM_COUNT} - 5] ; curl -X GET -snGL https://www.peeringdb.com/api/fac?skip=${NUM_SKIP} | jq (since any of the current optional URL parameters for the API does not support functionality to "fetch N latest created entries", but only "fetch N latest updated entries".

Basic PHP examples

Reworking the supported optional URL parameters for the API could allow for the API to be a perfect fit as a data backend for this user request.

@koalafil

This comment has been minimized.

Copy link
Author

@koalafil koalafil commented Oct 1, 2019

@ccaputo @job do you have input as well, from OPS committee perspective ?

@ccaputo

This comment has been minimized.

Copy link
Contributor

@ccaputo ccaputo commented Oct 1, 2019

I don't see this as an Ops issue at this point, but rather something for PC to consider having developed.

Limiting PoC visibility based on user permissions implies to me this needs to be run by the user. Ie., Walt runs a regular script which uses the existing API with his login. Or ProductComm specs a per-user (or identical for all logged in users) RSS feature of some sort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.