Kim Alvefur
c6adacaaad
mod_storage_internal: Stop storing XEP-0091 timestamp
...
Should no longer be used by anything since the conversion of mod_offline
to the archive API in 0.10.0, which was 4 years ago. The line clearing
the property is left for a bit longer in case someone has very old
offline messages or archived data.
4 years ago
Kim Alvefur
faa381e3ed
mod_storage_internal: Fix error in time limited queries on items without 'when' field, fixes #1557
6 years ago
Kim Alvefur
344d8e7d51
mod_storage_internal: Support query for set of IDs
...
Based on implementation in mod_storage_memory
5 years ago
Kim Alvefur
7a4f8adb70
mod_storage_internal: Add support for full ID range query
...
Based on the mod_storage_memory implementation
5 years ago
Matthew Wild
0919bb30d3
mod_storage_internal, mod_storage_memory: Add support for query.before
...
Previously returned all results.
6 years ago
Kim Alvefur
d916ce38f6
mod_storage_internal: Fix keeping old timestamp in archive map API
...
This led to a missing 'when' field on changed items, which would cause a
traceack.
6 years ago
Kim Alvefur
82714e54a8
mod_storage_internal: Implement key-value API
6 years ago
Kim Alvefur
d45b4c026f
mod_storage_internal: Include last text message
...
A protocol built on this API now allows showing a list of unread
conversations with a counter, ordered by either oldest or newest
message, along with the text body itself.
6 years ago
Kim Alvefur
9d5e31fd48
mod_storage_*: Also include timestmap of first message in :summary API
...
For completeness along with most recent timestamp. Might be nice to be
able to order by oldest unread message.
6 years ago
Kim Alvefur
d3c559bcc8
mod_storage_*: Include timestamp of latest message in :summary API
...
Clients may want to show a list of conversations ordered by how
timestamp of most recent message.
The counts allow a badge with unread message counter.
6 years ago
Kim Alvefur
39cb87a158
mod_storage_*: Tweak :summary API to allow future expansion with more fields
...
Eg might want to include last message, timestamp, chat state or other info.
6 years ago
Kim Alvefur
99f6c69507
mod_storage_internal: Return appropriate error even with empty archive
7 years ago
Kim Alvefur
b772308c93
mod_storage_internal: Return error if 'before' or 'after' are not found (partial fix for #1325 )
7 years ago
Kim Alvefur
ef95de8871
mod_storage_internal: Add support for iterating over users in archive stores
...
May help with writing a better migrator
7 years ago
Kim Alvefur
637b52a13e
mod_storage_internal,memory: Only return total count if requested
7 years ago
Kim Alvefur
04d52fd099
mod_storage_internal: Return a noop iterator if archive is empty ( fixes #920 )
9 years ago
Kim Alvefur
d7789712da
mod_storage_internal: Handle case of empty item store when deleting ( fixes #910 )
9 years ago
Kim Alvefur
83741da83a
mod_storage_internal: Correctly calculate number of deleted items ( fixes #912 )
9 years ago
Kim Alvefur
2e1a6cd73e
mod_storage_internal: Support the 'key' archive query field
9 years ago
Kim Alvefur
52cff8b490
mod_storage_internal: Add the dates method
9 years ago
Kim Alvefur
8be8224bba
mod_storage_internal: Add support for removing archived items
9 years ago
Kim Alvefur
ffb3266efa
mod_storage_internal: Add basic archive store implementation
9 years ago
Kim Alvefur
fefbf23013
mod_storage_internal: Ignore unused 'self' argument [luacheck]
9 years ago
Kim Alvefur
b1d9296789
mod_storage_internal: Reorder methods
9 years ago
Kim Alvefur
0ca328a00c
mod_storage_internal: Separate driver from keyval implementation
9 years ago
Kim Alvefur
5a4e252a6c
mod_storage_internal: Only apply truncate if there are more items than requested
8 years ago
Kim Alvefur
b158553c43
mod_storage_internal: Skip write if no items matched a deletion query
8 years ago
Kim Alvefur
06addc9a73
mod_storage_internal: Optimize truncation
8 years ago
Kim Alvefur
cb209b0f1e
mod_storage_internal: Allow truncating deletion at the beginning or end of an archive store
8 years ago
Kim Alvefur
5091ef0c46
mod_storage_internal: Add more extensive query support to archive:delete method
8 years ago
Kim Alvefur
2477d1c269
mod_storage_internal: Add support for archive key deduplication (like mod_storage_sql)
8 years ago
Kim Alvefur
2ba9c6ce77
mod_storage_{none,internal,sql}: Return error for unsupported (everything but keyval) store types
12 years ago
Kim Alvefur
196022f3f5
mod_storage_internal, datamanager: Add support for iterating over users with data in a store
13 years ago
Kim Alvefur
07bb8a42ce
storagemanager, datamanager, mod_storage_{internal,sql}: Replace list_stores() with an iterator version
13 years ago
Waqas Hussain
aff71e544e
mod_storage_*: Don't explicitly set driver name, to ease copying/renaming modules.
13 years ago
Waqas Hussain
7daf3c7c14
core.storagemanager, mod_storage_*: "data-driver" -> "storage-provider", to allow using module:provides().
13 years ago
Kim Alvefur
582fa3f46f
mod_storage_internal: Implement a summary API returning message counts per contact
7 years ago
Kim Alvefur
5bb703f07f
mod_storage_internal: Include store name when reporting quota status
7 years ago
Kim Alvefur
c4b5bfdc5f
mod_storage_internal: Increase default quota to 10 000
...
Performance doesn't seem great but 10k should be far enough from limits
inherited by the Lua parser. 1000 messages seemed pretty close to what
an active user might produce in one week.
7 years ago
Kim Alvefur
9eb4885f38
mod_storage_internal,_sql: Key item count cache on both username and store
7 years ago
Kim Alvefur
0028ea46e2
mod_storage_internal,_sql: Expose archive capabilities feature set
...
This was planned to be added long ago but was forgotten.
7 years ago
Matthew Wild
d7761bd914
mod_storage_internal,_sql: Add limit to number of items in an archive store ( fixes #733 )
8 years ago
Kim Alvefur
989d976c85
mod_storage_internal: Add method for removing all data belonging to a user
14 years ago
Kim Alvefur
f3b4b75347
mod_storage_internal: Add method for listing stores
14 years ago
Matthew Wild
909cdebf94
storagemanager, mod_storage_internal: Split out default driver to mod_storage_internal, and greatly simplify storagemanager's error handling and fallback code
15 years ago