instedd / hub

InSTEDD Hub
2 stars 4 forks source link

Updates in Resource Map from mBuilder not using bulk update API #124

Open pmallol opened 9 years ago

pmallol commented 9 years ago

Found in Hub version 511b47e and mBuilder 1.2-pre3 See issue: https://github.com/instedd/mbuilder/issues/141

Preconditions: User has a collection 'X' with several sites in Resource Map with the same name (e.g: BA).

  1. Create a message trigger in mBuilder
  2. Click the button to 'Add data from Hub'
  3. Select Resource Map connector > collection X > Sites
  4. Complete 'When a message like this is received' with "move [site] to [11] [22]" and make the words site, 11, 12 pills.
  5. Drag and drop the pill [site] on top of column title 'Name' from table 'Sites (from hub)'
  6. Drag and drop pill [11] under column title 'Lat' and pill [22] under column title 'Long'
  7. Save and execute message trigger with the sandbox.

Obtained: the sites are successfully updated but there is a POST per site in Poirot's logs. Expected: the update is made using resmap's bulk update API through only one POST.

screen shot 2015-03-30 at 1 22 46 pm screen shot 2015-03-30 at 2 00 03 pm

screen shot 2015-03-30 at 2 03 06 pm