Git Product home page Git Product logo

Comments (8)

eyurko avatar eyurko commented on May 5, 2024

Definitely an issue we've had -- how would you propose fixing this?

from tie.

luofei11 avatar luofei11 commented on May 5, 2024

Can we use cookie to do this, since we don't have concept of server and session? @eyurko

from tie.

jianhaolyu avatar jianhaolyu commented on May 5, 2024

Can we just let chrome or any other browser to cache the code?

from tie.

sniffsky avatar sniffsky commented on May 5, 2024

Thank you for reply! I do not have specific details yet but the basic two ideas is to use backend database or web cookie. Thanks! @eyurko

from tie.

eyurko avatar eyurko commented on May 5, 2024

@luofei11 we do keep some concept of a session -- check the TranscriptObjectFactory / SnapshotObjectFactory.

Also, this is a duplicate of #54.

from tie.

seanlip avatar seanlip commented on May 5, 2024

Copying comments from #54 and closing it since this thread seems to have progressed farther. Noting @eyurko's comment from there, too:

Generally, we'd like to be able to preserve student code on a problem if they navigate between questions or if they refresh the page, but we preprocess the code before saving it in CodeEvalResult. This suggests that it would be worth saving the unprocessed, raw student code as part of the snapshot as well, otherwise we'd have to reverse the preprocess step, which would be needlessly expensive.

My suggestion would be to use localStorage/sessionStorage, since we don't have a backend database. I recommend coming up with a brief technical description of the proposed solution (what namespace are you going to use, for example) before trying to implement it.

from tie.

luofei11 avatar luofei11 commented on May 5, 2024

@seanlip I would suggest using localStorage as it stores data with no expiration date.

from tie.

wmcalyj avatar wmcalyj commented on May 5, 2024

@seanlip Can you please assign me this issue or add me to the collaborator since I am working with Kaikai @sniffsky on this issue together.

from tie.

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.