Giter Site home page Giter Site logo

Comments (4)

kphaneuf avatar kphaneuf commented on June 12, 2024 1

FLTest.csv

Sure, here you go.

from arcgis-python-api.

nanaeaubry avatar nanaeaubry commented on June 12, 2024

Extra comment:

params = {"capabilities": "Query,Editing,Create,Update,Delete",
    "layerOverridesEnabled": True,}

updating the definition with this works but removing and having just Query is not working. Normally this was as expected but it seems online no longer blocks the capability even though we do.

Need to mess with it online

from arcgis-python-api.

nanaeaubry avatar nanaeaubry commented on June 12, 2024

@kphaneuf Can you post the small csv we had used?

from arcgis-python-api.

nanaeaubry avatar nanaeaubry commented on June 12, 2024

@kphaneuf

Ok I was able to test this better and found a few things. First of all you can just pass {"locationType" : None} to the publish method and it will create the table. So no need for the analyze step.

Second, the front end seems to have a bug. When we turn off editing capabilities, it shows that you can still overwrite and when you overwrite you get a little green popup at the bottom of the screen saying overwrite was successful. But this is wrong! If we look at the network traffic we see that success was actually False:

image

So the necessity to set the capabilities to "Query, Editing,...." as we had seen is actually needed. I will report this bug to online since the ability to overwrite is not available without them.

So just to conclude:
the workflow we found where to define the capabilities, do an update_defintion with the FeatureLayerCollectionManager, overwrite the service, and then set back the capabilities to just "Query" is the best workflow and the correct way to do it.

Hope all of this helps, Ill close the issue since it is resolved and alert online about it but feel free to comment more if needed. Thanks!

from arcgis-python-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.