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

CLI command import imports properties that should not be imported #305

Open
jajm opened this issue Dec 3, 2021 · 0 comments
Open

CLI command import imports properties that should not be imported #305

jajm opened this issue Dec 3, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@jajm
Copy link
Member

jajm commented Dec 3, 2021

Describe the bug
When importing a JSON file using the Web interface, some properties are automatically excluded. For instance for dashboards, the following properties are never imported:

  • dashboard.author;
  • dashboard.createdBy;
  • dashboard.createdOn;
  • dashboard.isPublic;
  • dashboard.isShared;
  • dashboard.owner;
  • dashboard.parentFolder;

The CLI command import doesn't do that. This may result in dashboards/reports that references users (or shared space folder) that do not exist

To Reproduce
Steps to reproduce the behavior:

  1. Create a user 'user1', give it the permission to create dashboards
  2. Log in as user1 and create a dashboard
  3. Log in as admin and export the dashboard
  4. Remove user1 and its dashboard
  5. Import the dashboard using the CLI
  6. See that the imported dashboard appear as created by user1, but user1 doesn't exist anymore

Expected behavior
The CLI import command should have the same behaviour as the Web import tool

@jajm jajm added the bug Something isn't working label Dec 3, 2021
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

No branches or pull requests

1 participant