atviriduomenys / spinta

Spinta is a framework to describe, extract and publish data (a DEP Framework).
MIT License
10 stars 4 forks source link

UnauthorizedKeymapSync error on push #532

Closed sirex closed 8 months ago

sirex commented 8 months ago
d | r | b | m | property | type    | ref                              | source                       | level | access
$DATASET/external        |         |                                  |                              |       |
  |   |   | Country      |         | id                               |                              | 4     |
  |   |   |   | id       | integer |                                  |                              | 4     | private
  |   |   |   | code     | string  |                                  |                              | 4     | private
  |   |   |   | name     | string  |                                  |                              | 4     | private
$DATASET                 |         |                                  |                              |       |
  | db                   | sql     |                                  | sqlite:///$BASEDIR/db.sqlite |       |
  |   |   | City         |         | id                               | cities                       | 4     |
  |   |   |   | id       | integer |                                  | id                           | 4     | open
  |   |   |   | name     | string  |                                  | name                         | 4     | open
  |   |   |   | country  | ref     | /$DATASET/external/Country[code] | country                      | 4     | private

Using manifest as above, spinta push command does not work:

spinta push $BASEDIR/manifest.csv -o test@localhost

It gives following error:

Traceback (most recent call last):
  File "spinta/cli/push.py", line 204, in push
    sync_keymap(
  File "spinta/datasets/keymaps/synchronize.py", line 30, in sync_keymap
    raise UnauthorizedKeymapSync(model)
spinta.exceptions.UnauthorizedKeymapSync: You do not have permission to sync this model's keymap.
  Context:
    component: spinta.components.Model
    manifest: default
    schema: 4
    dataset: push/sync/private/external
    model: push/sync/private/external/Country
    entity: 

Related