Skip to content

Add preprocess milestone check when importing issues via csv

Firdaws Farukh requested to merge preprocess-milestone-for-csv-import into master

What does this MR do and why?

Following !113474 (merged) this MR also adds a line in the notification email when there are missing milestones in the csv file being imported.

Closes #396439 (closed)

Screenshots or screen recordings

Sample email response:

Screenshot_2023-04-12_at_14.49.05

How to set up and validate locally

  1. Have a csv of issues with milestone
  2. Go to the issues list of a project
  3. Import CSV to the issues list
  4. Check the letter_opener for incoming mail. 👉 http://gdk.test:/rails/letter_opener.
  • You can see the text versions by clicking the plaintext link in the top right hand corner of each mail.

The email should have an error message if the milestones do not exist but it should not have any error if the milestone exists in the project or group.

Other testing options can simulate !113474 (merged)

Note: Assigning the milestone to the issue during import will be covered in !112204 (merged)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Grzegorz Bizon

Merge request reports