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

🐛 Bug: cannot delete a row with a column of type link: "Failed to deleted record: the referenced record does not exist" #7480

Closed
1 task done
Sov3rain opened this issue Jan 22, 2024 · 6 comments

Comments

@Sov3rain
Copy link

Sov3rain commented Jan 22, 2024

Please confirm if bug report does NOT exists already ?

  • I confirm there is no existing issue for this

Steps to reproduce ?

  1. Create a row in a table to another row in any other table.
  2. Try to delete the row.
  3. You get the "Failed to deleted record: the referenced record does not exist".
  4. Delete the linked record on the row.
  5. Try to delete the row.
  6. Works Fine

Desired Behavior

Either you should show a more relevant error message, like "Cannot delete a row with linked records" or let the user delete a row that has linked records.

Project Details

Node: v18.18.2
Arch: x64
Platform: linux
Docker: true
RootDB: pg
PackageVersion: 0.203.2
hosting: railway.app

Attachments

image
image

@DanielSolano1
Copy link

Hey just to update anyone interested on the issue I am trying to find a fix.

@DanielSolano1
Copy link

@Sov3rain Hello, I tried to reproduce the bug/issue you had with the steps provided, but was unable to have any luck, I couldn't get the error message to show up. Maybe there was a forgotten step on these instructions or a non standard environment was used? Would it be possible if you tried to recreate this error to see if the issue persists?

@Sov3rain
Copy link
Author

Hey @DanielSolano1! Sure, I'll try to find something. Our environment is the following:

  • Hosted on Railway.app using the community template
  • 2 Postgres db : one for the noco metadata, one for the data itself

I'll try to export you the relation diagram if that can help with anything.

@Sov3rain
Copy link
Author

Sov3rain commented Feb 23, 2024

Hey @DanielSolano1, I tried to reproduce the issue on 0.204.1, but it seems like it's gone! Don't know if it was intentional but for now it works.

@DanielSolano1
Copy link

@Sov3rain Great!

@dstala
Copy link
Member

dstala commented Mar 30, 2024

Closing this issue for now- assuming it was fixed in one of our earlier releases. If issue persists, reopen this thread.

@dstala dstala closed this as completed Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Closed
Development

No branches or pull requests

3 participants