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

UnauthorizedKeymapSync error on push #532

Closed
sirex opened this issue Oct 26, 2023 · 0 comments · Fixed by #533
Closed

UnauthorizedKeymapSync error on push #532

sirex opened this issue Oct 26, 2023 · 0 comments · Fixed by #533
Labels
bug Something isn't working

Comments

@sirex
Copy link
Collaborator

sirex commented Oct 26, 2023

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

@sirex sirex added the bug Something isn't working label Oct 26, 2023
@adp-atea adp-atea linked a pull request Oct 26, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant