-
Notifications
You must be signed in to change notification settings - Fork 46
Move comments from browser storage to app #208
Comments
IIANM, the comment is currently stored as Markdown in localStorage. Why does moving it to the app necessitating more structured storage? Can't we get away with: I get it - just data transfer sizes across the network? |
Quick notes on implementation:
Re importance/scope: I think this is a high second priority. We required LocalStorage + JS initially due to records management concerns. Had they not been an issue, we would have built with a progressive enhancement bent (starting with the assumption of hard reloads, building up the relevant AJAX). Unfortunately, that's not our situation -- though we're less concerned about records management now, we have additional work to support non-JS. I'd argue that, our priority should remain building a full app with our initial platform (modern, JS browsers with LocalStorage). However, we know that we want to support non-JS at some point in the future, hopefully before the end of this pilot, so when we write code to satisfy our primary goal (the JS app), we should be engineering them towards the secondary goal (the non-JS app). From my perspective, we shouldn't work on this unless we have finished critical-path tasks. |
Just curious--how do we know? Is this a regulatory requirement? Do many current users have js disabled?
Agreed! What are those? @cmc333333: are you saying that we want to continue using browser storage? Now I'm thinking I misunderstood our conversation on slack earlier today. |
Few webapps need JavaScript and there's nothing inherent to notice-and-comment that would appear to require it. Following the principles of progressive enhancement, webapps should provide a useable experience down to the point where the app is not longer useful. To give examples, if the webapp needs a slippy map, we need JS. If the webapp is just presenting content markup, there's zero reason to require JS.
We chat about outstanding issues every few days, right? I'll post again in slack do prevent cluttering this issue. |
Why:
Steps:
For the comment data model, I'm thinking about something like:
Comment (user, section, label, text)
Attachment (name, size, key, commentid)
Although we could also store the attachment list as a blob, since we may not need to query it directly.
Questions:
Note: this would replace the proposal to store comment text on s3 that was discussed yesterday.
@vrajmohan @tadhg-ohiggins @xtine @cmc333333
The text was updated successfully, but these errors were encountered: