Giter Site home page Giter Site logo

Comments (3)

arunk-s avatar arunk-s commented on September 4, 2024

The link you mentioned in the description is obsolete now ;), maybe you meant this one https://github.com/mozilla/mig/blob/master/client/mig/main.go .
From what I understand is that we need to add two flags: --target-foundanything and --target-foundnothing and they will be evaluated by EvaluateAgentTarget. So does the flags --target-found* hold "Action ID" as their values, such that we are able to build this query

id IN ( \
SELECT agentid FROM commands, json_array_elements(commands.results) AS r \
WHERE commands.actionid = %d AND r#>>'{foundanything}' = 'true')" )

from the input action value and pass it for evaluation ?
Also what preference is given to -t flag in case of use of both -t and --target-found* flags, i.e. should the agents that passes the -t flag should be filtered further on the basis of the -target-found* flags or vice versa ?

from mig.

jvehent avatar jvehent commented on September 4, 2024

Thanks for picking up this issue :)

maybe you meant this one https://github.com/mozilla/mig/blob/master/client/mig/main.go .

Yes

does the flags --target-found* hold "Action ID" as their values

Yes

what preference is given to -t flag in case of use of both -t and --target-found* flags

For now, execution should fail and an error should be displayed to the user.
In the future, we could considered merging the two statements together.

from mig.

arunk-s avatar arunk-s commented on September 4, 2024

@jvehent PR created and the updated changes are at arunk-s@c94ef41.

from mig.

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.