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

FIWARE.Question.Tech.Why do attributes type change from float to number?.

    Details

      Description

      Created question in FIWARE Q/A platform on 16-01-2017 at 18:01
      Please, ANSWER this question AT http://stackoverflow.com/questions/41681573/why-do-attributes-type-change-from-float-to-number

      Question:
      Why do attributes type change from float to number?

      Description:
      I've noticed that when I register entities with some 'float' attributes in Orion, after some updates the type is changed to 'number' instead of 'float'.

      For example:

      { "id":"my_entity",
      "type":"entity_type",
      "attr1":{
      "type":"float",
      "value":"0.54",
      "metadata":{}},
      "attr2":{
      "type":"Number",
      "value":44.3,
      "metadata":{}}}]

      In this case, when my_entity was registered, both types of attributes were 'float'. When some update was made in the value of the attr2, its type was changed to 'Number'. Is this the correct behavior?

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        16h 35m 1 Fermín Galán 17/Jan/17 1:40 PM
        In Progress In Progress Answered Answered
        2s 1 Fermín Galán 17/Jan/17 1:40 PM
        Answered Answered Closed Closed
        1s 1 Fermín Galán 17/Jan/17 1:40 PM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        fla Fernando Lopez made changes -
        HD-Enabler Orion [ 10875 ]
        Description
        Created question in FIWARE Q/A platform on 16-01-2017 at 18:01
        {color: red}Please, ANSWER this question AT{color} http://stackoverflow.com/questions/41681573/why-do-attributes-type-change-from-float-to-number


        +Question:+
        Why do attributes type change from float to number?

        +Description:+
        I've noticed that when I register entities with some 'float' attributes in Orion, after some updates the type is changed to 'number' instead of 'float'.

        For example:

        { "id":"my_entity",
          "type":"entity_type",
          "attr1":{
              "type":"float",
              "value":"0.54",
              "metadata":{}},
          "attr2":{
              "type":"Number",
              "value":44.3,
              "metadata":{}}}]


        In this case, when my_entity was registered, both types of attributes were 'float'. When some update was made in the value of the attr2, its type was changed to 'Number'. Is this the correct behavior?
        Created question in FIWARE Q/A platform on 16-01-2017 at 18:01
        {color: red}Please, ANSWER this question AT{color} http://stackoverflow.com/questions/41681573/why-do-attributes-type-change-from-float-to-number


        +Question:+
        Why do attributes type change from float to number?

        +Description:+
        I've noticed that when I register entities with some 'float' attributes in Orion, after some updates the type is changed to 'number' instead of 'float'.

        For example:

        { "id":"my_entity",
          "type":"entity_type",
          "attr1":{
              "type":"float",
              "value":"0.54",
              "metadata":{}},
          "attr2":{
              "type":"Number",
              "value":44.3,
              "metadata":{}}}]


        In this case, when my_entity was registered, both types of attributes were 'float'. When some update was made in the value of the attr2, its type was changed to 'Number'. Is this the correct behavior?
        HD-Chapter Data [ 10838 ]
        backlogmanager Backlog Manager made changes -
        Summary [fiware-stackoverflow] Why do attributes type change from float to number? FIWARE.Question.Tech.Why do attributes type change from float to number?.
        HD-Enabler Unknown [ 10910 ]
        HD-Chapter Unknown [ 10845 ]
        HD-Node Unknown [ 10852 ]
        fermin Fermín Galán made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        fermin Fermín Galán made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        fermin Fermín Galán made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        fla Fernando Lopez made changes -
        Assignee Fermín Galán [ fermin ]
        backlogmanager Backlog Manager made changes -
        HD-Enabler Unknown [ 10910 ]
        HD-Chapter Unknown [ 10845 ]
        HD-Node Unknown [ 10852 ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-01-16 21:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-01-16 21:05|CREATED monitor | # answers= 0, accepted answer= False
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            fermin Fermín Galán
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: