Log

util/pubsub.lua @ 10311:1bb1e16f24b0

description author age
util.pubsub: Validate node configuration on node creation (fixes #1328) 0.11 Kim Alvefur 2019-03-03
util.pubsub: Add support for requesting multiple specific items (needed for #1305) 0.11 Kim Alvefur 2019-01-28
util.pubsub: Restore subscription index from stored data (fixes #1281) 0.11 Kim Alvefur 2018-12-29
util.pubsub: Clarify comment about return value Kim Alvefur 2018-10-21
util.pubsub: Allow publishing with a config that should be used as defaults only Matthew Wild 2018-10-18
util.pubsub: Expand comment on return type from get_items Kim Alvefur 2018-08-31
util.pubsub: Explicitly add all capabilities to the 'outcast' affiliation for completeness Kim Alvefur 2018-08-31
util.pubsub: Comments describing the return values of methods Kim Alvefur 2018-08-22
util.pubsub: Add 'service' field to all events Matthew Wild 2018-08-27
util.pubsub: Remove unused argument Kim Alvefur 2018-08-21
util.pubsub: Fire item-published/<node> to allow for easier handling of per-node items Matthew Wild 2018-08-19
util.pubsub, pubsub.lib: Improve error on attempt to publish invalid item Matthew Wild 2018-08-18
Pubsub: Add tests for :get_last_item() and fix for non-persistent nodes Matthew Wild 2018-08-18
util.pubsub: Fix whitespace [luacheck] Matthew Wild 2018-08-18
Backed out changeset 27d800ddc3b0 (see below) Matthew Wild 2018-08-18
util.pubsub: get_last_item(): Fail with item-not-found if no item yet published Matthew Wild 2018-08-18
util.pubsub: get_last_item(): Return error if node does not exist Matthew Wild 2018-08-18
pubsub.lib, util.pubsub: Move precondition checks to util.pubsub Matthew Wild 2018-08-18
util.pubsub: Add comment to clarify return values Matthew Wild 2018-08-18
util.pubsub: Pass "retract" as the type of such broadcasts Kim Alvefur 2018-08-16
util.pubsub: Allow outcasts to get their subscription status Matthew Wild 2018-08-12
util.pubsub: For open nodes, default affiliation is "member" Matthew Wild 2018-08-09
mod_pep, util.pubsub: Rename restricted->outcast, none->member and add new 'none' affiliation to better match XEP-0060 Matthew Wild 2018-08-08
mod_pubsub, mod_pep, util.pubsub: Move capability definitions into util.pubsub to avoid duplication Matthew Wild 2018-08-08
util.pubsub: Include node defaults from current service object Kim Alvefur 2018-08-07
util.pubsub: Re-check all subscriptions on access_model change, unsubscribing those no longer allowed Kim Alvefur 2018-08-06
util.pubsub: Add support for publish_model config option Matthew Wild 2018-08-06
util.pubsub: Apply defaults metatable before config check (thanks pep.) Kim Alvefur 2018-08-05
util.pubsub: Add method to retrieve node configuration Matthew Wild 2018-08-04
util.pubsub: Use service.node_defaults in case config.node_defaults was not provided (thanks jonasw) Matthew Wild 2018-08-04
util.pubsub: Tweak default affiliation of access models (fixes failing test) Matthew Wild 2018-08-04
util.pubsub: Look for a configured callback for more complicated access models Kim Alvefur 2018-08-04
util.pubsub: Add initial support for configurable access models Kim Alvefur 2018-08-04
util.pubsub: Add support for a config validation function Matthew Wild 2018-08-01
util.pubsub: Support for returning *all* subscriptions Kim Alvefur 2018-07-13
util.pubsub: Return error code known by pubsub.lib if persistent creation fails Kim Alvefur 2018-07-01
util.pubsub: Store subscription changes Kim Alvefur 2018-07-01
util.pubsub: Persistence on affiliation change Kim Alvefur 2018-07-01
util.pubsub: Remove node from persistent storage on deletion Kim Alvefur 2018-07-01
util.pubsub: Persist nodes on configuration change Kim Alvefur 2018-07-01
util.pubsub: Fix applying per service node defaults when loading from nodestore Kim Alvefur 2018-07-01
util.pubsub: Fix typo Kim Alvefur 2018-06-26
util.pubsub: Normalize JID used as affiliation Kim Alvefur 2018-06-26
util.pubsub: Also check for affiliation set on bare JID Kim Alvefur 2018-05-21
util.pubsub: Pass node and service objects to broadcaster to allow eg config access Kim Alvefur 2018-05-20
util.pubsub: Add a default/fallback JID normalization function Kim Alvefur 2018-05-20
util.pubsub: Don't record the superuser as owner on creation Kim Alvefur 2018-05-20
util.pubsub: Allow setting a callback for validating items to be published Kim Alvefur 2018-03-21
util.pubsub: Support a 'nodestore' for persisting nodes (same API as kv stores) Matthew Wild 2018-02-02
util.pubsub: Move service methods object creation (just code reorganisation) Matthew Wild 2018-02-02
util.pubsub: For clarity, split config tables from their metatables Matthew Wild 2018-02-01
util.pubsub: Recreate itemstore if persist_items changes or resize it if max_items changes Kim Alvefur 2017-11-09
util: Various minor changes to please [luacheck] Kim Alvefur 2017-11-10
util.pubsub: Add method for retreiving the last item (useful for sending on subscribe) Kim Alvefur 2017-11-06
util.pubsub: Return an empty list if specific item asked for does not exist (thanks jonasw) Kim Alvefur 2017-10-18
pubsub: Distinguish internal representation of node config from XEP-0060 form (util.pubsub should be protocol-agnostic) Kim Alvefur 2017-10-17
util.pubsub: Remove inclusion of publisher Kim Alvefur 2017-10-16
util.pubsub: Return item-not-found if a single item is requested, and not there Kim Alvefur 2017-10-09
util.pubsub: Clear data on node deletion Kim Alvefur 2017-10-08
util.pubsub: Clear data store if it supports being cleared, otherwise fall back to creating a new one Kim Alvefur 2017-10-07
util.pubsub: Don't record publisher when superuser privileges are used (eg by modules) Kim Alvefur 2017-07-29
util.pubsub: Catch overriden id from storage Kim Alvefur 2017-04-26
util.pubsub: Add the publisher as an attribute in the item element. Emmanuel Gil Peyrot 2017-04-02
util.pubsub: Add a node parameter to itemstore(). Emmanuel Gil Peyrot 2017-04-02
Merge 0.10->trunk Kim Alvefur 2016-11-19
util.pubsub: Fix item retrieval by including the item order as it was before using util.cache (thanks walduhu) Kim Alvefur 2016-11-19
Merge 0.10->trunk Kim Alvefur 2016-10-18
util.pubsub: Rename loop variable to avoid name clash [luacheck] Kim Alvefur 2016-10-18
Merge 0.10->trunk Kim Alvefur 2016-10-15
util.pubsub: Factor item storage cache into a per service configurable option Kim Alvefur 2016-10-15
util.pubsub: Switch to use util.cache for item data Kim Alvefur 2016-10-15
Merge 0.10->trunk Kim Alvefur 2015-08-20
util.*: Remove use of module() function, make all module functions local and return them in a table at the end Kim Alvefur 2015-02-21
Merge 0.10->trunk Matthew Wild 2014-11-20
mod_pubsub: Add support for including the publisher in item broadcasts Philipp Hancke 2014-11-20
Merge 0.10->trunk Kim Alvefur 2014-09-27
util.pubsub: Add support for limiting the number of item in a node (default to 20) Kim Alvefur 2014-09-27
util.pubsub: Add support for node configuration Kim Alvefur 2014-09-27
util.pubsub: One less table allocated per pubsub object created Kim Alvefur 2014-09-27
util.pubsub: Use local Kim Alvefur 2014-09-27
Merge 0.10->trunk and Happy New Year! Kim Alvefur 2013-12-31
util.pubsub: Separate data from node configuration Kim Alvefur 2013-12-30
util.pubsub: Fire events on more actions Kim Alvefur 2013-12-26
mod_pubsub, util.pubsub: Keep track of the order of items Kim Alvefur 2013-10-04
Remove all trailing whitespace Florian Zeitz 2013-08-09
util.pubsub: Check whether node exists, when deleting Florian Zeitz 2013-06-12
util.pubsub: Fix get_subscriptions to not pass a boolean as node name (thanks jonas) Kim Alvefur 2013-05-26
mod_pubsub, util.pubsub: Add delete action Kim Alvefur 2013-01-31
util.pubsub: Fix nil access error in get_subscriptions. Waqas Hussain 2013-01-25
mod_pubsub, util.pubsub: Don't send purge notifications in an <items/> element Florian Zeitz 2013-01-25
mod_pubsub, util.pubsub: Implement the purge action Kim Alvefur 2013-01-23
util.pubsub: Add item-published event Matthew Wild 2012-11-15
util.pubsub: Remove access checking from remove_all_subscriptions (temporarily?) Matthew Wild 2011-08-30
util.pubsub: Add service:remove_all_subscriptions() Matthew Wild 2011-08-30
util.pubsub: Support for events (currently subscription-added and subscription-removed) Matthew Wild 2011-08-30
util.pubsub: Use built-in actor for auto-creating nodes on publish and subscribe (so they never fail due to permissions) Matthew Wild 2011-08-29
util.pubsub: Pass true instead of nil as the actor in a bunch of places, and fix a bunch of methods to not traceback on this (those with *_other capability checking). Matthew Wild 2011-01-08
util.pubsub: Some tidying/optimisation to service:may() Matthew Wild 2011-01-08
util.pubsub: Return correct node in get_subscriptions() Kim Alvefur 2010-12-22
util.pubsub: Use correct node name when returning a list of multiple nodes in a subscriptions response Matthew Wild 2010-12-22
util.pubsub: Add service-wide subscription tracking, and add :get_subscriptions() Matthew Wild 2010-12-22
util.pubsub: Small code tidying for :get_subscription() Matthew Wild 2010-12-22
util.pubsub: Fix traceback when using autocreate-on-subscribe Matthew Wild 2010-12-22
util.pubsub: Add service:jids_equal() and new config option normalize_jid Matthew Wild 2010-12-22
util.pubsub: get_items(): When requesting a specific item, use the id as a key to mirror the multiple-item case Matthew Wild 2010-12-22
util.pubsub: Add service:set_node_capabilities() Matthew Wild 2010-12-21
util.pubsub: Fix nil global access in get_nodes() Matthew Wild 2010-12-21
util.pubsub: Too many changes to list or split sensibly. Added access control to all methods, with capabilities support. Renamed get() -> get_items() and changed it to return true, result on success. Support for autocreate_on_subscribe and autocreate_on_publish config options. Matthew Wild 2010-12-21
util.pubsub: Modify new() to take a config, and add a default config via a metatable Matthew Wild 2010-12-21
util.pubsub: Add service:get_nodes() Matthew Wild 2010-12-17
mod_pubsub: Support item retraction Florian Zeitz 2010-12-05
mod_pubsub, util.pubsub: Support for unsubscribing Florian Zeitz 2010-12-05
mod_pubsub, util.pubsub: Support node creation Florian Zeitz 2010-12-01
mod_pubsub, util.pubsub: Support for fetching items Florian Zeitz 2010-11-25
util.pubsub: Add :get_subscription() to return the current subscription for a JID, if any Matthew Wild 2010-11-13
mod_pubsub: It's aliiiive! Matthew Wild 2010-11-13
Add copyright header to those files missing one Matthew Wild 2009-07-10
util.pubsub: Fix undefined global accesses Matthew Wild 2009-07-10
Adding initial util.pubsub Matthew Wild 2009-02-28