Skip to content

Delete blocker does not show up initially #2231

Open
@chanulee1

Description

@chanulee1

Describe the bug
When trying to delete an agent record without the initial warning that there is a delete blocker in place, the loading screen for checking for delete blockers runs for a couple of minutes before the delete blocker warning appears. Alternatively, when the delete button is not clicked, an error message appears after a few minutes.

Possible relation to #1748?

To Reproduce
Steps to reproduce the behavior:

  1. Go to the agent record without the initial delete blocker warning
  2. Click "Delete"
  3. Wait on loading screen for a few minutes
  4. Delete blocker warning then appears

Alternatively:

  1. Go to the agent record without the initial delete blocker warning
  2. Wait for a few minutes
  3. Error message appears:
    Specify 7 Crash Report - 2022-09-27T21_19_20.759Z.txt

Expected behavior
Expected the agent record to be deleted if not referenced by a field. If referenced by a field, expected a delete blocker warning to appear initially before the deletion attempt.

Screenshots
An agent record without the delete blocker warning
image

When "Delete" button is clicked, the loading screen appears
image

After a couple of minutes, the delete blocker warning then appears
image

Console:
Console

Alternatively, when the "Delete" button is not clicked, the error message appears after a few minutes
image

Console:
Console

Desktop:

  • OS: Windows 10
  • Browser: Chrome
  • Specify 7 Version: 7.7.3

Database Name: KUBirds
User: spbirdadmin
Specific record: Robbins, Mark https://kubirds-v773-prerelease.test.specifysystems.org/specify/view/agent/1/

Reported By
Name of your institution

Additional context
Database name or any other context about the problem here.

Metadata

Metadata

Assignees

Labels

1 - BugIncorrect behavior of the product2 - FormsIssues that are related to the form system

Type

No type

Projects

Status

📋 Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions