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

Make the BsRequestAction target nullification simpler #17347

Conversation

danidoni
Copy link
Contributor

@danidoni danidoni commented Feb 6, 2025

We use left joins to make the script simpler and hopefully faster.

This statement should tell us if the data migration is working, as it should decrease as it runs:

BsRequestAction.joins('left join projects on bs_request_actions.target_project_id = projects.id where bs_request_actions.target_project_id IS NOT NULL AND projects.id IS NULL ').count

@github-actions github-actions bot added the Frontend Things related to the OBS RoR app label Feb 6, 2025
@danidoni danidoni force-pushed the make-the-bs-request-actions-target-nullification-simpler branch 2 times, most recently from b973320 to 2c3f536 Compare February 6, 2025 14:57
@danidoni danidoni marked this pull request as ready for review February 6, 2025 14:58
@danidoni danidoni force-pushed the make-the-bs-request-actions-target-nullification-simpler branch from 2c3f536 to b8a1de0 Compare February 6, 2025 15:18
Copy link
Member

@eduardoj eduardoj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Just a minor suggestion.

@danidoni danidoni force-pushed the make-the-bs-request-actions-target-nullification-simpler branch from b8a1de0 to b56cc27 Compare February 6, 2025 20:10
We use left joins to make the script simpler and hopefully faster.
@danidoni danidoni force-pushed the make-the-bs-request-actions-target-nullification-simpler branch from b56cc27 to 91ea29b Compare February 6, 2025 20:31
@danidoni danidoni merged commit 49c6411 into openSUSE:master Feb 6, 2025
22 checks passed
@danidoni danidoni deleted the make-the-bs-request-actions-target-nullification-simpler branch February 7, 2025 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frontend Things related to the OBS RoR app
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants