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

Victor/eng 2696 migrate current diagram to view #4858

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

vbustamante
Copy link
Contributor

Let's try this again without a possible loop in the changeset listing

@github-actions github-actions bot added A-sdf Area: Primary backend API service [Rust] A-dal A-dal-test labels Oct 23, 2024
Comment on lines +88 to +92
info!("Migrating {} snapshot(s)", open_change_sets.len(),);

loop {
let change_sets_to_migrate = change_set_graph.independent_ids();
if change_sets_to_migrate.is_empty() {
break;
for change_set in open_change_sets {
let mut change_set = ChangeSet::find(ctx, change_set.id)
.await?
.ok_or(ChangeSetError::ChangeSetNotFound(change_set.id))?;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should prevent any infinite loops

@vbustamante vbustamante force-pushed the victor/eng-2696-migrate-current-diagram-to-view branch 2 times, most recently from bee6c1d to 0e7af73 Compare October 23, 2024 15:37
@vbustamante
Copy link
Contributor Author

/try

@vbustamante vbustamante force-pushed the victor/eng-2696-migrate-current-diagram-to-view branch from 0e7af73 to 68caa95 Compare October 23, 2024 15:46
@vbustamante
Copy link
Contributor Author

/try

@vbustamante vbustamante enabled auto-merge October 23, 2024 15:59
@vbustamante vbustamante added this pull request to the merge queue Oct 23, 2024
Merged via the queue into main with commit 91a4a76 Oct 23, 2024
25 checks passed
@vbustamante vbustamante deleted the victor/eng-2696-migrate-current-diagram-to-view branch October 23, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-dal A-dal-test A-sdf Area: Primary backend API service [Rust]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants