MassBank / MassBank-data

Official repository of open data MassBank records
74 stars 59 forks source link

Webhook #22

Open tsufz opened 6 years ago

tsufz commented 6 years ago

The people from Mona asked for a web-hook some while ago. We should add it for easier announcement of changes in the records.

tsufz commented 6 years ago

@berlinguyinca, we chatted about a webhook some while ago https://github.com/MassBank/MassBank-web/issues/21. I jutst talked to @meier-rene about this topic. It would be nice if you could help us to setup the webhook for MoNA?

berlinguyinca commented 6 years ago

I'm currently out of the office till the 15th. Could you please reach out to @Sajjan Singh Mehta ssmehta@ucdavis.edu to help you with this?

kind regards,

Gert

On Tue, Sep 11, 2018 at 6:17 AM Tobias Schulze notifications@github.com wrote:

@berlinguyinca https://github.com/berlinguyinca, we chatted about a webhook some while ago MassBank/MassBank-web#21 https://github.com/MassBank/MassBank-web/issues/21. I jutst talked to @meier-rene https://github.com/meier-rene about this topic. It would be nice if you could help us to setup the webhook for MoNA?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MassBank/MassBank-data/issues/22#issuecomment-420270945, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA_7DMldSxkbybEsrmfr7ChXtj6pQrcks5uZ7fygaJpZM4WggVm .

--

Lead Developer - Fiehnlab, UC Davis

gert wohlgemuth

work: http://fiehnlab.ucdavis.edu/staff/wohlgemuth

phone: 530 665 9477

coding blog: http://codingandmore.blogspot.com

linkedin: http://www.linkedin.com/profile/view?id=28611299&trk=tab_pro

tsufz commented 6 years ago

Hi @sajjan, A longer time ago, we chatted with Gert about a webhook for the announcement of new MassBank spectra. With implementation of our MassBank-data repository, the is time is come to realise a webhook for MoNA. So far, I understand the system, we need some mirror structure in MoNA which handels the announcements, correctly? Hence, I would like ask to help us with implemenation of the webhook for MoNA? This would be great.

Best, Tobias

ssmehta commented 6 years ago

Hi @tsufz,

Thanks for following up

I think the suggestion before was to run an independent MoNA instance locally and use that to store all of the MassBank data. Then it could be set up as a child to the main MoNA instance using the webhooks service to routinely push data back to us. Is this what you had in mind @berlinguyinca?

If so, then you'd need to regularly transform the MassBank records to the MoNA JSON format to update your local MoNA and then push to ours.

However, if the main MassBank data store will be this git repository, then it seems that it would be easier to skip the local installation step and perhaps integrate a step to your validation workflow to push recently updated valid records. I have a set of Python scripts that I use to transform MassBank records to the MoNA format with proper attribution and submitter information. I'd be happy to share them and work with you to find the best way to keep everything synchronized.

Let me know what you think.

Thanks, Sajjan

tsufz commented 2 years ago

@meier-rene, I would like to bring this issue back on the table. MoNA asked again for the webhook.

To all, any suggestions to the implementation. In my opinion, it is the best, if MoNA could fetch the records from GitHub and process them locally. What we need is a webhook to trigger the update in MoNA.

meier-rene commented 2 years ago

Hi, I would need an example for an existing "webhook" or an technical specification document. Actually, I have no idea what I should implement here.