Dim: dim api possible data loss situations

Created on 19 Mar 2020  路  7Comments  路  Source: DestinyItemManager/DIM

  1. [x] Enabling sync on a clean browser shows "skipped sync" if you have existing data in DIM API.
  2. [x] Import skipped dialog references a backup, but the backup isn't created when enabling from settings.
  3. [x] Figure out a way to better explain that your old data isn't gone, but you're not gonna see it.
  4. [ ] Explore merging data rather than skipping import?
  5. [x] Turning sync off, old data (tags specifically) don't show up.
  • delete all, restart chrome, visit beta, (sync unchecked), complete bungie auth

  • import my tags and settings
    image
    (tags are there in inventory view)

  • enable sync in settings. get this message
    image
    what i expected: a file to download
    what happened: a file didn't download

  • check inventory
    what happened: 6 tags that sync is storing for me, have been correctly applied to those items.
    my other 500 items have become untagged
    what i was hoping for: my existing information would be synced into dim sync like the name implies. merge i guess, into dim cloud's existing item information for me.

  • turn sync off to try and get my data back
    what i expected: from what bhollis described, maybe revert back to old info?
    what happened: the 6 tags are still there, dim-api-enabled is false

Sync

All 7 comments

  • delete all, restart chrome, visit beta, (sync unchecked), complete bungie auth

  • delete dim-api-enabled.
    does this sufficiently simulate being an existing user who has newly downloaded the new sync update?
    it certainly gets me the notification.

  • same import process
    (notification is prompting me to enable sync)

  • enable sync in settings.
    again, get the "old data wasn't imported" message.
    again, alleged backup doesn't download.

  • what i expected: notif to go away
    what happened: didn't until page refresh

same situation beyond that.
if people accept sync on their non-main device first, then on their main, they get their phone's tags or lack thereof etc.

is there a difference in storage, between where settings go, if i select no sync, and then either

  • import a json:
    then enabling sync gives me "skipped data import" and seems to wipe the local data

  • tag an item:
    then enabling sync gives me no notification at all, and when i turn sync back off, the item i tagged gets its local tag back

are these meant to be such different behaviors?

ok so the "enable sync" notification triggers a backup file download,
and enabling via settings does not

  • made sure sync was OFF

  • did image

  • delete everything, restart chrome, visit beta, (sync unchecked), complete bungie auth

  • delete dim-api-enabled.

  • same import process
    (notification is prompting me to enable sync)

  • enabled sync via notification

  • got "skipped import"
    image
    console:
    [importLegacyData] Don't need to import, this legacy data has already imported

api response: {}
payload to api on import attached

Untitled-2.txt

i get the feeling that ^ doesn't represent true legacy user, is the json import i do going into the new settings object or the old?

Commented in Slack - it's a bit hard to respond to these all in one big line without threaded replies. I think everything but your last case is expected but unclear to the user, and the last one is unexpected and I'll have to understand what is going on.

I think I've handled all of this - LMK.

Was this page helpful?
0 / 5 - 0 ratings