<?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 Re: Does &amp;quot;Apply Edits request&amp;quot; ignor layer definition query? in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/does-quot-apply-edits-request-quot-ignor-layer/m-p/1066761#M3881</link>
    <description>&lt;P&gt;Thank you, Josh, for confirming this issue with additional tests.&lt;/P&gt;&lt;P&gt;Ownership-based access would be a solution in my case&amp;nbsp;if i could make ownership refer to "last edited by" which unfortunately is not an option, but thanks for suggesting it.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jun 2021 06:15:17 GMT</pubDate>
    <dc:creator>EdgarRunnman</dc:creator>
    <dc:date>2021-06-10T06:15:17Z</dc:date>
    <item>
      <title>Does "Apply Edits request" ignor layer definition query?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/does-quot-apply-edits-request-quot-ignor-layer/m-p/1066684#M3879</link>
      <description>&lt;P&gt;I am able to edit and delete features which are otherwise not queryable due to layer definition query. Does that mean that "applyEdits" ignor layer definition rules defined by AGS feature service and has accsess to all features in featureclass?&lt;BR /&gt;I want editor to be able to edit/delete specifik features within feaature class but not entire content of feature class.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 22:20:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/does-quot-apply-edits-request-quot-ignor-layer/m-p/1066684#M3879</guid>
      <dc:creator>EdgarRunnman</dc:creator>
      <dc:date>2021-06-09T22:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Does "Apply Edits request" ignor layer definition query?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/does-quot-apply-edits-request-quot-ignor-layer/m-p/1066724#M3880</link>
      <description>&lt;P&gt;That would be &lt;EM&gt;very &lt;/EM&gt;troubling if so. I've got a few "testing" layers I keep around for things like this, so here goes:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Parent Layer: 4 fields, objectID 250 is present" style="width: 585px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15584iB3C125091F41D751/image-dimensions/585x200?v=v2" width="585" height="200" role="button" title="parentlayer.png" alt="Parent Layer: 4 fields, objectID 250 is present" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Parent Layer: 4 fields, objectID 250 is present&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="View Layer: No objectID 250, only 2 fields" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15585i56382E614606B1C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="viewlayer.png" alt="View Layer: No objectID 250, only 2 fields" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;View Layer: No objectID 250, only 2 fields&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For testing, I'm going to use ObjectID 250.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H4&gt;Query the View&lt;/H4&gt;&lt;P&gt;Attempted to query the layer simply specifying the objectID:&lt;/P&gt;&lt;PRE&gt;{"objectIdFieldName":"OBJECTID","uniqueIdField":{"name":"OBJECTID","isSystemMaintained":true},"globalIdFieldName":"","features":[]}&lt;/PRE&gt;&lt;P&gt;Second attempt, querying by field value, same response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H4&gt;Edit the View&lt;/H4&gt;&lt;P&gt;Attempted to update the feature, setting the "GRID_ID" attribute to "GOTCHA". Response:&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;  "updateResults" : [&lt;BR /&gt;    {&lt;BR /&gt;      "objectId" : 250, &lt;BR /&gt;      "uniqueId" : 250, &lt;BR /&gt;      "globalId" : null, &lt;BR /&gt;      "success" : true&lt;BR /&gt;    }&lt;BR /&gt;  ]&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;So, that's &lt;EM&gt;alarming&lt;/EM&gt;. But let's double check the parent layer.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_2-1623289117638.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15586i4F1C17FFE1FD2811/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_2-1623289117638.png" alt="jcarlson_2-1623289117638.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sure enough. Remember, that objectID wasn't present in the view layer from a query. And what about attributes that aren't in the view?&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;  "updateResults" : [&lt;BR /&gt;    {&lt;BR /&gt;      "objectId" : 251, &lt;BR /&gt;      "uniqueId" : 251, &lt;BR /&gt;      "globalId" : null, &lt;BR /&gt;      "success" : false, &lt;BR /&gt;      "error" : &lt;BR /&gt;        {&lt;BR /&gt;          "code" : 1000, &lt;BR /&gt;          "description" : "Incorrect syntax near the keyword 'WHERE'."&lt;BR /&gt;        }&lt;BR /&gt;    }&lt;BR /&gt;  ]&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;So it would appear that I can edit whole features that aren't present in the view, but not &lt;EM&gt;fields&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H4&gt;Delete the Feature&lt;/H4&gt;&lt;P&gt;I think I know how this one ends, but let's test it for the sake of being thorough.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_3-1623289276313.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/15587iA9E6588A74750247/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_3-1623289276313.png" alt="jcarlson_3-1623289276313.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There's where it use to be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Conclusion&lt;/H3&gt;&lt;P&gt;I think the answer to your question is, unfortunately, "&lt;STRONG&gt;yes&lt;/STRONG&gt;". An editable view layer can "touch" all features in the layer, even if they can't see them. Which honestly feels like a pretty glaring issue, and major kudoes to you for pointing this out, it's given me some things to consider.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Still, users can't &lt;/EM&gt;edit fields that are hidden in the view layer. That may be cold comfort when all the features, fields and all, can simply be deleted, though. Not seeing the features, there'd be no way of knowing &lt;EM&gt;what &lt;/EM&gt;you're deleting, though you could just do a blind sweep through objectIDs on a loop and nuke them all...&lt;/P&gt;&lt;P&gt;I would say that if deleting is not necessary for the view, you should absolutely disable it in the view layer settings to avoid this sort of "doomsday scenario", and you might consider other editing / editor tracking settings to prevent unintentional (or intentional) data loss.&lt;/P&gt;&lt;P&gt;You might be able to enable the settings where users can only edit "their" features, but then you'd need some way of "assigning" a feature to your users...&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 01:56:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/does-quot-apply-edits-request-quot-ignor-layer/m-p/1066724#M3880</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-06-10T01:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Does "Apply Edits request" ignor layer definition query?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/does-quot-apply-edits-request-quot-ignor-layer/m-p/1066761#M3881</link>
      <description>&lt;P&gt;Thank you, Josh, for confirming this issue with additional tests.&lt;/P&gt;&lt;P&gt;Ownership-based access would be a solution in my case&amp;nbsp;if i could make ownership refer to "last edited by" which unfortunately is not an option, but thanks for suggesting it.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 06:15:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/does-quot-apply-edits-request-quot-ignor-layer/m-p/1066761#M3881</guid>
      <dc:creator>EdgarRunnman</dc:creator>
      <dc:date>2021-06-10T06:15:17Z</dc:date>
    </item>
  </channel>
</rss>

