fix: blueprint gets disabled when disabling dora for project #7146
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
The bluprint of a project would be disabled when disabling dora metric for the project
![img_v3_028o_e669aed9-1a22-4a67-9edc-836d61ecca7g](https://private-user-images.githubusercontent.com/61080/311167789-02dce7d5-15b5-4786-9809-d88ffa3c3e71.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2ODMzOTYsIm5iZiI6MTcyMDY4MzA5NiwicGF0aCI6Ii82MTA4MC8zMTExNjc3ODktMDJkY2U3ZDUtMTViNS00Nzg2LTk4MDktZDg4ZmZhM2MzZTcxLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzExVDA3MzEzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU5MDJhMmQ3YjJjMDgyYWRlMmFhODkyMDUzYjZiNGNiMWI0MWFlOGYyNWU4NjhjZTI2NTcyZDgwYTM5YmRlNTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.JCKWaLCU8Em3IWBcoxsdwJVLNYqjjp-DFTdlNOw_0N0)
Which practically paralyse the Project altogether
![image](https://private-user-images.githubusercontent.com/61080/311168716-b9c76b1e-8246-4641-a235-da17d4955e7d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2ODMzOTYsIm5iZiI6MTcyMDY4MzA5NiwicGF0aCI6Ii82MTA4MC8zMTExNjg3MTYtYjljNzZiMWUtODI0Ni00NjQxLWEyMzUtZGExN2Q0OTU1ZTdkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzExVDA3MzEzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMwODJlZDNkMTM5YWM1ZjBjYmE1MWVhZmNhYTJiY2E1NTE0NzM4ZDAxMGIxNWE0Y2ExMmQ5YmFhY2NmYjA1OGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.LOCdQXCVD4I3hQv11ZS9KINSJWrSGpL1d8I8Dt_rAIc)
According to @Startrekzky and @mintsweet , Projects and their blueprints should never been disabled, this PR fixes the bug accordingly.