Skip to content
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

Export: Better disambiguate conversation directory names #1409

Merged
merged 1 commit into from
Aug 30, 2017

Conversation

scottnonnenberg
Copy link
Contributor

We start with active_at to ensure that the directories are sorted like they are in the UI.

Next we show the human-readable value - the name of the group, the name of the contact.

Because contacts and groups can have the same names, and may have even been active at the same moment, we add one more datapoint to disambiguate the directories on disk: the id.

Note: group ids are binary and have a lot of weird characters. These are mostly turned to underscores via sanitizeFileName(), but they'll still be useful for disambiguation.

Copy link
Contributor

@liliakai liliakai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd consider converting the group ids to hex or base64 to make them more palatable to the file system. lg2m either way though.

@scottnonnenberg
Copy link
Contributor Author

On the off chance that the last couple characters end up in the directory name, I think I'd like to keep the name the same for easier association with the log.

@scottnonnenberg scottnonnenberg merged commit 3f7fbd9 into master Aug 30, 2017
@scottnonnenberg scottnonnenberg deleted the export-disambig branch August 30, 2017 20:23
scottnonnenberg added a commit that referenced this pull request Aug 30, 2017
Properly handle update of blocked numbers sync'd from mobile
device (#1411)

Fix some bugs with migration to Electron (still behind a flag)
  - Dark Theme: Increase banner text contrast for legibility (#1415)
  - Better disambiguate conversation directory names (#1409)
  - Handle long group or contact names (#1402)
  - Redact group ids in export logging (#1402)

Better logging
  - Don't log expiration if queued task threw an error (#1412)
  - Additional error handling/logging during contact sync (#1395)

Remove unknown group messages from cache - no need to retry! (#1414)

Update a large number of strings via transifex (#1403)

FREEBIE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants