Exposing form deleting endpoint in Briefcase API

Hi Guys,

My Aggregate setup is such that I need to automatically 'prune' ODK forms
on Aggregate once in a while. I noticed Briefcase API currently doesn't
support deleting of forms.

I am willing to expose a new endpoint for deleting forms. However, are you
guys willing to merge such a feature into the Aggregate BriefcaseAPI
project?

Regards,
Jason

Yes, if you do the code changes and additions, we'll fold it in.

When you have something, let me know and I will work with you to integrate
the changes.

For ODK Aggregate, you would need to

  • add a new SubmissionPurgeServlet (under org.opendatakit.aggregate.servlet
    ) that would call into

  • a new class (FormAdminUtil ?) that has the bulk of
    FormAdminServiceImpl.purgeSubmissionsData() pulled into a static method.

  • call that static method from FormAdminServiceImpl and the new purge
    servlet, passing in the relevant CallingContext from each.

  • update the war/WEB-INF/applicationContext-security.xml with a new entry:

      <intercept-url pattern="/purgedata"
    

access="hasRole('ROLE_DATA_OWNER')" />

And define the SubmissionPurgeServlet to use /purgedata as its URL. Make
the needed changes to web.xml.

The resulting /purgedata functionality will require credentials that have
the Form Management permissions.

ยทยทยท On Sun, Mar 1, 2015 at 12:03 AM, jasonrogena@gmail.com < jasonrogena@gmail.com> wrote:

Hi Guys,

My Aggregate setup is such that I need to automatically 'prune' ODK forms
on Aggregate once in a while. I noticed Briefcase API currently doesn't
support deleting of forms.

I am willing to expose a new endpoint for deleting forms. However, are you
guys willing to merge such a feature into the Aggregate BriefcaseAPI
project?

Regards,
Jason

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com