Coder Social home page Coder Social logo

Comments (8)

doublebyte1 avatar doublebyte1 commented on August 17, 2024 1

The admin is being turned on conditionally, depending on the pygeoapi config. However, the import of jsonpatch happens regardless.

@ricardogsilva indeed that does not seem correct.

I am in favour of the second option (admin as optional). I can think of use cases where people don't need an admin UI and just want a simple, lightweight, API.

from pygeoapi.

krishnaglodha avatar krishnaglodha commented on August 17, 2024

Should we mention it on the admin page that to run is successfully, user should also execute pip install -r requirements-admin.txt

from pygeoapi.

doublebyte1 avatar doublebyte1 commented on August 17, 2024

@krishnaglodha well spotted! 👍🏽 Do you want to do a PR to add that line to the docs?

pip3 install -r requirements.txt

+ pip3 install -r requirements-admin.txt

from pygeoapi.

krishnaglodha avatar krishnaglodha commented on August 17, 2024

from pygeoapi.

krishnaglodha avatar krishnaglodha commented on August 17, 2024

I propose to have this on the doc page of admin, because we are not sure that everyone will be using admin function, thus, let people know about this only on admin doc page ?

from pygeoapi.

ricardogsilva avatar ricardogsilva commented on August 17, 2024

@krishnaglodha

If that would be the case, then the packages specified on requirements-admin.txt ought to be optional, which does not seem to be the case currently, which I guess is a bug?

The admin is being turned on conditionally, depending on the pygeoapi config. However, the import of jsonpatch happens regardless.

from pygeoapi.

ricardogsilva avatar ricardogsilva commented on August 17, 2024

I guess a decision needs to be taken on whether:

  • The admin is part of the default pygeoapi experience, in which case I guess there is no need for a separate requirements-admin.txt file and the admin dependencies become regular pygeoapi dependencies - no need to modify the installation docs in this case.

  • The admin is indeed optional, in which case the docs need to be adjusted and the code needs to include some guards that ensure the admin dependencies are not imported unconditionally

@tomkralidis @webb-ben , what would be your thoughts on this?

from pygeoapi.

tomkralidis avatar tomkralidis commented on August 17, 2024

PR in #1485

from pygeoapi.

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.