Giter Site home page Giter Site logo

Comments (16)

mna avatar mna commented on July 22, 2024 1

@dantecatalfamo That would be a product decision (@marko-lisica ), but I think we usually clear when the immediate parent (the key that contains a slice) is present but empty, so that would mean this would clear both:

software:
  packages:
  app_store_apps:

but this would not alter any:

software:

from fleet.

marko-lisica avatar marko-lisica commented on July 22, 2024 1

@dantecatalfamo just a heads-up, you may want to verify with Marko but if we plan on adding the self_service flag to VPP apps in the near-future, it might be better for the "batch" API endpoint to immediately receive an array of objects instead of an array of strings (and have the app_store_id being a field on each object, in preparation to have the self_service flag added in the future).

@dantecatalfamo @mna I agree. We have a story to add to enable self-service for VPP apps. I think we should make this API so it receives a list of objects instead of a list of strings.

from fleet.

marko-lisica avatar marko-lisica commented on July 22, 2024 1

@marko-lisica

What's the current behavior for software packages? Do we clear software if software is empty?

Yes, but that's because currently, software is the immediate parent of the software packages. In the new structure, software.packages will be the immediate parent for software installers, and software.app_store_apps for VPP apps.

@mna That makes sense to me, so user needs to specify empty software.packages in order to remove all packages.

@noahtalerman Would it make sense to document this behavior in the docs? Is this something that's expected?

from fleet.

georgekarrv avatar georgekarrv commented on July 22, 2024

Hey team! Please add your planning poker estimate with Zenhub @dantecatalfamo @ghernandez345 @gillespi314 @mna @roperzh

from fleet.

dantecatalfamo avatar dantecatalfamo commented on July 22, 2024

@mna For apply, should an empty software clear both pacakges and appstoreapps, or should they have to have to explicitly clear software.packages and software.appstoreapps?

from fleet.

mna avatar mna commented on July 22, 2024

@dantecatalfamo just a heads-up, you may want to verify with Marko but if we plan on adding the self_service flag to VPP apps in the near-future, it might be better for the "batch" API endpoint to immediately receive an array of objects instead of an array of strings (and have the app_store_id being a field on each object, in preparation to have the self_service flag added in the future).

from fleet.

dantecatalfamo avatar dantecatalfamo commented on July 22, 2024

@mna Can we make the bulk API its own ticket? I'd like to close this one with what I have working so far, since the goal of what the bulk API should look like keeps changing

from fleet.

mna avatar mna commented on July 22, 2024

@dantecatalfamo Sure! Feel free to create a new ticket for it, linked to the VPP story.

from fleet.

dantecatalfamo avatar dantecatalfamo commented on July 22, 2024

@mna Moved here, will await further product specification before starting #20278 🙂

from fleet.

marko-lisica avatar marko-lisica commented on July 22, 2024

@mna For apply, should an empty software clear both pacakges and appstoreapps, or should they have to have to explicitly clear software.packages and software.appstoreapps?

@dantecatalfamo That would be a product decision (@marko-lisica ), but I think we usually clear when the immediate parent (the key that contains a slice) is present but empty, so that would mean this would clear both:

software:
  packages:
  app_store_apps:

but this would not alter any:

software:

@dantecatalfamo @mna What's the current behavior for software packages? Do we clear software if software is empty?

from fleet.

mna avatar mna commented on July 22, 2024

@marko-lisica

What's the current behavior for software packages? Do we clear software if software is empty?

Yes, but that's because currently, software is the immediate parent of the software packages. In the new structure, software.packages will be the immediate parent for software installers, and software.app_store_apps for VPP apps.

from fleet.

noahtalerman avatar noahtalerman commented on July 22, 2024

Do we clear software if software is empty?

@marko-lisica, @dantecatalfamo, and @mna yes.

In Fleet's best practice GitOps, all top level keys (required) behave this way (remove if empty): https://fleetdm.com/docs/using-fleet/gitops#configuration-options

from fleet.

mna avatar mna commented on July 22, 2024

@noahtalerman @marko-lisica @dantecatalfamo What you mention is correct but that's for fleetctl gitops, and it's normal since gitops expects the full content of every top-level key to always be provided (it is the whole config, not a partial one).

The convo is regarding how fleetctl apply should behave to empty those lists, because in fleetctl apply, only what is provided gets updated. As I mentioned earlier, I think typically we require the immediate parent of the list to be provided-but-empty to clear the list.

from fleet.

noahtalerman avatar noahtalerman commented on July 22, 2024

regarding how fleetctl apply should behave

@mna Ah, gotcha. Sorry I missed that.

typically we require the immediate parent of the list to be provided-but-empty to clear the list.

This behavior makes sense to me. fleetctl apply is used for one-off imports (like a PATCH): https://github.com/fleetdm/fleet/blob/main/docs/Contributing/fleetctl-apply.md

cc @marko-lisica @dantecatalfamo

from fleet.

fleet-release avatar fleet-release commented on July 22, 2024

Batch-set of apps bloom,
Like nature, Fleet adapts grace,
In the cloud city's room.

from fleet.

mna avatar mna commented on July 22, 2024

(sorry, a bad trackpad manipulation in zenhub dragged it to the closed column)

from fleet.

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.