Giter Club home page Giter Club logo

Comments (13)

mitchellsundt avatar mitchellsundt commented on June 12, 2024 1

Good question. The submission date could be used, but then the order would differ slightly from what ODK Aggregate will do. Perhaps this divergence just needs to be documented?

Submission date records the arrival of a submission on the server. Marked-as-complete date records the completion of the submission on the server. These are the same if the submission does not contain attachments but can be an arbitrary time later if the sender has connectivity problems interferring with the transmission of all media attachments or if the submission is never completely uploaded, and then much later an administrator manually marks-it-as-complete on the Form Management / Submissions Admin sub-tab.

And even later if performing pull/push copying-across ODK Aggregate instances.

from briefcase.

rclakmal avatar rclakmal commented on June 12, 2024

@yanokwa I would like to work on this enhancement to make myself familiar with the code base before GSoC17 application period.

If I understood correctly, the csv export should have records sorted by "SubmissionDate"?

from briefcase.

yanokwa avatar yanokwa commented on June 12, 2024

@rclakmal Please take it on! Note that not all forms or instances/submissions will have SubmissionDate. If it's a mix, the instances/submissions without SubmissionDate should go to the bottom.

from briefcase.

mitchellsundt avatar mitchellsundt commented on June 12, 2024

from briefcase.

yanokwa avatar yanokwa commented on June 12, 2024

Thanks for the clarification @mitchellsundt! @rclakmal, please sort by markedAsCompleteDate.

from briefcase.

rclakmal avatar rclakmal commented on June 12, 2024

@mitchellsundt and @yanokwa Thanks. Will update the PR

@mitchellsundt In the absence of this attribute, should we use a separate attribute or just leave the csv unsorted ? For an example, I'm testing with "sample" data set. It doesn't seem to have this attribute.

from briefcase.

yanokwa avatar yanokwa commented on June 12, 2024

@rclakmal I would leave it unsorted. That is, for each form export, sort all form submissions by markedAsCompleteDate, with earliest going first. If a submission does not have markedAsCompleteDate, it should go to the bottom and be unsorted. It is possible that some, all, or none of the submissions will have markedAsCompleteDate.

from briefcase.

rclakmal avatar rclakmal commented on June 12, 2024

@yanokwa @mitchellsundt I changed the implementation to use markedAsCompleteDate attribute. However, I noticed, this attribute is not getting exported to the csv even when it is present in submission.xml.

Is this the case ? Or have I done something wrong with the export?

from briefcase.

mitchellsundt avatar mitchellsundt commented on June 12, 2024

It isn't. It can be missing, too, if the submissions are pulled directly off the device.

It isn't included in the csv because the value is not durable across pulls and pushes to different ODK Aggregate instances. I.e., if you pull data from ODK Aggregate A and push to ODK Aggregate B, then B will assign different marked-as-complete dates vs. A.

This is an internal field that is central to many operations within the server and it cannot be made to be durable.

from briefcase.

rclakmal avatar rclakmal commented on June 12, 2024

@mitchellsundt Thanks for the detailed explanation.
But if we sort the csv by a field which is not visible in the export itself, wouldn't it confuse the user? The user wouldn't be able to see any direct sorting patterns.

from briefcase.

rclakmal avatar rclakmal commented on June 12, 2024

@yanokwa Could you also comment on @mitchellsundt suggestion?

from briefcase.

yanokwa avatar yanokwa commented on June 12, 2024

@rclakmal I agree that it's confusing to users to not understand how values are being sorted. I think submissionDate is a good compromise, especially since it's durable. If you are happy with how you've implemented it, I can start a review of your PR.

from briefcase.

rclakmal avatar rclakmal commented on June 12, 2024

@yanokwa Thanks. Yes it's open for review.

from briefcase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.