-
Notifications
You must be signed in to change notification settings - Fork 496
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
[Feature][BE] After users remove a board from a blueprint or connection, the data relates to the board will be deleted #4762
Comments
This sounds conceptually similar to deleting a blueprint. We essentially need to know what data belongs to a given scope which is just like the problem with blueprints: what data belongs to a given blueprint? I think both of these problems have to be solved in a similar way |
Based on today's discussion, it seems @klesh wants the approach to be simple. If a user is facing the problem described above, deleting board-1 will delete all records associated with board-1, which might include issue-2 and 3, depending on issue-2 and 3 are "tagged" with which data scope, board-1 or board-2. If issue-2 and 3 are "tagged" with board-1, the deletion will affect the data integrity of board-2, the user has to rerun bp to collect all board -2 issues. Correct me if I'm wrong. Cc. @keon94 @hezyin @klesh @yumengwang03 |
Yes, that is correct. |
But wouldn't this lead to a full data collection for those blueprints? Maybe it'd be better to not allow deletion if a scope has multiple blueprints using it |
Do you mean that scope that gets deleted is still being included in some bp?
|
Search before asking
Use case
As a scrum manager, I re-organize Jira boards at times. When I first started using DevLake, I collected data from Jira board-1, then I created a new board in Jira called board-2, added board-2, and removed board one from the corresponding DevLake blueprint.
I was expecting that DevLake would delete the board-1 data, but it did not happen.
Description
I want DevLake to support the data deletion of a removed data scope after editing a blueprint, a connection, or any operation that might delete the data scope.
For example, if I collected b1, and then edited the blueprint to ONLY collect b2.
b1 in table.boards, i1,i4 in table.issues, and all issue_changelogs, issue_labels, issue_worklogs related to i1 and i4 will be deleted.
i2 and i3 in b1 won't be affected as they also belong to other boards. See the pic below, the shadow part should be kept.
To Do
Related issues
Obsolete PR:
#4906
Child PRs:
#5153
#5155
Child Issue:
#5277
Are you willing to submit a PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: