Skip to content

[JIM-62] Jira Migrator shows progress during import of projects - #24453

Draft
ba1ash wants to merge 42 commits into
devfrom
feature/jim-62-jira-migrator-shows-progress-during-import-of-projects
Draft

[JIM-62] Jira Migrator shows progress during import of projects#24453
ba1ash wants to merge 42 commits into
devfrom
feature/jim-62-jira-migrator-shows-progress-during-import-of-projects

Conversation

@ba1ash

@ba1ash ba1ash commented Jul 27, 2026

Copy link
Copy Markdown
Member

@ba1ash ba1ash self-assigned this Jul 27, 2026
Comment thread app/models/import/jira_import_state_machine.rb Fixed
Comment thread app/workers/import/jira_create_custom_fields_job.rb Fixed
Comment thread app/workers/import/jira_fetch_project_issues_job.rb Fixed
@opf opf deleted a comment from github-actions Bot Jul 27, 2026
@as-op
as-op marked this pull request as draft July 27, 2026 15:19
https://community.openproject.org/wp/JIM-62

- Do not cache state_machine in JiraImport
  Causes problems on "#reload". "#current_state" returns old value.
- Allow :reverting from :import_error state.
- discard :queued batch jobs after transition to :import_aborting state.
- Introduce PorgressableJob class.
- Fix progress calculation.
  Use .where(jira_import_id:). So, only relevant to this particular jira_import
  record are used in progress calculation
- Remove unused jobs.
Comment thread app/workers/import/jira_create_users_job.rb Fixed
as-op added 14 commits July 28, 2026 14:15
…uring-import-of-projects

# Conflicts:
#	app/components/admin/import/jira/import_runs/wizard_step_confirm_import_component.html.erb
#	app/components/admin/import/jira/import_runs/wizard_step_fetch_data_component.html.erb
#	app/components/admin/import/jira/import_runs/wizard_step_import_scope_component.html.erb
#	app/components/admin/import/jira/import_runs/wizard_step_review_component.html.erb
#	app/components/admin/import/jira/import_runs/wizard_step_review_component.rb
#	app/controllers/admin/import/jira/import_runs_controller.rb
#	app/views/admin/import/jira/import_runs/show.html.erb
@opf opf deleted a comment from github-actions Bot Jul 30, 2026
@github-actions

Copy link
Copy Markdown

Warning

Flaky specs

  • rspec ./spec/features/work_packages/share/multi_invite_spec.rb[1:1:2:1]
🤖 Ask Copilot to investigate

Copy the prompt below into a new comment on this PR to delegate the investigation to GitHub Copilot. It will look into the flakiness and open a separate pull request with you as reviewer.

@copilot The following spec(s) are flaky in CI (first seen on PR #24453, linked for reference only):

- `rspec ./spec/features/work_packages/share/multi_invite_spec.rb[1:1:2:1]`

Treat this as a standalone task, unrelated to PR #24453. Create a new branch from origin/dev and open a new pull request targeting dev — do not stack it on PR #24453 or reuse that branch.

Follow the playbook in docs/development/testing/handling-flaky-tests/README.md to find the root cause and fix the underlying race — do not skip, delete, or weaken the spec to make it pass; disabling is a last resort per the playbook, and only with a bug ticket. Verify the fix by running the spec(s) repeatedly (e.g. `script/bulk_run_rspec --run-count 10`).

If you cannot reproduce the flake or are not confident in a fix after reasonable investigation, do not fabricate a change or skip the spec to force CI green. Instead, leave the pull request in draft and document what you tried, the suspected cause, and any leads in its description, then assign @ba1ash to take over.

Once the fix is verified, title the PR after the spec(s) it fixes, and use the PR description to explain the root cause, how the change resolves it, and the before/after results. Label the PR `flaky-spec`, assign @ba1ash, and request a review from @ba1ash.
On every commit, set @ba1ash as the sole co-author with a `Co-authored-by:` trailer (use their GitHub no-reply email so it links to their account), so it is traceable who dispatched the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants