feat(backblaze): Include milliseconds since epoch to bucket name #403
No reviewers
Labels
No Label
Blocked
Bug
Contributions welcome
Did not do
Errata
Feature request
Fixed
How To
Invalid
Needs design
No resolution
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Providers
Digital Ocean
Providers
Hetzner
Refactor
Severity
High
Severity
Low
Severity
Medium
Source
Community
Source
Core Team
Source
Stakeholders
Translations
Under investigation
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: SelfPrivacy/selfprivacy.org.app#403
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "better-bucket-name"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
@ -66,2 +66,2 @@
String bucketName = 'selfprivacy-$domain-$serverId';
// If bucket name is too long, shorten it
String bucketName =
'$domain-$serverId-${DateTime.now().millisecondsSinceEpoch}';
The milliseconds since epoch is 13 digits long right now. Our limit on the name is 49 letters. The server ID is 8-12 digits long. It is 26 letters left for the
domain
. I would propose to trim the domain to ~20 letters.bucketName
gets trimmed up to 49 characters after that. Could we rearrange it like'${DateTime.now().millisecondsSinceEpoch}-$serverId-$domain'
then ?So if we exceed 49 characters, the domain will get trimmed either way, as it's in the end
yes, we might do this as well