Log

util/pubsub.lua @ 9288:1330b5290a10

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