Skip to content

200 new job model#206

Merged
DanielElisenberg merged 5 commits intomainfrom
200-new-job-model
Oct 24, 2025
Merged

200 new job model#206
DanielElisenberg merged 5 commits intomainfrom
200-new-job-model

Conversation

@DanielElisenberg
Copy link
Collaborator

  • Add datastore_rdn to job models, for now we are just injecting the rdn from environment
  • Use datastore specific local storage adapters
  • Getting datastore directory from datastore-api, currently just hard coding the root dir from environment until datastore-api endpoints are implemented
  • Using the job specific local storage adapters everywhere. Lots of room for improvement here, but kept it super simple for now to avoid too many changes. Will definitely clean this up down the line.
  • Updated tests

@DanielElisenberg DanielElisenberg requested a review from a team as a code owner October 24, 2025 09:18
@DanielElisenberg DanielElisenberg linked an issue Oct 24, 2025 that may be closed by this pull request
@sonarqubecloud
Copy link

Copy link
Contributor

@linnbjornerud linnbjornerud left a comment

Choose a reason for hiding this comment

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

I think this looks very good 👍🏻

response = execute_request("GET", request_url, True)
return [Job(**job) for job in response.json()]
return [
Job.model_validate({"datastoreRdn": environment.datastore_rdn, **job})
Copy link
Contributor

Choose a reason for hiding this comment

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

💯

@DanielElisenberg DanielElisenberg merged commit 3205aee into main Oct 24, 2025
5 checks passed
@DanielElisenberg DanielElisenberg deleted the 200-new-job-model branch October 24, 2025 13:20
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.

New Job Model

2 participants