Skip to content

[BI-2256] - Experimental Collaborator BI-API Changes#390

Merged
nickpalladino merged 35 commits intodevelopfrom
feature/BI-2256
Aug 29, 2024
Merged

[BI-2256] - Experimental Collaborator BI-API Changes#390
nickpalladino merged 35 commits intodevelopfrom
feature/BI-2256

Conversation

@nickpalladino
Copy link
Member

@nickpalladino nickpalladino commented Aug 15, 2024

Description

Story: BI-2256 - Experimental Collaborator BI-API Changes

Added POST, GET, and DELETE Experimental Collaborator Controller Methods to ExperimentalController.Java

Added Models for ExperimentalCollaboratorRequest and ExperimentalCollaboratorResponse to assist in controller methods

Added getRoleByDomain method to RoleService to assist in controller methods

Modified some naming of variables in existing Experimental Collaborator methods for the sake of clarity

Added Experimental Collaborator Unit Tests

Dependencies

n/a

Testing

Backend changes, only can test HTTP endpoint calls and added unit tests

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
  • 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>

nickpalladino and others added 28 commits August 15, 2024 17:02
…-2256

# Conflicts:
#	src/main/java/org/breedinginsight/api/model/v1/request/ExperimentCollaboratorRequest.java
#	src/main/java/org/breedinginsight/api/model/v1/response/ExperimentalCollaboratorResponse.java
#	src/main/java/org/breedinginsight/api/v1/controller/ExperimentController.java
#	src/test/java/org/breedinginsight/brapi/v2/ExperimentControllerIntegrationTest.java
@HMS17 HMS17 marked this pull request as ready for review August 22, 2024 19:44
@HMS17 HMS17 requested a review from mlm483 August 22, 2024 19:45
@HMS17 HMS17 requested review from a team and dmeidlin and removed request for a team August 22, 2024 19:45
Copy link
Contributor

@mlm483 mlm483 left a comment

Choose a reason for hiding this comment

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

Tested the endpoints with Bruno, working. 🚀

Copy link
Contributor

Choose a reason for hiding this comment

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

This is an improvement, thanks!

Copy link
Contributor

@dmeidlin dmeidlin left a comment

Choose a reason for hiding this comment

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

The ExperimentController provides non-BrAPI endpoints and resides in /api/v1/controller;
however, the ExperimentControllerIntegrationTest resides in /brapi/v2/. For consistency, the test class should be moved to /test/java/org/breedinginsight/api/v1/controller.

@HMS17
Copy link
Contributor

HMS17 commented Aug 27, 2024

The ExperimentController provides non-BrAPI endpoints and resides in /api/v1/controller; however, the ExperimentControllerIntegrationTest resides in /brapi/v2/. For consistency, the test class should be moved to /test/java/org/breedinginsight/api/v1/controller.

Good catch, change made

@HMS17 HMS17 requested a review from dmeidlin August 27, 2024 19:21
@nickpalladino nickpalladino merged commit 3e267f2 into develop Aug 29, 2024
@nickpalladino nickpalladino deleted the feature/BI-2256 branch August 29, 2024 15:28
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.

4 participants