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

Import through the user interface #3506

Open
juliusknorr opened this issue Jan 4, 2022 · 14 comments
Open

Import through the user interface #3506

juliusknorr opened this issue Jan 4, 2022 · 14 comments

Comments

@juliusknorr
Copy link
Member

juliusknorr commented Jan 4, 2022

Since we have a pretty generic API now for importing data in deck, it would be good to have that exposed in the frontend as well.

  • Provide list of available import systems
  • Let user give required input data / upload file to import
  • Process the import through the existing API

Potentially depends on #3507

@juliusknorr juliusknorr moved this to Todo in 📝 Office team Feb 14, 2022
@juliusknorr juliusknorr moved this from 📄 To do (5-20 entries) to 🧭 Planning evaluation (don't pick) in 📝 Office team May 10, 2022
@luka-nextcloud
Copy link
Contributor

  • Are there any design or mockup?
  • How should we handle the config json file? require users to upload config json file or using UI input options?

@privatemaker
Copy link
Contributor

I figured out a hacky way to migrate data from Instance 1: Deck -> Instance 2: Tasks and explained it here. I swear about 9 months ago I figured out a way to move data from Tasks -> Deck on the same instance. Am I imagining this or did some ACL / perms change somewhere?

@petrarca-arezzo
Copy link

I'm looking for this export/import feature as well (to be able to move cards from one instance to another). Since this issue is open for quite long (and hasn't seen any update for several months) - is there anything new to report or ongoing in the background maybe?

@sunjam
Copy link
Contributor

sunjam commented Feb 7, 2024

Import can be done using occ as mentioned in #4939

@timxlaeufer
Copy link

Other plugins, like the calendar, have import options through UI aswell. In managed nextcloud instances using occ may not be possible.

@paskalito
Copy link
Contributor

Import can be done using occ as mentioned in #4939

is there any documentation on how i can actually achieve importing decks from another nextcloud instance?

@sunjam
Copy link
Contributor

sunjam commented Oct 9, 2024

Seems not. See commands listed in

I was searching for occ deck:export in the manuals and I didn't find it in any of your documentation. https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#occ-command-directory

In terminal I can get it

deck
deck:export - Export a JSON dump of user data
deck:import - Import data
deck:transfer-ownership - Change owner of deck boards

@gabmert
Copy link

gabmert commented Oct 9, 2024

@paskalito
Copy link
Contributor

@gabmert and @sunjam thanks!

Questions:

  • therefore i cannot import from the .csv that i exported via the GUI?
  • i do unfortunatiely not understand what valid values for the config would be.
    • i guess owner would be the username of the new owner.
    • uidRelation = ????
{
    "owner": "admin",
    "uidRelation": {
        "johndoe": "test-user-1"
    }
}
  • also i do not understand where i would have to put this config.

@paskalito
Copy link
Contributor

Ok i did some try and error.

  • CSV Import > not working

  • Export > working with
    occ deck:export USERNAME > my-file.json

  • import
    occ deck:import my-file.json

asks for config.

Provide a path to a file with follwoing configs:

{
    "owner": "USERNAME",
    "uidRelation": {
        "USERNAME": "USERNAME"
    }
}

terminal says it imported
in user i cannot see anything

{
    "owner": "USERNAME",
}

terminal says it imported
in user i cannot see anything

all of this is same instance..

@paskalito
Copy link
Contributor

ok i managed to export/import it.
I dicumented my findings here: https://github.com/nextcloud/deck/blob/12ae50d67b93dcfaa2440ea538a19f3937d8652d/docs/export-import.md
and created a pull request for them.

May it help other ppl to export/import decks.

@ne0YT
Copy link

ne0YT commented Oct 22, 2024

ok i managed to export/import it. I dicumented my findings here: https://github.com/nextcloud/deck/blob/12ae50d67b93dcfaa2440ea538a19f3937d8652d/docs/export-import.md and created a pull request for them.

May it help other ppl to export/import decks.

this works (verified using snap & AIO)

@thibaultmol
Copy link

thibaultmol commented Oct 25, 2024

There is https://github.com/nextcloud/deck/blob/main/docs/export-import.md but this didn't make it to https://deck.readthedocs.io so far

Wait.. why is it not in the readthedocs?

@ne0YT
Copy link

ne0YT commented Oct 25, 2024

Well I imported all the decks with one user.. now I cannot set the "owner" to another..
it's possible only by setting it using the DB the .occ command also doesnt work for this (at least not for imported ones).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🧭 Planning evaluation (don't pick)
Development

No branches or pull requests

10 participants