Skip to content

Conversation

@bgentry
Copy link
Contributor

@bgentry bgentry commented May 8, 2025

Issue #347 details how #344 broke some key parts of the frontend due to missing fields in the job list payloads (errors, logs, and metadata were removed from the job payload for the list API). The root issue is that the TypeScript types were not adjusted to reflect the new split Job type, so several parts of the code made reference to things they could no longer access (and didn't actually need anyway). In particular this was true for deserializing job payloads where the same logic was applied to all job responses.

To fix this, update the types to have a separate JobMinimal and Job type just as the API backend does. Update all code that uses them to ensure the correct one is utilized. It's only list view stuff that needs JobMinimal for now.

Fixes #347.

@bgentry
Copy link
Contributor Author

bgentry commented May 8, 2025

Actually this needs a few more tweaks to the factory setup, will get to that shortly!

Issue #347 details how #344 broke some key parts of the frontend due to
missing fields in the job list payloads (errors, logs, and metadata were
removed from the job payload for the list API). The root issue is that
the TypeScript types were not adjusted to reflect the new split Job
type, so several parts of the code made reference to things they
could no longer access (and didn't actually need anyway). In particular
this was true for deserializing job payloads where the same logic was
applied to all job responses.

To fix this, update the types to have a separate `JobMinimal` and `Job`
type just as the API backend does. Update all code that uses them to
ensure the correct one is utilized. It's only list view stuff that needs
`JobMinimal` for now.

Fixes #347.
@bgentry bgentry force-pushed the bg-fix-job-type-issues-on-frontend branch from e56c768 to 9f87cf0 Compare May 8, 2025 20:21
@bgentry bgentry merged commit 8252fc8 into master May 9, 2025
13 checks passed
@bgentry bgentry deleted the bg-fix-job-type-issues-on-frontend branch May 9, 2025 00:16
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.

Jobs List page crushed: AttemptErrors not present in response

3 participants