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

table.apply() fails in some cases #145

Open
ljpearlman opened this issue Apr 26, 2021 · 1 comment
Open

table.apply() fails in some cases #145

ljpearlman opened this issue Apr 26, 2021 · 1 comment

Comments

@ljpearlman
Copy link
Contributor

When table.apply() is called on a view that has a foreign key, it will attempt to create the existing foreign key. This will fail (because the fkey exists). It also seems to retry forever (this might be because ermrest returns 500 for those calls).

To recreate:

  1. Create a view
  2. Add a foreign key to the view
  3. Do something like this:
table = model.table(schema_name, table_name)
column = table.column_definitions(column_name)
column.acls["select"] = ["*"]
table.apply()

and then look at the server error logs. I'm guessing this will also fail for any changes to a table, but I haven't tried anything other than changing a column acl.

@karlcz
Copy link
Contributor

karlcz commented Apr 26, 2021 via email

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

No branches or pull requests

2 participants