Add/store channel archive metadata document #8
No reviewers
Labels
No Label
bug
design
dev environment
docs
duplicate
enhancement
feature
good first issue
idea
invalid
kredits-1
kredits-2
kredits-3
on hold
ops
question
release
major
release
minor
release
patch
security
ui/ux
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kosmos/rs-module-chat-messages#8
Loading…
Reference in New Issue
No description provided.
Delete Branch "feature/7-archive_metadata"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In order to be able to easily retrieve the last archive date and document, this adds a '/meta' doc, which contains both the first and last archive dates/IDs, to a channel's root directory.
Caveat: I have encountered what looks like a bug with non-explicit caching turned on in the remoteStorage client. So this requires instantiating RS clients with the
cache: false
option for now.closes #7
Add/store chat archive metadata documentto Add/store channel archive metadata documentutACK
@ -15,0 +18,4 @@
const sortedNumbers = Object.keys(items)
.map(i => parseInt(i))
.filter(i => !Number.isNaN(i))
.sort(function(a, b) { return a - b });
.sort()
is enough, as it's the default sort order.