Comments (8)
Definitely an issue we've had -- how would you propose fixing this?
from tie.
Can we use cookie to do this, since we don't have concept of server and session? @eyurko
from tie.
Can we just let chrome or any other browser to cache the code?
from tie.
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.
@luofei11 we do keep some concept of a session -- check the TranscriptObjectFactory / SnapshotObjectFactory.
Also, this is a duplicate of #54.
from tie.
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.
@seanlip I would suggest using localStorage as it stores data with no expiration date.
from tie.
@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)
- _processCodeCompilationServerResponse should include stderr.
- Recursive Loop check only works for Skulpt errors. HOT 1
- Add error message / redirect / butter bar for invalid question ID / inactive question retrieval attempts.
- No "tie-button-red" CSS class exists in LearnerViewDirective. HOT 2
- (a) Make it more clear what language the coding window is in and (b) Not clear that 's' should be treated as a string. HOT 9
- client/question/question.html URL seems redundant HOT 3
- Pop up privacy statement on first use or display on download page for stand-alone version HOT 1
- Remove the extra characters that appear at the end of stdout. HOT 3
- Add new test for ReverseWords
- Changing the name of an argument in the main function results in a "modified starter code" error.
- Night mode CSS is buggy when horizontal scroll is needed for open-source version. HOT 1
- Clicking "Reset Code" does not clear the feedback window. HOT 3
- Condense user stdout when it contains many lines.
- Buggy output tests currently take into account the output for all tasks, whereas they should only consider the output for the task they're defined in.
- The video at https://google.github.io/tie/ fails to autoplay when the page is loaded. HOT 3
- Code details window needs higher z-index HOT 1
- "Reset Feedback" Button should be removed and "Reset Code" should be updated.
- Update file overview for FeedbackGeneratorService.js
- Skulpt syntax error messages do not match standard Python
- Can't find how to go to next problems
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tie.