Projects tigase _server tigase-pubsub Issues #14
Fetch PubSub messages baed on given timestamp (#14)
Open
Artur Hefczyc opened 1 decade ago

We need a REST API/Admin ad-hoc command to load all publications from a given PubSub node based since the given timestamp. Right now we only have functions to load N last messages or N messages from a given position.

Please estimate work effort.

I understand this task involves 2 elements - support in the PubSub component itself for such function, then an admin ad-hoc command (and REST API call). Please provide estimation for both parts separately.

Artur Hefczyc commented 1 decade ago

Please start working on this.

Artur Hefczyc commented 1 decade ago

It is still in "new" status, I suppose it is completed already?

Andrzej Wójcik (Tigase) commented 1 decade ago

I updated script from PubSub component project for REST to support this adhoc command properly. Sending following data to http://localhost:8080/rest/pubsub/pubsub.localhost/retrieve-items

<data>
  <tigase-pubsub prefix="true">
    <node-name>example</node-name>
    <timestamp>2013-01-01T00:00:00Z</timestamp>
  </tigase-pubsub>
</data>

will execute this command at server pubsub.localhost passing example as node-name and 2013-01-01T00:00:00Z as timestamp will return data in following format:

<result>
  <title>Items</title>
  <reported>
    <id />
  </reported>
  <item>
    <id>
      <value>item-3</value>
    </id>
  </item>
 </result>
Referenced from commit 11 months ago
Referenced from commit 11 months ago
issue 1 of 1
Type
Task
Priority
Major
Assignee
RedmineID
1670
Estimation
8h
Spent time
2h 30m
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/tigase-pubsub#14
Please wait...
Page is in error, reload to recover