Giter Club home page Giter Club logo

Comments (6)

spigad avatar spigad commented on July 28, 2024

spiga: Please Review

from crabserver.

drsm79 avatar drsm79 commented on July 28, 2024

metson: * I think if the config doesn't have an agentDN it would be better to die in the init than set it to None (probably the same for SandBoxCache_* variables, too)

  • args=[''] is probably not necessary in the addMethod calls (looks like a typo - you've changed another addMethod call to args=[] in the patch)
  • what difference is there between getServerInfo and getServerStatus? I'd see these as the same thing
  • naming of variables is quite inconsistent - e.g in the getServerInfo:
    {{{
    result['AgentDN'] = self.agentDN
    result['my_proxy'] = 'myproxy.cern.ch'
    result['sandboxCacheType'] = 'gridFtp'
    # the following will change as soon as we follow up on #1305
    # at the moment is gridFTP specific.
    result['SandBoxCacheEndpoint'] = self.SandBoxCache_endpoint
    result['port'] = self.SandBoxCache_port
    result['basepath'] = self.SandBoxCache_basepath
    }}}
    could that become:
    {{{
    result['server_dn'] = self.agentDN
    result['my_proxy'] = 'myproxy.cern.ch'
    result['sandbox_type'] = 'gridFtp'
    # the following will change as soon as we follow up on #1305
    # at the moment is gridFTP specific.
    result['sandbox_endpoint'] = self.SandBoxCache_endpoint
    result['sandbox_port'] = self.SandBoxCache_port
    result['sandbox_basepath'] = self.SandBoxCache_basepath
    }}}
    or even better:
    {{{
    result['server_dn'] = self.agentDN
    result['my_proxy'] = 'myproxy.cern.ch'
    result['sandbox'] = {}
    result['sandbox']['type'] = 'gridFtp'
    # the following will change as soon as we follow up on #1305
    # at the moment is gridFTP specific.
    result['sandbox']['endpoint'] = self.SandBoxCache_endpoint
    result['sandbox']['port'] = self.SandBoxCache_port
    result['sandbox']['basepath'] = self.SandBoxCache_basepath
    }}}
  • there are no unit tests for this...
  • there's some trailing whitespace which I'll clean up

If you like I can make those changes and submit a patch to this ticket while you work on the unit tests?

from crabserver.

spigad avatar spigad commented on July 28, 2024

spiga: as you wish.
I'm realizing that I didn't submitted the last version.

info and status were supposed to be different.. info should return informations for the server operations.. status should give the status of the agent.. but since we are going through the rest for reqmgr... this should be not more needed.. probably we should discuss this based on the final model we'll propose/deploy

from crabserver.

spigad avatar spigad commented on July 28, 2024

spiga: Please Review

from crabserver.

drsm79 avatar drsm79 commented on July 28, 2024

metson: Unit tests are being tracked on #1329

from crabserver.

drsm79 avatar drsm79 commented on July 28, 2024

metson: closed with c62ee1b

from crabserver.

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.