Skip to content

Feature/bi 1459#185

Merged
timparsons merged 6 commits intodevelopfrom
feature/BI-1459
Jun 7, 2022
Merged

Feature/bi 1459#185
timparsons merged 6 commits intodevelopfrom
feature/BI-1459

Conversation

@timparsons
Copy link
Member

Description

Story: https://breedinginsight.atlassian.net/browse/BI-1459

Created a new data model to represent a job, and a new endpoint to fetch all jobs for a given program.

Dependencies

bi-web: features/BI-1459

Testing

See Breeding-Insight/bi-web#232

Checklist:

  • I have performed a self-review of my own code
  • I have tested my code and ensured it meets the acceptance criteria of the story
  • I have tested that my code works with both the brapi-java-server and BreedBase NA
  • I have create/modified unit tests to cover this change
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to documentation
  • I have run TAF: <please include a link to TAF run>

@timparsons timparsons requested review from HMS17 and davedrp May 27, 2022 13:46
@timparsons timparsons marked this pull request as ready for review May 27, 2022 13:46
Copy link
Contributor

@HMS17 HMS17 left a comment

Choose a reason for hiding this comment

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

Had to add a breakpoint to catch the In Progress tag, but it seems to be working!

@timparsons timparsons requested a review from HMS17 June 6, 2022 13:43
}

@Override
public String getJobType() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm confused about the need for the JobDetail interface. I only see it implemented once (here), and then it is only used to return a hardcoded value. Is there a more direct way to code this? If not, maybe a comment would be valuable.

Copy link
Member Author

Choose a reason for hiding this comment

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

@davedrp Added some javadoc to the JobDetail interface.

Essentially, the JobDetail interface is to allow a Job to hold additional information about a specific task, but not have to know exactly what that information is (the UI cares more about this hence why there is a getType method in the JobDetail).

@timparsons timparsons merged commit 0e15d89 into develop Jun 7, 2022
@timparsons timparsons deleted the feature/BI-1459 branch June 7, 2022 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants