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

Fixes issues in which foreign key IDs were not displayed in the UI (+ a few others) #962

Merged
merged 6 commits into from
Jun 15, 2024

Conversation

elijahbenizzy
Copy link
Collaborator

This is a bit ugly -- we're still identifying the underlying cause, but it turns out that in the SQL orm interaction with django ninja, foreign keys will not show up as IDs.

If you have foreign_key_id: int in the model it'll work. So adding this in fixed it.

This is a bit ugly -- we're still identifying the underlying cause, but
it turns out that in the SQL orm interaction with django ninja, foreign
keys will not show up as IDs.

If you have foreign_key_id: int in the model it'll work. So adding this
in fixed it.
This is here as some folks did not have it created automatically through
django. This is an extra layer but should be a no-op in most cases.
@elijahbenizzy elijahbenizzy changed the title Fixes issues in which foreign key IDs were not displayed in the UI Fixes issues in which foreign key IDs were not displayed in the UI (+ a few others) Jun 14, 2024
@elijahbenizzy elijahbenizzy marked this pull request as ready for review June 14, 2024 18:57
@@ -1,5 +1,5 @@
{
"schemaFile": "http://127.0.0.1:8000/api/openapi.json",
"schemaFile": "http://127.0.0.1:8241/api/openapi.json",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just double checking, this is the right port?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

Previously we got a null-pointer type exception. This fixes it by
double-checking whether we have no runs.
@elijahbenizzy elijahbenizzy merged commit ea24d8d into main Jun 15, 2024
21 of 26 checks passed
@elijahbenizzy elijahbenizzy deleted the ui-orm-bug-fixes branch June 15, 2024 00:02
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.

2 participants