question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Right "schema access on [my_pg_instance].[my_schema]" of uploaded "CSV to Database" table does not appear in Rights list of roles (PostgreSQL)

See original GitHub issue

Expected results

When importing a CSV e.g. to PostgreSQL database (e.g. “my_pg_instance”) through menu item “CSV to Database” (path /csvtodatabaseview/form/ ); and when indicating a schema “my_schema” in field “Schema” (=>“Specify a schema …”). Then when opening menu item “List Roles” (path /roles/list/) the right “schema access on [my_pg_instance].[my_schema]” should appear.

Actual results

What actually happens is, that the newly created schema (e.g. “my_schema”) does not appear when trying to assign this schema to another role when editing a role in “List Roles” .

How to reproduce the bug

  1. Go to menu “CSV to Database”, select a PostgreSQL instance with CSV upload enabled.
  2. Click on field ‘Schema’ and enter schema “my_schema”
  3. Go to menu “List Roles”, edit a role and try to add “schema access on [my_pg_instance].[my_schema]”.
  4. “schema access on [my_pg_instance].[my_schema]” does not appear.

Issue is, that the user who just uploaded a CSV into a table can’t handle rights on this table.

Environment

  • superset version: 0.34
  • python version: 3.7
  • node.js version: N/A
  • npm version: N/A

Checklist

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven’t found one similar.

Additional context

We’re struggling with a Superset Cloud Instance which is multi-tenant, i.e. where “producers” (roles) only see and share own databases, schemas, charts and dashboards with their “consumers” (roles).

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sfkellercommented, Jan 27, 2020

Pls. pin this issue. It doesn’t make much sense to label a bug as stale.

1reaction
issue-label-bot[bot]commented, Nov 28, 2019

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.73. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to import CSV file data into a PostgreSQL table
Take a look at this short article. The solution is paraphrased here: Create your table: CREATE TABLE zip_codes (ZIP char(5), LATITUDE double precision, ......
Read more >
Importing Data from CSV in PostgreSQL
This article outlines how to use psql to import data from csv files. ... In order to copy the data, a table must...
Read more >
How to handle csv data in postgres?
1/ I was wondering how the database schema will look like for this particular operation? To manage upload file, I use a simple...
Read more >
How to Import CSVs to PostgreSQL Using PgAdmin
If you don't see it in the tree, right-click on Tables and select Refresh. It should appear. 2. Import the CSV file. Again,...
Read more >
PostgreSQL Import CSV: 3 Easy Methods - Learn - Hevo Data
Step 1: You can directly create a table from the PgAdmin GUI(Graphical User Interface). Open PgAdmin and right-click on the Tables option ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found