Guest User

vikunja_data_import_error_from_vikunja_export_v_latest

a guest
Jan 24th, 2025
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.78 KB | None | 0 0
  1. 2025-01-25T02:56:27.499488575Z: INFO ▶ [DATABASE] 529 [SQL] SELECT `id`, `title`, `description`, `identifier`, `hex_color`, `owner_id`, `parent_project_id`, `is_archived`, `background_file_id`, `background_blur_hash`, `position`, `created`, `updated` FROM `projects` WHERE id=? ORDER BY position LIMIT 1 [6] - 710.041µs
  2. 2025-01-25T02:56:27.50155474Z: INFO ▶ [DATABASE] 52a [SQL]
  3. WITH RECURSIVE
  4. project_hierarchy AS (
  5. -- Base case: Start with the specified projects
  6. SELECT id,
  7. parent_project_id,
  8. 0 AS level,
  9. id AS original_project_id
  10. FROM projects
  11. WHERE id IN (6)
  12.  
  13. UNION ALL
  14.  
  15. -- Recursive case: Traverse up the hierarchy
  16. SELECT p.id,
  17. p.parent_project_id,
  18. ph.level + 1,
  19. ph.original_project_id
  20. FROM projects p
  21. INNER JOIN project_hierarchy ph ON p.id = ph.parent_project_id),
  22.  
  23. project_permissions AS (SELECT ph.id,
  24. ph.original_project_id,
  25. CASE
  26. WHEN p.owner_id = ? THEN 2
  27. WHEN COALESCE(ul.right, 0) > COALESCE(tl.right, 0) THEN ul.right
  28. ELSE COALESCE(tl.right, 0)
  29. END AS project_right,
  30. CASE
  31. WHEN p.owner_id = ? THEN 1 -- Direct project ownership
  32. ELSE ph.level + 1 -- Derived from parent project
  33. END AS priority
  34. FROM project_hierarchy ph
  35. LEFT JOIN projects p
  36. ON ph.id = p.id
  37. LEFT JOIN users_projects ul ON ul.project_id = ph.id AND ul.user_id = ?
  38. LEFT JOIN team_projects tl ON tl.project_id = ph.id
  39. LEFT JOIN team_members tm ON tm.team_id = tl.team_id AND tm.user_id = ?
  40. WHERE p.owner_id = ? OR ul.user_id = ? OR tm.user_id = ?)
  41.  
  42. SELECT ph.original_project_id AS id,
  43. COALESCE(MAX(pp.project_right), -1) AS max_right
  44. FROM project_hierarchy ph
  45. LEFT JOIN (SELECT *,
  46. ROW_NUMBER() OVER (PARTITION BY original_project_id ORDER BY priority) AS rn
  47. FROM project_permissions) pp ON ph.id = pp.id AND pp.rn = 1
  48. GROUP BY ph.original_project_id [1 1 1 1 1 1 1] - 1.749291ms
  49. 2025-01-25T02:56:27.503554606Z: INFO ▶ [DATABASE] 52b [SQL] SELECT DISTINCT `tasks`.*, `task_positions`.`position` FROM `tasks` LEFT JOIN `task_positions` ON task_positions.task_id = tasks.id AND task_positions.project_view_id = ? WHERE (project_id IN (?)) ORDER BY task_positions.`position` IS NULL, task_positions.`position` asc, tasks.`id` IS NULL, tasks.`id` asc [18 6] - 1.7634ms
  50. 2025-01-25T02:56:27.504329076Z: INFO ▶ [DATABASE] 52c [SQL] SELECT count(DISTINCT tasks.id) FROM `tasks` WHERE (project_id IN (?)) [6] - 579.898µs
  51. 2025-01-25T02:56:27.505055896Z: INFO ▶ [DATABASE] 52e [SQL] SELECT `id`, `title`, `project_id`, `view_kind`, `filter`, `position`, `bucket_configuration_mode`, `bucket_configuration`, `default_bucket_id`, `done_bucket_id`, `updated`, `created` FROM `project_views` WHERE (id = ? AND project_id = ?) LIMIT 1 [0 6] - 621.428µs
  52. 2025-01-25T02:56:27Z: ERROR ▶ 52f [creating structure] Error while creating structure: Project view does not exist [ProjectViewID: 0]
  53. 2025-01-25T02:56:27Z: ERROR ▶ 530 could not insert data: Project view does not exist [ProjectViewID: 0]
  54. 2025-01-25T02:56:27Z: WEB ▶ 172.28.0.1 PUT 500 /api/v1/migration/vikunja-file/migrate 1.562249637s - Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0
Advertisement
Add Comment
Please, Sign In to add comment