Skip to content

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

Merged
elijahbenizzy merged 6 commits intomainfrom
ui-orm-bug-fixes
Jun 15, 2024
Merged

Fixes issues in which foreign key IDs were not displayed in the UI (+ a few others)#962
elijahbenizzy merged 6 commits intomainfrom
ui-orm-bug-fixes

Conversation

@elijahbenizzy
Copy link
Contributor

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
@elijahbenizzy elijahbenizzy requested a review from skrawcz June 14, 2024 18:58
@@ -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
Contributor

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
Contributor 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
@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