Calendrier non fonctionnel

Bonjour,

Nous rencontrons un problème avec le calendrier qui est complètement static, impossible d’interagir avec.

J’ai un peu du mal à m’y retrouver dans les logs sur le serveur et je ne sais pas comment y accéder à partir de la partie Web.

Merci d’avance pour vos suggestions.

Cat

Salut,

je ne comprend pas bien ton problème… Tu peux regarder les logs du navigateur en faisant Ctrl+Maj+i dans chrome ou Firefox, puis en allant dans l’onglet « Console ». Colle les ici, ça nous aidera à trouver d’où vient le problème.

Bonne journée

Olla,

En gros, le calendrier est complètement statique impossible de sélectionner une plage horaire ou même de sélectionner une cellule.

j’ai pas grand chose dans les logs « console ». Est ce que cela te suffit ?

Deprecation warning: use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See Moment.js | Guides for more info. application-3aaeb6122d88d66e6003f6b938f95156.js:62:31051
(1) […]​0: "No accounts to register"​length: 1​: Array [] application-3aaeb6122d88d66e6003f6b938f95156.js:40:9520

Merci pour votre réactivité.

Salut,

Bizarre…
Tu peux essayer la chose suivante :

  1. sur le serveur, recompile les assets avec
cd /apps/fabmanager
rm -Rf public/assets/
docker-compose run --rm fabmanager bundle exec rake assets:precompile
  1. quand c’est terminé, dans le client, force un rafraîchissement avec nettoyage du cache. Pour cela,
    ouvre le débogueur avec Ctrl+Maj+i puis maintient appuyé sur le bouton rafraîchir, comme ci-dessous :

Tiens nous au courant

Bonjour,

J’apprécie vraiment votre réactivité.

J’ai toujours le même problème mais le message semble être différent :
Failed to load resource: the server responded with a status of 404 (Not Found)
2
application-3aaeb612…3f6b938f95156.js:39 GET https://fablab.labhidouille.fr/api/notifications/polling?last_poll=2020-03-10T10:22:56.467Z net::ERR_CONNECTION_REFUSED
application-3aaeb612…3f6b938f95156.js:39 GET https://fablab.labhidouille.fr/api/notifications/polling?last_poll=2020-03-10T10:22:56.467Z 502 (Bad Gateway)

Si je connais un peu docker, là je suis dans un domaine que je ne connais pas du tout.

Si ces informations peuvent vous aider, dites moi quelles logs peuvent vous être nécessaires.
Ubuntu 18.04.4 LTS
docker-compose version 1.23.1, build b02f1306
Docker version 19.03.7, build 7141c199a2

Cat

Re,

En désespoir de cause je viens de faire une mise à jour car j’ai vu qu’il y en avait une au 4 mars, mais si j’ai une petite amélioration (je peux maintenant sélectionner un membre) je n’arrive toujours pas à sélectionner un créneau :

application-6b366f4407f82a65060ebafbfc703030.js:61 Deprecation warning: use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.
warn @ application-6b366f4407f82a65060ebafbfc703030.js:61
deprecateSimple @ application-6b366f4407f82a65060ebafbfc703030.js:61
defineLocale @ application-6b366f4407f82a65060ebafbfc703030.js:62
(anonymous) @ fr-73b8bb0603ee9f371c50a4f4b0ad799d.js:1
(anonymous) @ fr-73b8bb0603ee9f371c50a4f4b0ad799d.js:1
(anonymous) @ fr-73b8bb0603ee9f371c50a4f4b0ad799d.js:1
application-6b366f4407f82a65060ebafbfc703030.js:40 Array(1)
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:40
_log @ application-6b366f4407f82a65060ebafbfc703030.js:113
_registerTrackers @ application-6b366f4407f82a65060ebafbfc703030.js:113
$get @ application-6b366f4407f82a65060ebafbfc703030.js:113
invoke @ application-6b366f4407f82a65060ebafbfc703030.js:37
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:37
getService @ application-6b366f4407f82a65060ebafbfc703030.js:37
injectionArgs @ application-6b366f4407f82a65060ebafbfc703030.js:37
invoke @ application-6b366f4407f82a65060ebafbfc703030.js:37
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:37
forEach @ application-6b366f4407f82a65060ebafbfc703030.js:36
createInjector @ application-6b366f4407f82a65060ebafbfc703030.js:37
doBootstrap @ application-6b366f4407f82a65060ebafbfc703030.js:36
bootstrap @ application-6b366f4407f82a65060ebafbfc703030.js:36
angularInit @ application-6b366f4407f82a65060ebafbfc703030.js:36
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:46
fire @ application-6b366f4407f82a65060ebafbfc703030.js:32
fireWith @ application-6b366f4407f82a65060ebafbfc703030.js:32
ready @ application-6b366f4407f82a65060ebafbfc703030.js:32
completed @ application-6b366f4407f82a65060ebafbfc703030.js:20
application-6b366f4407f82a65060ebafbfc703030.js:40 TypeError: Cannot read property 'trim' of undefined
    at insertDirectives (application-6b366f4407f82a65060ebafbfc703030.js:1898)
    at initialize (application-6b366f4407f82a65060ebafbfc703030.js:1897)
    at new <anonymous> (application-6b366f4407f82a65060ebafbfc703030.js:1898)
    at Object.instantiate (application-6b366f4407f82a65060ebafbfc703030.js:37)
    at application-6b366f4407f82a65060ebafbfc703030.js:39
    at Object.<anonymous> (application-6b366f4407f82a65060ebafbfc703030.js:48)
    at application-6b366f4407f82a65060ebafbfc703030.js:36
    at invokeLinkFn (application-6b366f4407f82a65060ebafbfc703030.js:39)
    at nodeLinkFn (application-6b366f4407f82a65060ebafbfc703030.js:38)
    at compositeLinkFn (application-6b366f4407f82a65060ebafbfc703030.js:38) "<section id="content-main" class="scrollable ng-scope" ui-view="main">"
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:40
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:39
invokeLinkFn @ application-6b366f4407f82a65060ebafbfc703030.js:39
nodeLinkFn @ application-6b366f4407f82a65060ebafbfc703030.js:38
compositeLinkFn @ application-6b366f4407f82a65060ebafbfc703030.js:38
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:38
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:38
updateView @ application-6b366f4407f82a65060ebafbfc703030.js:48
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:48
$broadcast @ application-6b366f4407f82a65060ebafbfc703030.js:41
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:47
processQueue @ application-6b366f4407f82a65060ebafbfc703030.js:40
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:40
$digest @ application-6b366f4407f82a65060ebafbfc703030.js:41
$apply @ application-6b366f4407f82a65060ebafbfc703030.js:41
done @ application-6b366f4407f82a65060ebafbfc703030.js:39
completeRequest @ application-6b366f4407f82a65060ebafbfc703030.js:39
xhr.onload @ application-6b366f4407f82a65060ebafbfc703030.js:39
load (async)
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:39
sendReq @ application-6b366f4407f82a65060ebafbfc703030.js:39
serverRequest @ application-6b366f4407f82a65060ebafbfc703030.js:39
processQueue @ application-6b366f4407f82a65060ebafbfc703030.js:40
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:40
$digest @ application-6b366f4407f82a65060ebafbfc703030.js:41
$apply @ application-6b366f4407f82a65060ebafbfc703030.js:41
done @ application-6b366f4407f82a65060ebafbfc703030.js:39
completeRequest @ application-6b366f4407f82a65060ebafbfc703030.js:39
xhr.onload @ application-6b366f4407f82a65060ebafbfc703030.js:39
load (async)
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:39
sendReq @ application-6b366f4407f82a65060ebafbfc703030.js:39
serverRequest @ application-6b366f4407f82a65060ebafbfc703030.js:39
processQueue @ application-6b366f4407f82a65060ebafbfc703030.js:40
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:40
$digest @ application-6b366f4407f82a65060ebafbfc703030.js:41
$apply @ application-6b366f4407f82a65060ebafbfc703030.js:41
done @ application-6b366f4407f82a65060ebafbfc703030.js:39
completeRequest @ application-6b366f4407f82a65060ebafbfc703030.js:39
xhr.onload @ application-6b366f4407f82a65060ebafbfc703030.js:39
load (async)
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:39
sendReq @ application-6b366f4407f82a65060ebafbfc703030.js:39
serverRequest @ application-6b366f4407f82a65060ebafbfc703030.js:39
processQueue @ application-6b366f4407f82a65060ebafbfc703030.js:40
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:40
$digest @ application-6b366f4407f82a65060ebafbfc703030.js:41
$apply @ application-6b366f4407f82a65060ebafbfc703030.js:41
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:36
invoke @ application-6b366f4407f82a65060ebafbfc703030.js:37
doBootstrap @ application-6b366f4407f82a65060ebafbfc703030.js:36
bootstrap @ application-6b366f4407f82a65060ebafbfc703030.js:36
angularInit @ application-6b366f4407f82a65060ebafbfc703030.js:36
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:46
fire @ application-6b366f4407f82a65060ebafbfc703030.js:32
fireWith @ application-6b366f4407f82a65060ebafbfc703030.js:32
ready @ application-6b366f4407f82a65060ebafbfc703030.js:32
completed @ application-6b366f4407f82a65060ebafbfc703030.js:20
/api/projects/search?page=1&per_page=16&search=%7B%22q%22:%22%22%7D:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
application-6b366f4407f82a65060ebafbfc703030.js:40 Possibly unhandled rejection: {"data":{"status":"500","error":"Internal Server Error"},"status":500,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"/api/projects/search","params":{"search":{"q":""},"page":1,"per_page":16},"headers":{"Accept":"application/json, text/plain, */*","X-XSRF-TOKEN":"xmRkAX4wg3qV8G6KxAkFM8w0bs7h9kqL/oqumWwOdczDa10REUUAHXVsSDm19LTjf5e7PDMNOVYju4f6CAlVjg=="},"cached":false},"statusText":"Internal Server Error","xhrStatus":"complete","resource":{}}
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:40
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:39
processChecks @ application-6b366f4407f82a65060ebafbfc703030.js:40
$digest @ application-6b366f4407f82a65060ebafbfc703030.js:41
$apply @ application-6b366f4407f82a65060ebafbfc703030.js:41
done @ application-6b366f4407f82a65060ebafbfc703030.js:39
completeRequest @ application-6b366f4407f82a65060ebafbfc703030.js:39
xhr.onload @ application-6b366f4407f82a65060ebafbfc703030.js:39
load (async)
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:39
sendReq @ application-6b366f4407f82a65060ebafbfc703030.js:39
serverRequest @ application-6b366f4407f82a65060ebafbfc703030.js:39
processQueue @ application-6b366f4407f82a65060ebafbfc703030.js:40
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:40
$digest @ application-6b366f4407f82a65060ebafbfc703030.js:41
$apply @ application-6b366f4407f82a65060ebafbfc703030.js:41
done @ application-6b366f4407f82a65060ebafbfc703030.js:39
completeRequest @ application-6b366f4407f82a65060ebafbfc703030.js:39
xhr.onload @ application-6b366f4407f82a65060ebafbfc703030.js:39
load (async)
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:39
sendReq @ application-6b366f4407f82a65060ebafbfc703030.js:39
serverRequest @ application-6b366f4407f82a65060ebafbfc703030.js:39
processQueue @ application-6b366f4407f82a65060ebafbfc703030.js:40
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:40
$digest @ application-6b366f4407f82a65060ebafbfc703030.js:41
$apply @ application-6b366f4407f82a65060ebafbfc703030.js:41
done @ application-6b366f4407f82a65060ebafbfc703030.js:39
completeRequest @ application-6b366f4407f82a65060ebafbfc703030.js:39
xhr.onload @ application-6b366f4407f82a65060ebafbfc703030.js:39
load (async)
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:39
sendReq @ application-6b366f4407f82a65060ebafbfc703030.js:39
serverRequest @ application-6b366f4407f82a65060ebafbfc703030.js:39
processQueue @ application-6b366f4407f82a65060ebafbfc703030.js:40
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:40
$digest @ application-6b366f4407f82a65060ebafbfc703030.js:41
$apply @ application-6b366f4407f82a65060ebafbfc703030.js:41
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:41
completeTask @ application-6b366f4407f82a65060ebafbfc703030.js:41
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:37
setTimeout (async)
Browser.self.defer @ application-6b366f4407f82a65060ebafbfc703030.js:37
timeout @ application-6b366f4407f82a65060ebafbfc703030.js:41
(anonymous) @ application-6b366f4407f82a65060ebafbfc703030.js:48
dispatch @ application-6b366f4407f82a65060ebafbfc703030.js:32
elemData.handle @ application-6b366f4407f82a65060ebafbfc703030.js:32

Cat

Les messages d’erreur que tu donnes laissent penser que tu n’es pas connectée… as-tu essayé de te déconnecter et de te reconnecter avec le compte administrateur créé lors de l’installation ?

Tu peux vérifier qu’il a bien été créé en lançant la commande suivante sur le serveur :

docker-compose run --rm fabmanager bundle exec rails runner "puts User.first.to_json"

Merci Sylvain,

J’ai eu pas de galère lors de l’installation, je ne connais que très peu ruby et rail :-).

Voilà la réponse :

AuthProvider Load (0.2ms)  SELECT  "auth_providers".* FROM "auth_providers" WHERE "auth_providers"."status" = $1 LIMIT 1  [["status", "active"]]
  AuthProvider Load (0.2ms)  SELECT  "auth_providers".* FROM "auth_providers" WHERE "auth_providers"."status" = $1 LIMIT 1  [["status", "active"]]
  AuthProvider Load (0.2ms)  SELECT  "auth_providers".* FROM "auth_providers" WHERE "auth_providers"."status" = $1 LIMIT 1  [["status", "active"]]
  AuthProvider Load (0.3ms)  SELECT  "auth_providers".* FROM "auth_providers" WHERE "auth_providers"."status" = $1 LIMIT 1  [["status", "active"]]
  AuthProvider Load (0.4ms)  SELECT  "auth_providers".* FROM "auth_providers" WHERE "auth_providers"."status" = $1 LIMIT 1  [["status", "active"]]
  DatabaseProvider Load (0.2ms)  SELECT  "database_providers".* FROM "database_providers" WHERE "database_providers"."id" = $1 LIMIT 1  [["id", 1]]
  AuthProvider Load (0.2ms)  SELECT  "auth_providers".* FROM "auth_providers" WHERE "auth_providers"."status" = $1 LIMIT 1  [["status", "active"]]
  User Load (0.6ms)  SELECT  "users".* FROM "users"  ORDER BY "users"."id" ASC LIMIT 1
  Role Load (0.4ms)  SELECT  "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = $1  ORDER BY "roles"."id" ASC LIMIT 1  [["user_id", 1]]
  Profile Load (0.5ms)  SELECT  "profiles".* FROM "profiles" WHERE "profiles"."user_id" = $1 LIMIT 1  [["user_id", 1]]
  StatisticProfile Load (0.3ms)  SELECT  "statistic_profiles".* FROM "statistic_profiles" WHERE "statistic_profiles"."user_id" = $1 LIMIT 1  [["user_id", 1]]
  UserAvatar Load (0.2ms)  SELECT  "assets".* FROM "assets" WHERE "assets"."type" IN ('UserAvatar') AND "assets"."viewable_id" = $1 AND "assets"."viewable_type" = $2 LIMIT 1  [["viewable_id", 1], ["viewable_type", "Profile"]]
  InvoicingProfile Load (0.3ms)  SELECT  "invoicing_profiles".* FROM "invoicing_profiles" WHERE "invoicing_profiles"."user_id" = $1 LIMIT 1  [["user_id", 1]]
  Address Load (0.2ms)  SELECT  "addresses".* FROM "addresses" WHERE "addresses"."placeable_id" = $1 AND "addresses"."placeable_type" = $2 LIMIT 1  [["placeable_id", 1], ["placeable_type", "InvoicingProfile"]]
  Organization Load (0.3ms)  SELECT  "organizations".* FROM "organizations" WHERE "organizations"."invoicing_profile_id" = $1 LIMIT 1  [["invoicing_profile_id", 1]]
  Subscription Load (0.3ms)  SELECT  "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."statistic_profile_id" = $1  ORDER BY "subscriptions"."created_at" DESC LIMIT 1  [["statistic_profile_id", 1]]
  Subscription Load (0.2ms)  SELECT  "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."statistic_profile_id" = $1  ORDER BY "subscriptions"."created_at" DESC LIMIT 1  [["statistic_profile_id", 1]]
  Credit Load (0.4ms)  SELECT "credits".* FROM "credits" INNER JOIN "users_credits" ON "credits"."id" = "users_credits"."credit_id" WHERE "users_credits"."user_id" = $1 AND (credits.creditable_type = 'Training')  [["user_id", 1]]
  Credit Load (0.2ms)  SELECT "credits".* FROM "credits" INNER JOIN "users_credits" ON "credits"."id" = "users_credits"."credit_id" WHERE "users_credits"."user_id" = $1 AND (credits.creditable_type = 'Machine')  [["user_id", 1]]
  Rendered api/members/_member.json.jbuilder (77.6ms)
{"id":1,"username":"Tom","email":"tom.gueneau@familles-solidaires.com","group_id":5,"role":"admin","name":"Tom Gueneau","need_completion":null,"profile":{"id":1,"user_avatar":{"id":2,"attachment_url":"/uploads/user_avatar/2/user_avatar.PNG"},"first_name":"Tom","last_name":"Gueneau","interest":"","software_mastered":"- Catia \r\n- SolidWorks\r\n- Sketch'up","phone":"0624049275","website":"https://www.labhidouille.fr","job":"FabManager","facebook":"","twitter":"","google_plus":"","viadeo":"","linkedin":"","instagram":"","youtube":"","vimeo":"","dailymotion":"","github":"","echosciences":"","pinterest":"","lastfm":"","flickr":"","tours":["machines","calendar","members","pricing","trainings","settings","events","invoices"]},"invoicing_profile":{"id":1,"address":{"id":2,"address":"30 rue François SPoerry"}},"statistic_profile":{"id":1,"gender":"true","birthday":"1995-08-07"},"training_credits":[],"machine_credits":[],"last_sign_in_at":"2020-03-09T16:41:20+01:00"}

Et moi pas comprendre ;-).

Cat

C’est bien avec ce compte là que tu te connecte ?

Tu peux essayer de mettre ici les logs du serveur (avec un tail -f /apps/fabmanager/log/app-stdout.log) au moment du démarrage de l’application et au moment où tu te connecte ?

Oui c’est bien avec le compte de Tom que je me connacte :

 CACHE (0.0ms)  SELECT  "stylesheets".* FROM "stylesheets" WHERE "stylesheets"."name" = 'theme' LIMIT 1
  Stylesheet Load (0.2ms)  SELECT  "stylesheets".* FROM "stylesheets" WHERE "stylesheets"."name" = 'home_page' LIMIT 1
  CustomAsset Load (0.1ms)  SELECT  "custom_assets".* FROM "custom_assets" WHERE "custom_assets"."name" = $1 LIMIT 1  [["name", "favicon-file"]]
  CustomAssetFile Load (0.2ms)  SELECT  "assets".* FROM "assets" WHERE "assets"."type" IN ('CustomAssetFile') AND "assets"."viewable_id" = $1 AND "assets"."viewable_type" = $2 LIMIT 1  [["viewable_id", 4], ["viewable_type", "CustomAsset"]]
  CACHE (0.0ms)  SELECT  "custom_assets".* FROM "custom_assets" WHERE "custom_assets"."name" = $1 LIMIT 1  [["name", "favicon-file"]]
  CACHE (0.0ms)  SELECT  "assets".* FROM "assets" WHERE "assets"."type" IN ('CustomAssetFile') AND "assets"."viewable_id" = $1 AND "assets"."viewable_type" = $2 LIMIT 1  [["viewable_id", 4], ["viewable_type", "CustomAsset"]]
  CACHE (0.0ms)  SELECT  "custom_assets".* FROM "custom_assets" WHERE "custom_assets"."name" = $1 LIMIT 1  [["name", "favicon-file"]]
  CACHE (0.0ms)  SELECT  "assets".* FROM "assets" WHERE "assets"."type" IN ('CustomAssetFile') AND "assets"."viewable_id" = $1 AND "assets"."viewable_type" = $2 LIMIT 1  [["viewable_id", 4], ["viewable_type", "CustomAsset"]]
  Rendered application/index.html.erb (9.9ms)
Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 1.3ms | Elasticsearch: 0.0ms)
Started GET "/" for 78.208.95.64 at 2020-03-11 09:34:23 +0000
Processing by ApplicationController#index as HTML
  Setting Load (0.2ms)  SELECT  "settings".* FROM "settings" WHERE "settings"."name" = $1 LIMIT 1  [["name", "fablab_name"]]
  HistoryValue Load (0.2ms)  SELECT  "history_values".* FROM "history_values" WHERE "history_values"."setting_id" = $1  ORDER BY "history_values"."created_at" DESC LIMIT 1  [["setting_id", 26]]
  User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT 1  [["email", "admin@sleede.com"]]
  Stylesheet Load (0.3ms)  SELECT  "stylesheets".* FROM "stylesheets" WHERE "stylesheets"."name" = 'theme' LIMIT 1
  CACHE (0.0ms)  SELECT  "stylesheets".* FROM "stylesheets" WHERE "stylesheets"."name" = 'theme' LIMIT 1
  CACHE (0.0ms)  SELECT  "stylesheets".* FROM "stylesheets" WHERE "stylesheets"."name" = 'theme' LIMIT 1
  Stylesheet Load (0.2ms)  SELECT  "stylesheets".* FROM "stylesheets" WHERE "stylesheets"."name" = 'home_page' LIMIT 1
  CustomAsset Load (0.1ms)  SELECT  "custom_assets".* FROM "custom_assets" WHERE "custom_assets"."name" = $1 LIMIT 1  [["name", "favicon-file"]]
  CustomAssetFile Load (0.2ms)  SELECT  "assets".* FROM "assets" WHERE "assets"."type" IN ('CustomAssetFile') AND "assets"."viewable_id" = $1 AND "assets"."viewable_type" = $2 LIMIT 1  [["viewable_id", 4], ["viewable_type", "CustomAsset"]]
  CACHE (0.0ms)  SELECT  "custom_assets".* FROM "custom_assets" WHERE "custom_assets"."name" = $1 LIMIT 1  [["name", "favicon-file"]]
  CACHE (0.0ms)  SELECT  "assets".* FROM "assets" WHERE "assets"."type" IN ('CustomAssetFile') AND "assets"."viewable_id" = $1 AND "assets"."viewable_type" = $2 LIMIT 1  [["viewable_id", 4], ["viewable_type", "CustomAsset"]]
  CACHE (0.0ms)  SELECT  "custom_assets".* FROM "custom_assets" WHERE "custom_assets"."name" = $1 LIMIT 1  [["name", "favicon-file"]]
  CACHE (0.0ms)  SELECT  "assets".* FROM "assets" WHERE "assets"."type" IN ('CustomAssetFile') AND "assets"."viewable_id" = $1 AND "assets"."viewable_type" = $2 LIMIT 1  [["viewable_id", 4], ["viewable_type", "CustomAsset"]]
  Rendered application/index.html.erb (11.1ms)
Completed 200 OK in 12ms (Views: 10.3ms | ActiveRecord: 1.3ms | Elasticsearch: 0.0ms)
Started POST "/users/sign_in.json" for 78.208.95.64 at 2020-03-11 09:34:24 +0000
Processing by SessionsController#create as JSON
  Parameters: {"user"=>{}, "session"=>{"user"=>{}}}
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms | Elasticsearch: 0.0ms)
Started GET "/api/settings?names=%5B%27fablab_name%27,+%27name_genre%27,+%27link_name%27%5D" for 78.208.95.64 at 2020-03-11 09:34:24 +0000
Processing by API::SettingsController#index as JSON
  Parameters: {"names"=>"['fablab_name', 'name_genre', 'link_name']"}
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" IN ('fablab_name', 'name_genre', 'link_name')
  HistoryValue Load (0.1ms)  SELECT  "history_values".* FROM "history_values" WHERE "history_values"."setting_id" = $1  ORDER BY "history_values"."created_at" DESC LIMIT 1  [["setting_id", 26]]
  HistoryValue Load (0.1ms)  SELECT  "history_values".* FROM "history_values" WHERE "history_values"."setting_id" = $1  ORDER BY "history_values"."created_at" DESC LIMIT 1  [["setting_id", 27]]
  Rendered api/settings/index.json.jbuilder (2.8ms)
Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms | Elasticsearch: 0.0ms)
Started GET "/api/custom_assets/logo-file" for 78.208.95.64 at 2020-03-11 09:34:24 +0000
Processing by API::CustomAssetsController#show as JSON
  Parameters: {"id"=>"logo-file"}
  CustomAsset Load (0.1ms)  SELECT  "custom_assets".* FROM "custom_assets" WHERE "custom_assets"."name" = $1 LIMIT 1  [["name", "logo-file"]]
  CustomAssetFile Load (0.2ms)  SELECT  "assets".* FROM "assets" WHERE "assets"."type" IN ('CustomAssetFile') AND "assets"."viewable_id" = $1 AND "assets"."viewable_type" = $2 LIMIT 1  [["viewable_id", 2], ["viewable_type", "CustomAsset"]]
  Rendered api/custom_assets/show.json.jbuilder (1.3ms)
Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.3ms | Elasticsearch: 0.0ms)
Started GET "/api/custom_assets/logo-black-file" for 78.208.95.64 at 2020-03-11 09:34:24 +0000
Processing by API::CustomAssetsController#show as JSON
  Parameters: {"id"=>"logo-black-file"}
  CustomAsset Load (0.2ms)  SELECT  "custom_assets".* FROM "custom_assets" WHERE "custom_assets"."name" = $1 LIMIT 1  [["name", "logo-black-file"]]
  CustomAssetFile Load (0.2ms)  SELECT  "assets".* FROM "assets" WHERE "assets"."type" IN ('CustomAssetFile') AND "assets"."viewable_id" = $1 AND "assets"."viewable_type" = $2 LIMIT 1  [["viewable_id", 1], ["viewable_type", "CustomAsset"]]
  Rendered api/custom_assets/show.json.jbuilder (1.2ms)
Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.4ms | Elasticsearch: 0.0ms)
Started POST "/users/sign_in.json" for 78.208.95.64 at 2020-03-11 09:34:24 +0000
Processing by SessionsController#create as JSON
  Parameters: {"user"=>{}, "session"=>{"user"=>{}}}
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms | Elasticsearch: 0.0ms)
Started GET "/api/translations/fr/app.shared" for 78.208.95.64 at 2020-03-11 09:34:24 +0000
Processing by API::TranslationsController#show as JSON
  Parameters: {"locale"=>"fr", "state"=>"app.shared"}
Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms | Elasticsearch: 0.0ms)
Started GET "/api/translations/fr/app.public.common" for 78.208.95.64 at 2020-03-11 09:34:24 +0000
Processing by API::TranslationsController#show as JSON
  Parameters: {"locale"=>"fr", "state"=>"app.public.common"}
Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.0ms | Elasticsearch: 0.0ms)
Started GET "/api/translations/fr/app.public" for 78.208.95.64 at 2020-03-11 09:34:24 +0000
Processing by API::TranslationsController#show as JSON
  Parameters: {"locale"=>"fr", "state"=>"app.public"}
Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms | Elasticsearch: 0.0ms)
Started GET "/api/settings?names=%5B%27home_content%27,+%27home_blogpost%27%5D" for 78.208.95.64 at 2020-03-11 09:34:24 +0000
Processing by API::SettingsController#index as JSON
  Parameters: {"names"=>"['home_content', 'home_blogpost']"}
  Setting Load (0.3ms)  SELECT "settings".* FROM "settings" WHERE "settings"."name" IN ('home_content', 'home_blogpost')
  HistoryValue Load (0.1ms)  SELECT  "history_values".* FROM "history_values" WHERE "history_values"."setting_id" = $1  ORDER BY "history_values"."created_at" DESC LIMIT 1  [["setting_id", 35]]
  Rendered api/settings/index.json.jbuilder (2.3ms)
Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms | Elasticsearch: 0.0ms)
Started GET "/api/settings/privacy_body" for 78.208.95.64 at 2020-03-11 09:34:24 +0000
Processing by API::SettingsController#show as JSON
  Parameters: {"name"=>"privacy_body"}
  Setting Load (0.2ms)  SELECT  "settings".* FROM "settings" WHERE "settings"."name" = $1 LIMIT 1  [["name", "privacy_body"]]
  HistoryValue Load (0.2ms)  SELECT  "history_values".* FROM "history_values" WHERE "history_values"."setting_id" = $1  ORDER BY "history_values"."created_at" DESC LIMIT 1  [["setting_id", 36]]
  CACHE (0.0ms)  SELECT  "history_values".* FROM "history_values" WHERE "history_values"."setting_id" = $1  ORDER BY "history_values"."created_at" DESC LIMIT 1  [["setting_id", 36]]
  Rendered api/settings/_setting.json.jbuilder (1.8ms)
  Rendered api/settings/show.json.jbuilder (2.3ms)
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.4ms | Elasticsearch: 0.0ms)
Started POST "/users/sign_in.json" for 78.208.95.64 at 2020-03-11 09:34:48 +0000
Processing by SessionsController#create as JSON
  Parameters: {"user"=>{"email"=>"tom.gueneau@familles-solidaires.com", "password"=>"[FILTERED]"}, "session"=>{"user"=>{"email"=>"tom.gueneau@familles-solidaires.com", "password"=>"[FILTERED]"}}}
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["email", "tom.gueneau@familles-solidaires.com"]]
   (0.1ms)  BEGIN
  SQL (0.3ms)  UPDATE "users" SET "last_sign_in_at" = $1, "current_sign_in_at" = $2, "sign_in_count" = $3, "updated_at" = $4 WHERE "users"."id" = $5  [["last_sign_in_at", "2020-03-10 09:26:18.031630"], ["current_sign_in_at", "2020-03-11 09:34:48.766282"], ["sign_in_count", 13], ["updated_at", "2020-03-11 09:34:48.767150"], ["id", 1]]
   (155.5ms)  COMMIT
  Role Load (0.4ms)  SELECT  "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = $1  ORDER BY "roles"."id" ASC LIMIT 1  [["user_id", 1]]
  Profile Load (0.3ms)  SELECT  "profiles".* FROM "profiles" WHERE "profiles"."user_id" = $1 LIMIT 1  [["user_id", 1]]
  StatisticProfile Load (0.2ms)  SELECT  "statistic_profiles".* FROM "statistic_profiles" WHERE "statistic_profiles"."user_id" = $1 LIMIT 1  [["user_id", 1]]
  UserAvatar Load (0.3ms)  SELECT  "assets".* FROM "assets" WHERE "assets"."type" IN ('UserAvatar') AND "assets"."viewable_id" = $1 AND "assets"."viewable_type" = $2 LIMIT 1  [["viewable_id", 1], ["viewable_type", "Profile"]]
  InvoicingProfile Load (0.3ms)  SELECT  "invoicing_profiles".* FROM "invoicing_profiles" WHERE "invoicing_profiles"."user_id" = $1 LIMIT 1  [["user_id", 1]]
  Address Load (0.2ms)  SELECT  "addresses".* FROM "addresses" WHERE "addresses"."placeable_id" = $1 AND "addresses"."placeable_type" = $2 LIMIT 1  [["placeable_id", 1], ["placeable_type", "InvoicingProfile"]]
  Organization Load (0.2ms)  SELECT  "organizations".* FROM "organizations" WHERE "organizations"."invoicing_profile_id" = $1 LIMIT 1  [["invoicing_profile_id", 1]]
  Subscription Load (0.2ms)  SELECT  "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."statistic_profile_id" = $1  ORDER BY "subscriptions"."created_at" DESC LIMIT 1  [["statistic_profile_id", 1]]
  CACHE (0.0ms)  SELECT  "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."statistic_profile_id" = $1  ORDER BY "subscriptions"."created_at" DESC LIMIT 1  [["statistic_profile_id", 1]]
  Credit Load (0.4ms)  SELECT "credits".* FROM "credits" INNER JOIN "users_credits" ON "credits"."id" = "users_credits"."credit_id" WHERE "users_credits"."user_id" = $1 AND (credits.creditable_type = 'Training')  [["user_id", 1]]
  Credit Load (0.3ms)  SELECT "credits".* FROM "credits" INNER JOIN "users_credits" ON "credits"."id" = "users_credits"."credit_id" WHERE "users_credits"."user_id" = $1 AND (credits.creditable_type = 'Machine')  [["user_id", 1]]
  Rendered api/members/_member.json.jbuilder (15.4ms)
Completed 201 Created in 226ms (Views: 13.1ms | ActiveRecord: 159.1ms | Elasticsearch: 0.0ms)
Started GET "/api/version" for 78.208.95.64 at 2020-03-11 09:34:49 +0000
Processing by API::VersionController#show as JSON
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  Role Load (0.2ms)  SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = $1 AND (((roles.name = 'admin') AND (roles.resource_type IS NULL) AND (roles.resource_id IS NULL)))  [["user_id", 1]]
  Setting Load (0.2ms)  SELECT  "settings".* FROM "settings" WHERE "settings"."name" = $1 LIMIT 1  [["name", "hub_last_version"]]
  HistoryValue Load (0.1ms)  SELECT  "history_values".* FROM "history_values" WHERE "history_values"."setting_id" = $1  ORDER BY "history_values"."created_at" DESC LIMIT 1  [["setting_id", 37]]
Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 0.8ms | Elasticsearch: 0.0ms)
Started GET "/api/notifications/last_unread" for 78.208.95.64 at 2020-03-11 09:34:51 +0000
Processing by API::NotificationsController#last_unread as JSON
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  Notification Load (0.3ms)  SELECT  "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = $1 AND "notifications"."receiver_type" = $2 AND "notifications"."is_read" = $3  ORDER BY created_at DESC LIMIT 3  [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 4]]
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 3]]
  Export Load (0.2ms)  SELECT  "exports".* FROM "exports" WHERE "exports"."id" = $1 LIMIT 1  [["id", 1]]
   (0.1ms)  SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = $1 AND "notifications"."receiver_type" = $2  [["receiver_id", 1], ["receiver_type", "User"]]
   (0.1ms)  SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = $1 AND "notifications"."receiver_type" = $2 AND "notifications"."is_read" = $3  [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]]
  Profile Load (0.2ms)  SELECT  "profiles".* FROM "profiles" WHERE "profiles"."user_id" = $1 LIMIT 1  [["user_id", 4]]
  Rendered api/notifications/_notify_admin_when_user_is_created.json.jbuilder (1.6ms)
  Profile Load (0.2ms)  SELECT  "profiles".* FROM "profiles" WHERE "profiles"."user_id" = $1 LIMIT 1  [["user_id", 3]]
  Rendered api/notifications/_notify_admin_when_user_is_created.json.jbuilder (1.4ms)
  Rendered api/notifications/_notify_admin_export_complete.json.jbuilder (0.3ms)
  Rendered api/notifications/index.json.jbuilder (5.7ms)
Completed 200 OK in 14ms (Views: 5.8ms | ActiveRecord: 1.9ms | Elasticsearch: 0.0ms)
Started GET "/api/notifications/polling?last_poll=2020-03-11T09:34:51.062Z" for 78.208.95.64 at 2020-03-11 09:35:19 +0000
Processing by API::NotificationsController#polling as JSON
  Parameters: {"last_poll"=>"2020-03-11T09:34:51.062Z"}
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
   (0.2ms)  SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = $1 AND "notifications"."receiver_type" = $2  [["receiver_id", 1], ["receiver_type", "User"]]
   (0.1ms)  SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = $1 AND "notifications"."receiver_type" = $2 AND "notifications"."is_read" = $3  [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]]
  Notification Load (0.2ms)  SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = $1 AND "notifications"."receiver_type" = $2 AND (is_read = false AND created_at >= '2020-03-11T09:34:51.062Z')  ORDER BY created_at DESC  [["receiver_id", 1], ["receiver_type", "User"]]
  Rendered api/notifications/index.json.jbuilder (1.0ms)
Completed 200 OK in 5ms (Views: 1.4ms | ActiveRecord: 0.7ms | Elasticsearch: 0.0ms)
Started GET "/api/notifications/polling?last_poll=2020-03-11T09:35:19.130Z" for 78.208.95.64 at 2020-03-11 09:35:49 +0000
Processing by API::NotificationsController#polling as JSON
  Parameters: {"last_poll"=>"2020-03-11T09:35:19.130Z"}
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
   (0.1ms)  SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = $1 AND "notifications"."receiver_type" = $2  [["receiver_id", 1], ["receiver_type", "User"]]
   (0.1ms)  SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = $1 AND "notifications"."receiver_type" = $2 AND "notifications"."is_read" = $3  [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]]
  Notification Load (0.2ms)  SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = $1 AND "notifications"."receiver_type" = $2 AND (is_read = false AND created_at >= '2020-03-11T09:35:19.130Z')  ORDER BY created_at DESC  [["receiver_id", 1], ["receiver_type", "User"]]
  Rendered api/notifications/index.json.jbuilder (0.7ms)
Completed 200 OK in 4ms (Views: 0.9ms | ActiveRecord: 0.6ms | Elasticsearch: 0.0ms)

Désolée l’application est très bavarde

Hmm, je ne vois rien d’anormal. Tu peux refaire la manip au moment où tu cliques dans l’agenda admin ?

Completed 200 OK in 13ms (Views: 0.5ms | ActiveRecord: 2.2ms | Elasticsearch: 0.0ms)
Started GET "/api/notifications/polling?last_poll=2020-03-11T09:45:19.695Z" for 78.208.95.64 at 2020-03-11 09:45:49 +0000
Processing by API::NotificationsController#polling as JSON
  Parameters: {"last_poll"=>"2020-03-11T09:45:19.695Z"}
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
   (0.2ms)  SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = $1 AND "notifications"."receiver_type" = $2  [["receiver_id", 1], ["receiver_type", "User"]]
   (0.1ms)  SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = $1 AND "notifications"."receiver_type" = $2 AND "notifications"."is_read" = $3  [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]]
  Notification Load (0.2ms)  SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = $1 AND "notifications"."receiver_type" = $2 AND (is_read = false AND created_at >= '2020-03-11T09:45:19.695Z')  ORDER BY created_at DESC  [["receiver_id", 1], ["receiver_type", "User"]]
  Rendered api/notifications/index.json.jbuilder (0.9ms)
Completed 200 OK in 5ms (Views: 1.2ms | ActiveRecord: 0.9ms | Elasticsearch: 0.0ms)
Started GET "/api/members/search/ca" for 78.208.95.64 at 2020-03-11 09:46:01 +0000
Processing by API::MembersController#search as JSON
  Parameters: {"query"=>"ca"}
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  Role Load (0.3ms)  SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = $1 AND (((roles.name = 'member') AND (roles.resource_type IS NULL) AND (roles.resource_id IS NULL)))  [["user_id", 1]]
  SQL (5.9ms)  SELECT  "users"."id" AS t0_r0, "users"."email" AS t0_r1, "users"."encrypted_password" AS t0_r2, "users"."reset_password_token" AS t0_r3, "users"."reset_password_sent_at" AS t0_r4, "users"."remember_created_at" AS t0_r5, "users"."sign_in_count" AS t0_r6, "users"."current_sign_in_at" AS t0_r7, "users"."last_sign_in_at" AS t0_r8, "users"."current_sign_in_ip" AS t0_r9, "users"."last_sign_in_ip" AS t0_r10, "users"."confirmation_token" AS t0_r11, "users"."confirmed_at" AS t0_r12, "users"."confirmation_sent_at" AS t0_r13, "users"."unconfirmed_email" AS t0_r14, "users"."failed_attempts" AS t0_r15, "users"."unlock_token" AS t0_r16, "users"."locked_at" AS t0_r17, "users"."created_at" AS t0_r18, "users"."updated_at" AS t0_r19, "users"."is_allow_contact" AS t0_r20, "users"."group_id" AS t0_r21, "users"."stp_customer_id" AS t0_r22, "users"."username" AS t0_r23, "users"."slug" AS t0_r24, "users"."is_active" AS t0_r25, "users"."provider" AS t0_r26, "users"."uid" AS t0_r27, "users"."auth_token" AS t0_r28, "users"."merged_at" AS t0_r29, "users"."is_allow_newsletter" AS t0_r30, "profiles"."id" AS t1_r0, "profiles"."user_id" AS t1_r1, "profiles"."first_name" AS t1_r2, "profiles"."last_name" AS t1_r3, "profiles"."phone" AS t1_r4, "profiles"."interest" AS t1_r5, "profiles"."software_mastered" AS t1_r6, "profiles"."created_at" AS t1_r7, "profiles"."updated_at" AS t1_r8, "profiles"."facebook" AS t1_r9, "profiles"."twitter" AS t1_r10, "profiles"."google_plus" AS t1_r11, "profiles"."viadeo" AS t1_r12, "profiles"."linkedin" AS t1_r13, "profiles"."instagram" AS t1_r14, "profiles"."youtube" AS t1_r15, "profiles"."vimeo" AS t1_r16, "profiles"."dailymotion" AS t1_r17, "profiles"."github" AS t1_r18, "profiles"."echosciences" AS t1_r19, "profiles"."website" AS t1_r20, "profiles"."pinterest" AS t1_r21, "profiles"."lastfm" AS t1_r22, "profiles"."flickr" AS t1_r23, "profiles"."job" AS t1_r24, "profiles"."tours" AS t1_r25 FROM "users" INNER JOIN "profiles" ON "profiles"."user_id" = "users"."id" INNER JOIN "statistic_profiles" ON "statistic_profiles"."user_id" = "users"."id" INNER JOIN "users_roles" ON "users_roles"."user_id" = "users"."id" INNER JOIN "roles" ON "roles"."id" = "users_roles"."role_id" LEFT JOIN "subscriptions" ON "subscriptions"."statistic_profile_id" = "statistic_profiles"."id" AND "subscriptions"."created_at" = ( SELECT max("created_at") FROM "subscriptions" WHERE "statistic_profile_id" = "statistic_profiles"."id") WHERE (users.is_active = 'true' AND roles.name = 'member') AND (lower(f_unaccent(profiles.first_name)) ~ 'ca' OR lower(f_unaccent(profiles.last_name)) ~ 'ca') LIMIT 50
  StatisticProfile Load (0.1ms)  SELECT  "statistic_profiles".* FROM "statistic_profiles" WHERE "statistic_profiles"."user_id" = $1 LIMIT 1  [["user_id", 2]]
  Rendered api/members/search.json.jbuilder (2.0ms)
Completed 200 OK in 15ms (Views: 2.1ms | ActiveRecord: 7.0ms | Elasticsearch: 0.0ms)
Started POST "/api/prices/compute" for 78.208.95.64 at 2020-03-11 09:46:03 +0000
Value for params[:reservation][:slots_attributes] was set to nil, because it was one of [], [null] or [null, null, ...]. Go to http://guides.rubyonrails.org/security.html#unsafe-query-generation for more information.
Processing by API::PricesController#compute as JSON
  Parameters: {"reservation"=>{"user_id"=>2, "reservable_id"=>"5", "reservable_type"=>"Machine", "slots_attributes"=>nil}, "price"=>{}}
  User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 2]]
  Machine Load (0.2ms)  SELECT  "machines".* FROM "machines" WHERE "machines"."id" = $1 LIMIT 1  [["id", 5]]
  Role Load (0.2ms)  SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = $1 AND (((roles.name = 'admin') AND (roles.resource_type IS NULL) AND (roles.resource_id IS NULL)))  [["user_id", 1]]
  StatisticProfile Load (0.2ms)  SELECT  "statistic_profiles".* FROM "statistic_profiles" WHERE "statistic_profiles"."user_id" = $1 LIMIT 1  [["user_id", 2]]
  Subscription Load (0.2ms)  SELECT  "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."statistic_profile_id" = $1  ORDER BY "subscriptions"."created_at" DESC LIMIT 1  [["statistic_profile_id", 2]]
  Price Load (0.2ms)  SELECT  "prices".* FROM "prices" WHERE "prices"."priceable_id" = $1 AND "prices"."priceable_type" = $2 AND "prices"."group_id" = $3 AND "prices"."plan_id" IS NULL LIMIT 1  [["priceable_id", 5], ["priceable_type", "Machine"], ["group_id", 1]]
  Rendered api/prices/compute.json.jbuilder (0.1ms)
Completed 200 OK in 12ms (Views: 0.7ms | ActiveRecord: 2.0ms | Elasticsearch: 0.0ms)
Started GET "/api/members/2" for 78.208.95.64 at 2020-03-11 09:46:03 +0000
Processing by API::MembersController#show as JSON
  Parameters: {"id"=>"2"}
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."slug" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["slug", "2"]]
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 2]]
  Role Load (0.1ms)  SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = $1 AND (((roles.name = 'admin') AND (roles.resource_type IS NULL) AND (roles.resource_id IS NULL)))  [["user_id", 1]]
  Role Load (0.3ms)  SELECT  "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = $1  ORDER BY "roles"."id" ASC LIMIT 1  [["user_id", 2]]
  Profile Load (0.1ms)  SELECT  "profiles".* FROM "profiles" WHERE "profiles"."user_id" = $1 LIMIT 1  [["user_id", 2]]
  StatisticProfile Load (0.2ms)  SELECT  "statistic_profiles".* FROM "statistic_profiles" WHERE "statistic_profiles"."user_id" = $1 LIMIT 1  [["user_id", 2]]
  UserAvatar Load (0.2ms)  SELECT  "assets".* FROM "assets" WHERE "assets"."type" IN ('UserAvatar') AND "assets"."viewable_id" = $1 AND "assets"."viewable_type" = $2 LIMIT 1  [["viewable_id", 2], ["viewable_type", "Profile"]]
  InvoicingProfile Load (0.2ms)  SELECT  "invoicing_profiles".* FROM "invoicing_profiles" WHERE "invoicing_profiles"."user_id" = $1 LIMIT 1  [["user_id", 2]]
  Address Load (0.2ms)  SELECT  "addresses".* FROM "addresses" WHERE "addresses"."placeable_id" = $1 AND "addresses"."placeable_type" = $2 LIMIT 1  [["placeable_id", 2], ["placeable_type", "InvoicingProfile"]]
  Organization Load (0.2ms)  SELECT  "organizations".* FROM "organizations" WHERE "organizations"."invoicing_profile_id" = $1 LIMIT 1  [["invoicing_profile_id", 2]]
  Subscription Load (0.1ms)  SELECT  "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."statistic_profile_id" = $1  ORDER BY "subscriptions"."created_at" DESC LIMIT 1  [["statistic_profile_id", 2]]
  CACHE (0.0ms)  SELECT  "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."statistic_profile_id" = $1  ORDER BY "subscriptions"."created_at" DESC LIMIT 1  [["statistic_profile_id", 2]]
  Credit Load (0.3ms)  SELECT "credits".* FROM "credits" INNER JOIN "users_credits" ON "credits"."id" = "users_credits"."credit_id" WHERE "users_credits"."user_id" = $1 AND (credits.creditable_type = 'Training')  [["user_id", 2]]
  Credit Load (0.2ms)  SELECT "credits".* FROM "credits" INNER JOIN "users_credits" ON "credits"."id" = "users_credits"."credit_id" WHERE "users_credits"."user_id" = $1 AND (credits.creditable_type = 'Machine')  [["user_id", 2]]
  Rendered api/members/_member.json.jbuilder (12.3ms)
   (0.3ms)  SELECT "trainings".id FROM "trainings" INNER JOIN "statistic_profile_trainings" ON "trainings"."id" = "statistic_profile_trainings"."training_id" WHERE "statistic_profile_trainings"."statistic_profile_id" = $1  [["statistic_profile_id", 2]]
  Training Load (0.2ms)  SELECT "trainings".* FROM "trainings" INNER JOIN "statistic_profile_trainings" ON "trainings"."id" = "statistic_profile_trainings"."training_id" WHERE "statistic_profile_trainings"."statistic_profile_id" = $1  [["statistic_profile_id", 2]]
  Reservation Load (0.5ms)  SELECT "reservations".* FROM "reservations" WHERE "reservations"."statistic_profile_id" = $1 AND "reservations"."reservable_type" = $2  [["statistic_profile_id", 2], ["reservable_type", "Training"]]
  Reservation Load (0.2ms)  SELECT "reservations".* FROM "reservations" WHERE "reservations"."statistic_profile_id" = $1 AND "reservations"."reservable_type" = $2  [["statistic_profile_id", 2], ["reservable_type", "Machine"]]
  Reservation Load (0.2ms)  SELECT "reservations".* FROM "reservations" WHERE "reservations"."statistic_profile_id" = $1 AND "reservations"."reservable_type" = $2  [["statistic_profile_id", 2], ["reservable_type", "Space"]]
  Project Load (0.1ms)  SELECT "projects".* FROM "projects" WHERE "projects"."author_statistic_profile_id" = $1  [["author_statistic_profile_id", 2]]
  Project Load (0.3ms)  SELECT "projects".* FROM "projects" INNER JOIN "project_users" ON "projects"."id" = "project_users"."project_id" WHERE "project_users"."user_id" = $1  [["user_id", 2]]
  Reservation Load (0.5ms)  SELECT "reservations".* FROM "reservations" INNER JOIN "slots_reservations" ON "slots_reservations"."reservation_id" = "reservations"."id" INNER JOIN "slots" ON "slots"."id" = "slots_reservations"."slot_id" WHERE "reservations"."statistic_profile_id" = $1 AND "reservations"."reservable_type" = $2  ORDER BY slots.start_at asc  [["statistic_profile_id", 2], ["reservable_type", "Event"]]
  Invoice Load (0.3ms)  SELECT "invoices".* FROM "invoices" WHERE "invoices"."invoicing_profile_id" = $1  ORDER BY reference DESC  [["invoicing_profile_id", 2]]
   (0.3ms)  SELECT "tags".id FROM "tags" INNER JOIN "user_tags" ON "tags"."id" = "user_tags"."tag_id" WHERE "user_tags"."user_id" = $1  [["user_id", 2]]
  Tag Load (0.2ms)  SELECT "tags".* FROM "tags" INNER JOIN "user_tags" ON "tags"."id" = "user_tags"."tag_id" WHERE "user_tags"."user_id" = $1  [["user_id", 2]]
  Rendered api/members/show.json.jbuilder (30.9ms)
Completed 200 OK in 37ms (Views: 23.9ms | ActiveRecord: 8.4ms | Elasticsearch: 0.0ms)
Started POST "/api/prices/compute" for 78.208.95.64 at 2020-03-11 09:46:03 +0000
Value for params[:reservation][:slots_attributes] was set to nil, because it was one of [], [null] or [null, null, ...]. Go to http://guides.rubyonrails.org/security.html#unsafe-query-generation for more information.
Processing by API::PricesController#compute as JSON
  Parameters: {"reservation"=>{"user_id"=>2, "reservable_id"=>"5", "reservable_type"=>"Machine", "slots_attributes"=>nil}, "price"=>{}}
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
  User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1  [["id", 2]]
  Machine Load (0.2ms)  SELECT  "machines".* FROM "machines" WHERE "machines"."id" = $1 LIMIT 1  [["id", 5]]
  Role Load (0.2ms)  SELECT "roles".* FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = $1 AND (((roles.name = 'admin') AND (roles.resource_type IS NULL) AND (roles.resource_id IS NULL)))  [["user_id", 1]]
  StatisticProfile Load (0.2ms)  SELECT  "statistic_profiles".* FROM "statistic_profiles" WHERE "statistic_profiles"."user_id" = $1 LIMIT 1  [["user_id", 2]]
  Subscription Load (0.2ms)  SELECT  "subscriptions".* FROM "subscriptions" WHERE "subscriptions"."statistic_profile_id" = $1  ORDER BY "subscriptions"."created_at" DESC LIMIT 1  [["statistic_profile_id", 2]]
  Price Load (0.2ms)  SELECT  "prices".* FROM "prices" WHERE "prices"."priceable_id" = $1 AND "prices"."priceable_type" = $2 AND "prices"."group_id" = $3 AND "prices"."plan_id" IS NULL LIMIT 1  [["priceable_id", 5], ["priceable_type", "Machine"], ["group_id", 1]]
  Rendered api/prices/compute.json.jbuilder (0.1ms)
Completed 200 OK in 11ms (Views: 0.8ms | ActiveRecord: 1.6ms | Elasticsearch: 0.0ms)
Started GET "/api/notifications/polling?last_poll=2020-03-11T09:45:49.618Z" for 78.208.95.64 at 2020-03-11 09:46:19 +0000
Processing by API::NotificationsController#polling as JSON
  Parameters: {"last_poll"=>"2020-03-11T09:45:49.618Z"}
  User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1  ORDER BY "users"."id" ASC LIMIT 1  [["id", 1]]
   (0.2ms)  SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = $1 AND "notifications"."receiver_type" = $2  [["receiver_id", 1], ["receiver_type", "User"]]
   (0.1ms)  SELECT COUNT(*) FROM "notifications" WHERE "notifications"."receiver_id" = $1 AND "notifications"."receiver_type" = $2 AND "notifications"."is_read" = $3  [["receiver_id", 1], ["receiver_type", "User"], ["is_read", "f"]]
  Notification Load (0.2ms)  SELECT "notifications".* FROM "notifications" WHERE "notifications"."receiver_id" = $1 AND "notifications"."receiver_type" = $2 AND (is_read = false AND created_at >= '2020-03-11T09:45:49.618Z')  ORDER BY created_at DESC  [["receiver_id", 1], ["receiver_type", "User"]]
  Rendered api/notifications/index.json.jbuilder (1.0ms)
Completed 200 OK in 6ms (Views: 1.4ms | ActiveRecord: 0.7ms | Elasticsearch: 0.0ms)

Quand tu colles des logs sur le forum, tu peux les encadrer par trois backquotes (`) avant et après pour que ce soit plus lisible :wink:

Sinon, tu peux essayer un

docker-compose run --rm fabmanager bundle exec rake db:seed

et voir si ça corrige des choses ?

Pas de différence,

Par contre en investiguant un peu plus, j’ai remarqué que depuis la mise à jour je peux en passant par « Admin-Agenda » réserver un créneau. Cela ne fonctionne toujours pas si je cherche à réserver une machine ou une formation quelque soit le compte que j’utilise.

Si je passe à Grenoble je t’amènerais des chocolats :-).

Il y a une chose que je ne comprend pas : comment peux tu réserver des créneaux alors que tu n’arrives pas à les créer ?

PS : avec plaisir pour les chocolats :smile:

Comme je te le disais je peux les créer/réserver en passant par la section Admin Agenda mais pas en réservant une machine et/ou une formation dans la section utilisateur l’agenda n’est pas réactif (Message console : Failed to load resource: the server responded with a status of 404 (Not Found))

Envoi en cours…

Ok, attends, je récapitule, arrête moi si je me trompe :

  • quand tu es connecté comme administrateur, tu peux créer des créneaux en passant par admin/agenda. Tu peux aussi effectuer des réservations pour le compte d’un utilisateur en passant par « réserver une machine » ou « inscriptions formations ».
  • quand tu es connecté comme membre, tu ne peux pas réserver de créneau (pour toi-même en l’occurrence), en passant par « réserver une machine » ou « inscriptions formations ».

c’est bien ça ?

Non, connectée en admin je peux effectivement créer des créneaux en passant par admin/agenda mais effectuer des réservations pour le compte d’un utilisateur en passant par « réserver une machine » ou « inscriptions formations ».

Donc pas plus en tant qu’utilisatrice :slight_smile:

mais pas effectuer (j’ai oublié le pas)

Ok !
Tu peux, tu peux coller les logs du navigateur (et du serveur tant qu’à faire), au moment où tu ouvres l’agenda de réservation, par exemple d’une machine, et que tu cliques sur un créneau (même s’il ne se passe rien) ?