Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPIK-645 Return all feedback score names for project ids endpoint #947

Conversation

BorisTkachenko
Copy link
Contributor

Details

Return all feedback score names for project ids endpoint

Testing

Covered by integration test

@BorisTkachenko BorisTkachenko self-assigned this Dec 20, 2024
@BorisTkachenko BorisTkachenko requested a review from a team as a code owner December 20, 2024 16:09
Copy link
Collaborator

@andrescrz andrescrz left a comment

Choose a reason for hiding this comment

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

The test is not placed in the right resource test class, to me that's a blocker.

The rest are minor or non-blocking comments.

Comment on lines 2696 to 2697
var feedbackScoreNamesByProjectId = projectResourceClient.findFeedbackScoreNames(projectIdsQueryParam, apiKey, workspaceName);
assertFeedbackScoreNames(feedbackScoreNamesByProjectId, expectedNames);
Copy link
Collaborator

@andrescrz andrescrz Dec 23, 2024

Choose a reason for hiding this comment

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

This should be a new test for project resource, not under the experiments resource.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I moved it to ProjectsResourceTest and did some refactoring.

@BorisTkachenko BorisTkachenko force-pushed the boryst/OPIK-645-be-add-endpoint-to-return-all-possible-feedback-scores-names-for-projects branch from cfd71c8 to 888ed03 Compare December 30, 2024 15:40
project, apiKey, workspaceName);

// Create unexpected feedback scores
var unexpectedProject = factory.manufacturePojo(Project.class);
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe you forgot to make the call that actually creates the project

idoberko2
idoberko2 previously approved these changes Jan 2, 2025
Copy link
Contributor

@idoberko2 idoberko2 left a comment

Choose a reason for hiding this comment

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

LGTM, left one comment to improve the test.

@BorisTkachenko BorisTkachenko merged commit 30d7f45 into main Jan 2, 2025
7 checks passed
@BorisTkachenko BorisTkachenko deleted the boryst/OPIK-645-be-add-endpoint-to-return-all-possible-feedback-scores-names-for-projects branch January 2, 2025 10:00
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.

3 participants