-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data files #318
Data files #318
Conversation
apps/welcome/settings.js
Outdated
@@ -1,13 +1,13 @@ | |||
// The welcome app is special, and gets to use global settings | |||
(function(back) { | |||
let settings = require('Storage').readJSON('welcome.settings.json', 1) | |||
let settings = require('Storage').readJSON('welcome.sjson', 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this a typo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, well spotted.
Looks great - am I missing something about the settings though? Maybe it's fine but I'd be a little concerned about removing the default settings file in case some other app actually expects that there'll be values in it... |
settings: never delete settings file welcome: fix typo, remove outdated comment ncstart: remove outdated comment
I looked at all apps, and as far as I could tell they all handled missing |
# Conflicts: # apps/setting/ChangeLog # apps/widbatpc/ChangeLog
Thanks! Definitely removing the default file seems like a good plan - there's so much duplication at the moment |
Just to add, one other option for settings is a |
We could do something like that, but do we actually want to upload default setting files? I think apps should be able to handle missing settings. If only because a new app version might add a setting, so the updated app needs to handle the old file where that setting is missing. (Maybe apps could include a |
Yes, good point :) Thanks! |
Make these apps use data files:
gpsrec uses
.gpsrcN
to store tracks, so sanitycheck still complains about the filename not containing the app Id :-(