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

drag&drop doesn't work with project tree #1157

Open
fuminori-ido-m opened this issue Aug 5, 2022 · 0 comments
Open

drag&drop doesn't work with project tree #1157

fuminori-ido-m opened this issue Aug 5, 2022 · 0 comments

Comments

@fuminori-ido-m
Copy link

When projects are tree structure and each story points to sub-tree, drag&drop on backlog page doesn't work.

lib/backlogs_project_patch.rb adds droppable_sprints method which generates like the following data-structure (*a):

{
  project-id-A, [story-a, story-b, ...],
  project-id-B, [story-c, story-d, ...],
  ...
}

When project A is a sub-node of project B, backlog page sprint is as follows:

Sprint-X
story-a
story-b
story-c
story-d

and each story line keeps project-id the story refers, while RB.constants.project_versions which map (*a) above.
When Sprint-X belongs to project-B (parent of project-A), drag story-a --> project-A --> d RB.constants.project_versions[project-A] doesn't contain Sprint-X. This is why story-a and story-b are not enabled to drag on mouseDown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant