Hi,


I have attempted the Task 3. Write a basic Perceval plugin which pulls data from any REST API you like (yep, ANY!) for this project. I tried implementing basic Perceval plugin which pulls data from twitter API and allows to fetch the tweets with the specific hashtags, here is the github link below. 

https://github.com/Ranjithagkm/grimoirelab-perceval/blob/master/perceval/backends/core/twitter.py

The work is still in progress, i need to add api_token fix the errors and get it working. Will need 2 days more to complete this, would that be allowed as the deadline is today?

Also i have submitted the application for this project and i had a doubt regarding the two fields mentioned below which were asked as a part of application submission:
"(Optional) Community-specific Questions: 
Some communities or projects may want you to answer additional questions. Please check with your mentor and community coordinator to see if you need to provide any additional information after you save your project application."  - Let me know if any question needs to be answered.

AND

"Outreachy internship project timeline: 
Please work with your mentor to provide a timeline of the work you plan to accomplish on the project and what tasks you will finish at each step. Make sure take into account any time commitments you have during the Outreachy internship round. If you are still working on your contributions and need more time, you can leave this blank and edit your application later." -  I have left this blank as i need some more time to complete the plugin for perceval.

Please let me know your comments so that i can edit the application if required.

Thanks,
Ranjitha.


On Sat, Mar 17, 2018 at 3:34 PM, ranjitha gurusiddaiah <ranjitha.kmg@gmail.com> wrote:
Sure, i haven't so far posted anything on fedora channels. Will modify the code to not contain fedora channel name. For testing purpose had used a different channel.

Thanks,
Ranjitha 

On Sat, Mar 17, 2018 at 3:20 PM, Sachin S. Kamath <sskamath96@gmail.com> wrote:


On Sat 17 Mar, 2018, 3:08 PM ranjitha gurusiddaiah, <ranjitha.kmg@gmail.com> wrote:
Hi,

I have attempted the first task of the project "Build a fedmsg plugin for perceval - a data gathering metrics tool" in outreachy program. Most of it was referenced from http://threebean.org/presentations/fedmsg-flock14 as suggested. Here is the github repo link for the same: https://github.com/Ranjithagkm/fedmsg-badges

In this, i listen on the fedmsg bus for messages with topic: fedbadges, and subtopic fedbadges.badge.award. On recieving any such message we post a message on #fedora-devel irc, announcing the same. This is a minimal implementation. I initially tried to listen for anitya.project.add and send a mail to the specified recipients when a given new project gets added. But i couldn't understand that completely, adding a project implies add a new version of existing projects or new projects altogether.

Please do not post anything to #fedora-devel. It is a developer channel. Please stop the bot IMMEDIATELY.

I'll take a look at the code when I'm a little free. Super swarmed at the moment. 



Please let me know your comments on the same.

DO NOT post to any Fedora channels please. Create your own channel.


Thanks,
Ranjitha


On Sun, Mar 11, 2018 at 10:25 PM, Sachin S. Kamath <sskamath96@gmail.com> wrote:


On Sun, Mar 11, 2018 at 10:20 PM, Sachin S. Kamath <sskamath96@gmail.com> wrote:


On Sat, Mar 10, 2018 at 8:59 PM, ranjitha gurusiddaiah <ranjitha.kmg@gmail.com> wrote:
Hi All,

Hi Ranjitha,
 


I came across the project "Build a fedmsg plugin for perceval - a data gathering metrics tool" in outreachy program, I would like to apply for this project under your guidance. I did some read up on fedmsg, perceval and about the project. I shall work on the tasks specified in the outreachy project website. Meanwhile, i wanted to understand about the project. We need to write a plugin in perceval (like the ones present for bugzilla, askbot etc.) to retrieve the messages generated by fedmsg(on fedora infra) and apply the specified filters. My understanding is that, the plugin should gather the data from datagrepper (https://apps.fedoraproject.org/datagrepper/raw) using the HTTP requests, and apply the filters on the JSON output got. Please correct me if i am wrong.

Thank you for your interest in the project. Please write to us on outreachy@lists.fedoraproject.org so that we can discuss the technical aspects of the project without generating noise here.

Sorry about that. I thought this was the main outreachy mailing list. I need more coffee.

We have put up list of tasks along with links to documentation on the project repo [1]. Please go through it and let us know if you have any questions. I appreciate the research you have done :)

Instead of using datagrepper, we will be using fedmsg for this project, which is sort of like a "data-mart". As mentioned earlier, there is enough information on the repo to get started with it. Happy Hacking!


 
Assuming this is what needs to be done, the plugin requires 3 things:
 - Code to get the fedmsg in JSON format
 - Code to Parse the fedmsg
 - Filters to apply on the fedmsg

That's correct. Datagrepper also has inbuilt filters which can do it more :)

Please help me out with getting started and contributing to this project. 

Thanks,
Ranjitha




--
Cheers,
Sachin S. Kamath
https://www.sachinwrites.xyz


[1] https://pagure.io/fedmsg-perceval-plugin

--
Cheers,
Sachin S. Kamath
https://www.sachinwrites.xyz