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][Projects] Cannot read properties of null (reading 'id') #7427

Open
2 of 3 tasks
dwaghulade opened this issue May 6, 2024 · 11 comments
Open
2 of 3 tasks

[Bug][Projects] Cannot read properties of null (reading 'id') #7427

dwaghulade opened this issue May 6, 2024 · 11 comments
Assignees
Labels
severity/p1 This bug affects functionality or significantly affect ux type/bug This issue is a bug

Comments

@dwaghulade
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

Project created intially without any data connection is showing in the project list and would like to dlete it however when click on project or setting icon getting error message as "Cannot read properties of null (reading 'id')"

image

What do you expect to happen

Should able to open setting for project so that it can be deleted.

How to reproduce

Issue in highlighted project

image

Anything else

No response

Version

v1.0.0-beta6

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@dwaghulade dwaghulade added the type/bug This issue is a bug label May 6, 2024
@Startrekzky
Copy link
Contributor

How did you create the project, by API or Config UI?

@Startrekzky Startrekzky added the severity/p1 This bug affects functionality or significantly affect ux label May 7, 2024
@ArtRout1313
Copy link

ArtRout1313 commented May 9, 2024

Hi everyone.

Faced with the same issue. Project created via Config UI

Also noticed, for that new project there is no Blueprint created. And in database tables ‘_devlake_blueprint*’ there are rows filled with ’null’.

Screenshot 2024-05-09 at 19 29 03 Screenshot 2024-05-09 at 19 29 24

@dwaghulade
Copy link
Author

Config UI

Project created with Config UI

@dwaghulade
Copy link
Author

Upgraded to v1.0.0-beta8 however issue still persist.

@mintsweet
Copy link
Member

Hi @dwaghulade, I'm so sorry for this issue, but existing data cannot be modified, please create a new project.

@klesh
Copy link
Contributor

klesh commented May 21, 2024

@dwaghulade The fix can only prevent the problem for the new projects onward

@dwaghulade
Copy link
Author

Thanks @mintsweet & @klesh for the clarification.

Any way to clean-up existing projects as those are unnecessary being displayed in the list.

@klesh
Copy link
Contributor

klesh commented May 21, 2024

@dwaghulade try deleting the project from the database.

@dwaghulade
Copy link
Author

@klesh I was avoiding to use direct DB deletion approach because of any dependencies impact. Do you have list of tables from where I need to delete entries to make sure all related data as well deleted for these projects?

@klesh
Copy link
Contributor

klesh commented May 21, 2024

@dwaghulade I assumed that the problematic project has never been actually used, correct? you may delete it from the projects table if so.

@dwaghulade
Copy link
Author

Thanks @klesh for your help. I have removed entries from projects tables which has cleared unwanted projects from the list on UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/p1 This bug affects functionality or significantly affect ux type/bug This issue is a bug
Projects
None yet
Development

No branches or pull requests

6 participants