Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-4842

FIWARE.Question.Tech.Apps.ApplicationMashup.PaginatedSubscription

    Details

      Description

      Created question in FIWARE Q/A platform on 21-10-2014 at 13:10
      Please, ANSWER this question AT http://stackoverflow.com/questions/26486072/pagination-in-subscription

      Question:
      Pagination in subscription

      Description:
      I have an operator that performs subscriptions for specific types of orion entities.
      However, although i use the relevant field (limit) in the options object i push for the subscription, data still arrive paginated at 20 elements (I would like to increase it). Is pagination (limit) option valid only for query operations, or is it available for subscriptions as well?

      Here is my code:

      var subscribe = function subscribe() {
      this.connection = new NGSI.Connection(this.ngsi_server,

      { ngsi_proxy_url: this.ngsi_proxy }

      );

      var attributeList = null;
      var duration = this.subscriptionUpdateRate;
      var throttling = null;
      var notifyConditions = [

      { 'type': 'ONCHANGE', 'condValues': this.condValues }

      ];
      var options = {
      flat: true,
      limit: 999,
      onNotify: function(data)

      { handlerReceiveEntity(data); }

      ,
      onSuccess: function(data) {
      ....
      window.addEventListener("beforeunload", function()

      { this.connection.cancelSubscription(this.subscriptionID); }

      .bind(this));
      }.bind(this)
      };
      this.connection.createSubscription([this.entities], attributeList, duration, throttling, notifyConditions, options);
      };

      Still, I am getting only 20 entities instead of ~40 when the function is first invoked. Any idea what might be wrong?

      The version of Orion is 0.14.0.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        2h 59m 1 Backlog Manager 18/Oct/15 12:04 AM
        In Progress In Progress Answered Answered
        3h 1 Backlog Manager 18/Oct/15 3:04 AM
        Answered Answered Closed Closed
        14h 59m 1 Backlog Manager 18/Oct/15 6:04 PM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        mev Manuel Escriche made changes -
        HD-Enabler Wirecloud [ 10857 ]
        HD-Chapter Apps [ 10836 ]
        aarranz Álvaro Arranz made changes -
        Summary FIWARE.Request.Lab.Apps.ApplicationMashup.PaginatedSubscription FIWARE.Question.Tech.Apps.ApplicationMashup.PaginatedSubscription
        aarranz Álvaro Arranz made changes -
        Summary [fiware-stackoverflow] Pagination in subscription FIWARE.Request.Lab.Apps.ApplicationMashup.PaginatedSubscription
        mev Manuel Escriche made changes -
        Assignee Álvaro Arranz [ aarranz ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-18 18:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-18 18:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True
        backlogmanager Backlog Manager made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-18 03:05|UPDATED status: transition Answered| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-18 03:05|UPDATED status: transition Answered| # answers= 1, accepted answer= True
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-18 00:05|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-18 00:05|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-17 21:05|CREATED monitor | # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-17 21:05|CREATED monitor | # answers= 1, accepted answer= True
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            aarranz Álvaro Arranz
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: