yeswiki / yeswiki-extension-webhooks Goto Github PK
View Code? Open in Web Editor NEWOutgoing webhooks at each addition/modification/deletion of a YesWiki Bazar item
Outgoing webhooks at each addition/modification/deletion of a YesWiki Bazar item
Doryphore 02/02/21 pas de webhook pour /edit ni creation d'une fiche
Doryphore : 02/02/21
Extension webhooks : branche refacto adat 2 du 2/2/21
La création et la modification d'une fiche ne donnent pas de webhook sortant.
OK pour la suppression d'une fiche
Type of issue (keep only one) / Type de demande (ne garder qu'une ligne)
New feature / Nouvelle fonctionnalité
Description
Hello,
Je ne sais pas ce que ça engage niveau développement mais si c'est juste un paramètre à ajouter et que c'est simple il serait utile de pouvoir régler le webhook pour qu'il renvoit les modifications / ajouts sur l'ensemble des pages du wiki et non plus seulement les formulaires.
(Considérer comme un objectif de prochain sprint si c'est plus de 5 minutes :p)
tout juste installé un yeswiki en local avec cette extension,
c'est parfait pour envoyer des mises à jour sur un POD Solid https://bricodeurs.solidweb.org/public/activity/254e4ca0-c5ab-11eb-8bcd-b157bfa89688.json
mais les dates semblent ne pas passer correctement :
{
"@context": [
1
],
"type": "Update",
"to": [
"http://127.0.0.1/yeswiki/?WikiAdmin/followers",
"https://www.w3.org/ns/activitystreams#Public"
],
"actor": "http://127.0.0.1/yeswiki/?WikiAdmin",
"object": {
"id": "http://127.0.0.1/yeswiki/?FadA",
"type": "1",
"attributedTo": "http://127.0.0.1/yeswiki/?WikiAdmin",
"to": [
"http://127.0.0.1/yeswiki/?WikiAdmin/followers",
"https://www.w3.org/ns/activitystreams#Public"
],
"published": "TZ",
"updated": "TZ"
}
}
$data['data']
ne semble pas contenir les champs nécessaires :
'published' => format_date_xsd($data['data']['date_creation_fiche']),
'updated' => format_date_xsd($data['data']['date_maj_fiche'])
{
"action": "edit",
"user": "WikiAdmin",
"text": "**MODIFICATION** Fiche \"fada\" de type \"Annuaire\" mise à jour par WikiAdmin\nhttp://127.0.0.1/yeswiki/?FadA",
"data_type": "bazar",
"bazar_form_id": 1,
"data": {
"bf_titre": "fada",
"oldimage_imagebf_image": "FadA_capture-du-2021-05-23-21-12-33.png",
"data-imagebf_image": "",
"filename-imagebf_image": "",
"bf_fonction": "boom",
"bf_projet": " - spoggy\r\n - ipgs\r\n - bon-prix\r\n - ess-tables\r\n - contacts\r\n - -",
"bf_tel": "",
"bf_mail": "[email protected]",
"bf_structure": "Spoggy",
"bf_site_internet": "http://scenaristeur.github.io/ipgs",
"bf_adresse": "",
"bf_code_postal": "",
"bf_ville": "Lyon",
"bf_latitude": "45.7578137",
"bf_longitude": "4.8320114",
"antispam": "1",
"id_typeannonce": "1",
"id_fiche": "FadA",
"semantic": {
"@context": [
1
],
"@type": "1",
"@id": "http://127.0.0.1/yeswiki/?FadA"
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.