Skip to content

STAFF-11: Fix CSV import success notification - #519

Closed
w196n8y-hub wants to merge 1 commit into
thoth-tech:11.0.xfrom
ontrack-features-t2-2026:fix/staff-11
Closed

STAFF-11: Fix CSV import success notification#519
w196n8y-hub wants to merge 1 commit into
thoth-tech:11.0.xfrom
ontrack-features-t2-2026:fix/staff-11

Conversation

@w196n8y-hub

Copy link
Copy Markdown

Description

Fixes STAFF-11 by correcting the notification shown after importing users from CSV.

Previously, the CSV import result always triggered an error alert, even when the import completed without any errors. The updated logic now shows a success alert when num_errors === 0, while preserving the existing error alert when import errors are present.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Added Vitest coverage for both CSV import result paths:

  • Successful import with no errors shows a success alert.
  • Import containing errors shows an error alert.
  • Confirmed userService.query() is called after both result paths.

Test command:

npm run test:ci -- --include src/app/admin/states/users/users.component.spec.ts

Result:

  • 1 test file passed
  • 2 tests passed

Testing Checklist

  • Tested in latest Chrome
  • Tested in latest Safari
  • Tested in latest Firefox

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant