nextcloud / nextcloud/deck

Importing json files

Open
#6,897 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug feature: export/import need to reproduce needs info
Dominant language
JavaScript
Stars
1.4k
Forks
354
Avg merge
1d 10h
Merged PRs (30d)
43

Description

Is it actually possible to import a json file that has been exported from an older version of Deck?

I've managed to export json from the old version using occ, but cannot get the new version to import it. I just get


[nextcloud1@ns8 ~]$ occ deck:import --system=DeckJson  /home/nextcloud1/data.json 
Starting import...

In BoardImportCommandService.php line 138:
                                                  
  Could not find file /home/nextcloud1/data.json  
                                                  

deck:import [--system SYSTEM] [--config CONFIG] [--data DATA] [--] [<file>]

[nextcloud1@ns8 ~]$ ll /home/nextcloud1/
total 212
-rwxrwxrwx. 1 nextcloud1 nextcloud1 215748 Apr  9 17:13 data.json
[nextcloud1@ns8 ~]$ 

Any help appreciated. tried a load of things with no success.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the deck:import --system=DeckJson command and inspect BoardImportCommandService.php around line 138, using the reported file path and command output to reproduce the failure. Confirm whether JSON exported from the older Deck version is accepted by the current importer and document or verify a working import path.

Written by the indexing model from the issue text.

Assessment

Tech stack
json
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.