>Hi-
>
>I updated the saildataservice.concord.org site to the latest stable branch. 
>The only big change in the update is how Error Bundles are handled.
>
>When you get an error bundle, all you have to do now is upload the xml file 
>through the errorbundle_create page (e.g., 
><http://saildataservice.concord.org/1/offering/95/errorbundle_create>http://saildataservice.concord.org/1/offering/95/errorbundle_create,
> replacing 1 and 95 with your correct portal id and offering id, 
>respectively). The server will then:
>
>1) save the uploaded bundle as-is in the errorbundles table
>2) transform the error bundle into valid bundle syntax
>3) add the bundle to the bundles table
>
>At that point, the bundle should download whenever the correct workgroup 
>re-opens the offering (as if there was no error, and it was uploaded correctly 
>in the first place).
>
>Feel free to test it out and let me know if there are any problems.

Thanks Aaron,

Can you check that after an errorbundle is inserted that it is returned in the 
correct order.

Bundles should be returned to a SAIL application request in  the order of 
oldest first. Previously this ordering was based on when the record was created 
in the database. I added the functionality to the stable branch so that a new 
attribute: sail_session_start is generated when a bundle is received (generated 
at the SAIL application). This is the attribute that should be used for 
ordering (I made a custom finder for the bundle model).

You can test as a user by starting up a workgroup in a test activity 3 times 
and changing the same note three times.

1) Start: enter into note: 'First test' :: quit and persist
2) Start: enter into note: 'Second test' :: disconnect network, quit, persist 
on file system as errorbundle; reconnect network,
3) Start: enter into note: 'Third test' :: quit and persist
4) upload errorbundle
5) Start: note should say 'Third test'

You can also look in the 'show' page. There bundles are listed in order from 
newest to oldest.

Try uploading the errorbundle more than once. Only one copy should be put into 
the bundle table.

-- 
- Stephen Bannasch
  Concord Consortium, http://www.concord.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SAIL-Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/SAIL-Dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to