You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a project is created the user should get the default presets with its associated fields and icons. What we end up after talking with @gmaclennan is the following:
Bundle the default config file inside the app (probably on this repo). This can change in terms of user need. i.e. the config could be distributed as a regular file that gets loaded through a dialog in the frontent.
When creating a new project, we first delete all the presets in the db (to avoid db bloat) and then load and write to the db the default fields, icons and lastly the presets.
After inviting a new peer to the project, they would get all the default presets from the project creator
Additionally we discussed replacing the format from a tarball to a zip (since it can be open in every OS without a command line) and the extension from .mapeosettings to .mapeoconfig.
I've already created the issue on the mapeo-settings-builder repo to take that into account for future configs
2. When creating a new project, we first delete all the presets in the db (to avoid db bloat) and then load and write to the db the default fields, icons and lastly the presets.
Just a note that the deletion of presets, fields and icons as the first step in adding a new config file is not to avoid db bloat (because it's an immutable database it gets even bigger with deletions), it's a quick-and-dirty way to avoid ending up with duplicate presets. We should do something smarter (e.g. deterministically hashing presets, fields and icons so that we don't delete and recreate ones that have not changed), but that can be a follow up I think.
3. After inviting a new peer to the project, they would get all the default presets from the project creator
Just to note that this task doesn't require anything here - the invite flow already syncs presets before completion.
Does it make sense to close this? There's follow up work on loading a config, so maybe we could add tasks to this issue and keep it open? (I'm fine either way...)
Description
When a project is created the user should get the default presets with its associated fields and icons. What we end up after talking with @gmaclennan is the following:
Additionally we discussed replacing the format from a tarball to a zip (since it can be open in every OS without a command line) and the extension from
.mapeosettings
to.mapeoconfig
.I've already created the issue on the mapeo-settings-builder repo to take that into account for future configs
The text was updated successfully, but these errors were encountered: