Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for bulk creation of objects with multi-value attributes #123

Open
jathanism opened this issue Dec 12, 2016 · 1 comment
Open

Comments

@jathanism
Copy link
Contributor

It appears that we may have completely overlooked the ability to create objects in bulk that have multi-value attributes (e.g. where the attribute on the server side has multi=True).

We'll need to come up with a way to represent these. It might be better to reconsider the entire format of the bulk file to something more descriptive than the "colon-separated" format we have now.

@jathanism
Copy link
Contributor Author

Maybe change this thing to YAML? For example:

- hostname: foo-bar1
  attributes:
    foo: bar
    access_methods: [m1, m2, m3]
- hostname: foo-bar2
  attributes:
    foo: baz
    access_methods: [m4, m5, m6]

Which parses into:

[
    {
        "attributes": {
            "access_methods": [
                "m1",
                "m2",
                "m3"
            ],
            "foo": "bar"
        },
        "hostname": "foo-bar1"
    },
    {
        "attributes": {
            "access_methods": [
                "m4",
                "m5",
                "m6"
            ],
            "foo": "baz"
        },
        "hostname": "foo-bar2"
    }
]

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

No branches or pull requests

1 participant