Giter Club home page Giter Club logo

dcfg's People

Contributors

watermint avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

dcfg's Issues

Panic on sync

map not initialised.

panic: assignment to entry in nil map

goroutine 1 [running]:
panic(0x887f00, 0xc0823809f0)
        /usr/local/go/src/runtime/panic.go:481 +0x3f4
github.com/watermint/dcfg/integration/directory.(*GoogleDirectory).loadCustomerMembers(0xc0823609a0,
 0xc0823801c0, 0x9, 0x0)
        /go/src/github.com/watermint/dcfg/integration/directory/google.go:145 +0x6c8
github.com/watermint/dcfg/integration/directory.(*GoogleDirectory).getFlattenMember(0xc0823609a0, 0x
c0820fc990, 0xc0823b7ac0, 0x14, 0x0, 0xc0823abf50)
        /go/src/github.com/watermint/dcfg/integration/directory/google.go:189 +0xae8
github.com/watermint/dcfg/integration/directory.(*GoogleDirectory).createGroupFromRaw(0xc0823609a0,
0xc08214c5b0, 0xc082100148, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        /go/src/github.com/watermint/dcfg/integration/directory/google.go:41 +0x11b
github.com/watermint/dcfg/integration/directory.(*GoogleDirectory).Group(0xc0823609a0, 0xc0823ae4a8,
 0x14, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        /go/src/github.com/watermint/dcfg/integration/directory/google.go:35 +0x44c
github.com/watermint/dcfg/sync/groupsync.(*GroupSync).Sync(0xc08208bc88, 0xc0823ae4a8, 0x14)
        /go/src/github.com/watermint/dcfg/sync/groupsync/groupsync.go:96 +0x172
github.com/watermint/dcfg/sync/groupsync.(*GroupSync).SyncFromList(0xc08208bc88, 0x0, 0x0, 0xc082006
200, 0x2f, 0xc082008220, 0x9, 0x1, 0x0, 0x0, ...)
        /go/src/github.com/watermint/dcfg/sync/groupsync/groupsync.go:119 +0x30d
github.com/watermint/dcfg/cli/dispatch.DispatchSync(0x0, 0x0, 0xc082006200, 0x2f, 0xc082008220, 0x9,
 0x1, 0x0, 0x0, 0xc082002660, ...)
        /go/src/github.com/watermint/dcfg/cli/dispatch/dispatch.go:41 +0x5cc
github.com/watermint/dcfg/cli/dispatch.Dispatch(0x0, 0x0, 0xc082006200, 0x2f, 0xc082008220, 0x9, 0x1
, 0x0, 0x0, 0xc082002660, ...)
        /go/src/github.com/watermint/dcfg/cli/dispatch/dispatch.go:51 +0xab
main.main()
        /go/src/github.com/watermint/dcfg/dcfg.go:34 +0x207

Load Google Directory without specifying domain

Google Directory API requires customer or domain for loading data. Regarding docs of Google, "my_customer" is default name for current instance. Use this default for loading Google data.

Lazy load for Google Group

There are no reason to load entire Google Group before start sync. This may cause larger traffic to Google Directory API. Require refactoring for lazy loading of specific Google Group.

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.