Open hub2git opened 4 years ago
Thank you for the suggestion.
At some point, I definitely need to get a better understanding of how to properly use Sync storage. With local storage, I always know what is going on. With Sync, there will be discrepancies that I currently do not have any code to handle.
For example, if a change arrives by Sync, in order for that to take effect, I need to re-read storage back into memory -- currently storage is only read when the extension initializes. But how will I know when to do that?
Also, if you add or edit a content-type in your current session, when I save the change, I need to mesh all the data together and figure out what to do about inconsistencies. Should I ask the user? Et cetera.
Hi @jscher2000, Those are good questions.
For example, if a change arrives by Sync, in order for that to take effect, I need to re-read storage back into memory -- currently storage is only read when the extension initializes. But how will I know when to do that? But how will I know when to do that?
Hmmm... maybe have it check every X minutes? Or, isn't there a way for an extension to be alerted when there are changes in the Sync "domain"?
Also, if you add or edit a content-type in your current session, when I save the change, I need to mesh all the data together and figure out what to do about inconsistencies. Should I ask the user? Et cetera.
Hmmm... that's a tough one. Yes, maybe a prompt telling the user that content-type A, B, and C have inconsistencies (and then the prompt will share the difference in layman's terms). Then the user can choose for each of the content-types: [Option 1: Apply the values from Sync] [Option 2: Keep the values that is on the local Firefox] [Option 3: Merge(?!) (Dunno how that will look like, though)]
But, for sure, if it's a choice between user-edited content type and the default setting for that particular content-type, we go with the user-edited settings.
Dear @jscher2000 ,
Thank you for a most useful extension.
Could I kindly ask you to implement syncing of Content-Type-Fixer data between devices?
This way, when I sign into my Firefox account at work or at a library, I don't have to customize my Content-Type-Fixer settings again.
My request was inspired after the Firefox Developers rolled out syncing for Multi-Account Containers. last week.
Thank you very much.