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

FIWARE.Request.Tech.WebUI.POIDataProvider.update_poi__get_last_update_timestap

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:
      None

      Description

      Hello,

      i am facing an issue on updating a poi element multiple times.
      After creating the poi first time, i get the timestamp in response, so i
      can use it as "last_update" timestamp in order to update it for first time
      after insertion.
      Since update_poi does not return the new timestamp (it returns just HTTP200
      ), how can i get the last_updated timestamp after this update so that i can
      re -update the poi?

      Thank you


      Tania Petsouka
      Software Engineer
      DOTSOFT S.A. TECHNOLOGY | PROJECTS | SOLUTIONS
      Τ: +30 (2310) 500181
      F: +30 (2310) 551844
      Ε: tpetsouka@dotsoft.gr
      W: http://www.dotsoft.gr
      P: Kountouriotou 3 | Thessaloniki 546 25

      Please consider the environment. Do you really need to print this email?
      ______________________________________________________
      This email and any files transmitted with it are confidential and intended
      solely for the use of the individual or entity to whom they are addressed.
      Please notify the sender immediately by e-mail if you have received this
      e-mail by mistake and delete this e-mail from your system.
      If you are not the intended recipient you are notified that disclosing,
      copying, distributing or taking any action in reliance on the contents of
      this information is strictly prohibited.

      Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
      Please, send your messages using the new domain (Fiware-finodex-coaching@lists.fiware.org) instead of the old one.
      _______________________________________________
      Fiware-finodex-coaching mailing list
      Fiware-finodex-coaching@lists.fiware.org
      https://lists.fiware.org/listinfo/fiware-finodex-coaching
      [Created via e-mail received from: Tania Petsouka <tpetsouka@dotsoft.gr>]

        Issue Links

          Activity

          Hide
          pasquale.vitale Pasquale Vitale added a comment -

          Dear Ari,
          could you help Tania in her poblem?

          Thank you,
          regards,
          Pasquale

          Show
          pasquale.vitale Pasquale Vitale added a comment - Dear Ari, could you help Tania in her poblem? Thank you, regards, Pasquale
          Hide
          ariokkon Ari Okkonen added a comment - - edited

          Hi Tania,

          Fetch the POI info for updating using the parameter setting

          get_for_update=true
          

          in the http request.

          restQueryURL = BACKEND_ADDRESS_POI + "get_pois?poi_id=" + uuid +
              "&get_for_update=true";
          

          See:
          http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/POI_Data_Provider_-_User_and_Programmers_Guide#Updating_POI

          The reason is that in general case the particular POI might be updated by someone else between your accesses. If the update request fails, it supposedly means a so called update conflict -> you have to fetch the data - possibly just changed by someone else - again for update and send a new update request.

          Show
          ariokkon Ari Okkonen added a comment - - edited Hi Tania, Fetch the POI info for updating using the parameter setting get_for_update= true in the http request. restQueryURL = BACKEND_ADDRESS_POI + "get_pois?poi_id=" + uuid + "&get_for_update= true "; See: http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/POI_Data_Provider_-_User_and_Programmers_Guide#Updating_POI The reason is that in general case the particular POI might be updated by someone else between your accesses. If the update request fails, it supposedly means a so called update conflict -> you have to fetch the data - possibly just changed by someone else - again for update and send a new update request.
          Hide
          ichulani ilknur chulani added a comment -

          Dear Tania,

          Here is the answer from the Ge owner (Ari Okkonen)

          "Hi Tania,

          Fetch the POI info for updating using the parameter setting

          get_for_update=true
          

          in the http request.

          restQueryURL = BACKEND_ADDRESS_POI + "get_pois?poi_id=" + uuid +
              "&get_for_update=true";
          

          See:
          http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/POI_Data_Provider_-_User_and_Programmers_Guide#Updating_POI

          The reason is that in general case the particular POI might be updated by someone else between your accesses. If the update request fails, it supposedly means a so called update conflict -> you have to fetch the data - possibly just changed by someone else - again for update and send a new update request."

          Show
          ichulani ilknur chulani added a comment - Dear Tania, Here is the answer from the Ge owner (Ari Okkonen) "Hi Tania, Fetch the POI info for updating using the parameter setting get_for_update= true in the http request. restQueryURL = BACKEND_ADDRESS_POI + "get_pois?poi_id=" + uuid + "&get_for_update= true "; See: http://forge.fiware.org/plugins/mediawiki/wiki/fiware/index.php/POI_Data_Provider_-_User_and_Programmers_Guide#Updating_POI The reason is that in general case the particular POI might be updated by someone else between your accesses. If the update request fails, it supposedly means a so called update conflict -> you have to fetch the data - possibly just changed by someone else - again for update and send a new update request."
          Hide
          ichulani ilknur chulani added a comment -

          Dear Ari,

          Just a kind reminder,
          The users do not see your answers if you add them just as a comment to the ticket. You need to use the email functionality of JIRA on the top right corner of the page, then they can get your replies.

          Could you kindly reply in that way for next tickets?

          Thanks,

          ilknur

          Show
          ichulani ilknur chulani added a comment - Dear Ari, Just a kind reminder, The users do not see your answers if you add them just as a comment to the ticket. You need to use the email functionality of JIRA on the top right corner of the page, then they can get your replies. Could you kindly reply in that way for next tickets? Thanks, ilknur

            People

            • Assignee:
              ariokkon Ari Okkonen
              Reporter:
              fw.ext.user FW External User
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: