<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Differentiating between deletes and updates while processing user library changes in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Differentiating-between-deletes-and-updates-while-processing/m-p/163477#M5771</link>
    <description>&lt;P&gt;In the V1 APIs dropbox files didn't have an id field, we had to rely on the path as the unique identifier for a file.&lt;/P&gt;
&lt;P&gt;So, when processing changes to a user's dropbox library such as a file rename or a move we get two metadata delta entries - one for the delete and the second with the updated path for the move or the rename.&lt;/P&gt;
&lt;P&gt;With the V2 APIs introducing the concept of an "id", I was hoping this would make the process of tracking changes easier, but so far it looks like it is no different from the V1 way of processing changes.&lt;/P&gt;
&lt;P&gt;We still get two entries&amp;nbsp;back for the update when we call the list_folder/continue with the cursor. The first entry&amp;nbsp;has the ".tag" : "deleted" with the old path and the second&amp;nbsp;entry has the ".tag" : "file" with the metadata of the same file with the update path (id remains the same).&lt;/P&gt;
&lt;P&gt;The issue here is there is no way to differentiate between an update and a delete just by looking at the list_folder/continue response. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a github gist of an example response where a file name has been updated&amp;nbsp;&lt;A href="https://gist.github.com/anonymous/e9c3fcae037b2bd68b74" rel="nofollow noreferrer" target="_blank"&gt;https://gist.github.com/anonymous/e9c3fcae037b2bd68b74&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It would make things easier if we do not get a "deleted" entry for updates and only get it for actual deletes.&lt;/P&gt;
&lt;P&gt;Another option that might make things easier is - for deletes if the ".tag" : "deleted" entry had the "id" in addition to the path we can at least make the distinction between deletes and updates. In other words, the "deleted" entry for updates will only have the path, while the "deleted" entry for actual deletes will have both the path and the "id". This option is a hack, but it could make life easier for people trying to differentiate between deletes and updates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:38:02 GMT</pubDate>
    <dc:creator>Dinesh R.2</dc:creator>
    <dc:date>2019-05-29T09:38:02Z</dc:date>
    <item>
      <title>Differentiating between deletes and updates while processing user library changes</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Differentiating-between-deletes-and-updates-while-processing/m-p/163477#M5771</link>
      <description>&lt;P&gt;In the V1 APIs dropbox files didn't have an id field, we had to rely on the path as the unique identifier for a file.&lt;/P&gt;
&lt;P&gt;So, when processing changes to a user's dropbox library such as a file rename or a move we get two metadata delta entries - one for the delete and the second with the updated path for the move or the rename.&lt;/P&gt;
&lt;P&gt;With the V2 APIs introducing the concept of an "id", I was hoping this would make the process of tracking changes easier, but so far it looks like it is no different from the V1 way of processing changes.&lt;/P&gt;
&lt;P&gt;We still get two entries&amp;nbsp;back for the update when we call the list_folder/continue with the cursor. The first entry&amp;nbsp;has the ".tag" : "deleted" with the old path and the second&amp;nbsp;entry has the ".tag" : "file" with the metadata of the same file with the update path (id remains the same).&lt;/P&gt;
&lt;P&gt;The issue here is there is no way to differentiate between an update and a delete just by looking at the list_folder/continue response. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a github gist of an example response where a file name has been updated&amp;nbsp;&lt;A href="https://gist.github.com/anonymous/e9c3fcae037b2bd68b74" rel="nofollow noreferrer" target="_blank"&gt;https://gist.github.com/anonymous/e9c3fcae037b2bd68b74&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It would make things easier if we do not get a "deleted" entry for updates and only get it for actual deletes.&lt;/P&gt;
&lt;P&gt;Another option that might make things easier is - for deletes if the ".tag" : "deleted" entry had the "id" in addition to the path we can at least make the distinction between deletes and updates. In other words, the "deleted" entry for updates will only have the path, while the "deleted" entry for actual deletes will have both the path and the "id". This option is a hack, but it could make life easier for people trying to differentiate between deletes and updates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:38:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Differentiating-between-deletes-and-updates-while-processing/m-p/163477#M5771</guid>
      <dc:creator>Dinesh R.2</dc:creator>
      <dc:date>2019-05-29T09:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Differentiating between deletes and updates while processing user library changes</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Differentiating-between-deletes-and-updates-while-processing/m-p/163478#M5772</link>
      <description>&lt;P&gt;Thanks for the detailed feedback! I'm sending this along to the team.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Nov 2015 02:22:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Differentiating-between-deletes-and-updates-while-processing/m-p/163478#M5772</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-11-28T02:22:24Z</dc:date>
    </item>
  </channel>
</rss>

