GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Enhancement] make org_settings.device_defaults able to push to existing devices · Issue #217 · code42/py42

[Enhancement] make org_settings.device_defaults able to push to existing devices #217

New issue
Copy link
New issue
Copy link
Open
Open
[Enhancement] make org_settings.device_defaults able to push to existing devices#217
Copy link
Labels
enhancementNew feature or request

Description

@ceciliastevens
ceciliastevens
opened on Oct 6, 2020
Issue body actions

Summary

Currently if you update the device_defaults in an org_settings object and then commit your changes using sdk.orgs.update_settings(), the changes you make will only apply to newly deployed devices, and will not be pushed to existing devices.

We could add the ability to push changes to existing devices

Proposed API

sdk.orgs.update_settings(org_settings, publish=True)

Intended Use Case

  • Updating a setting for all devices across an org

Activity

  1. ceciliastevens
    added
    enhancementNew feature or request
    on Oct 6, 2020
  2. ceciliastevens commented on Oct 7, 2020

    @ceciliastevens
    ceciliastevens
    on Oct 7, 2020
    ContributorAuthor
    More actions

    Doing this actually is tricky. From my experimentation we seem to need to do a few things:

    1. add "@publish" : True to the settings dict within the appropriate setting (although the place where this needs to go is often non-obvious
    2. set deviceDefaults.publishMode to True (if this is not set, we ignore the @publish, so @publish can be set even if we don't intend to actually publish changes)

    We may also want to do some other things to ensure that the change is done properly:

    1. Update the configDateMs to the current date (which would prevent an overwrite if someone makes a similarly-timed change in the client UI at the same time)
    2. set org_settings["customConfig"] = True (this should probably be set already for most orgs, but if it is False I am not certain if the changes will actually be applied)
  3. DiscoRiver commented on Oct 9, 2020

    @DiscoRiver
    DiscoRiver
    on Oct 9, 2020
    Contributor
    More actions

    I'll have a look into this on Monday. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.