Skip to content

OBPIH-6966 Create an endpoint to get cycle counts#5027

Merged
awalkowiak merged 1 commit intodevelopfrom
OBPIH-6966
Feb 5, 2025
Merged

OBPIH-6966 Create an endpoint to get cycle counts#5027
awalkowiak merged 1 commit intodevelopfrom
OBPIH-6966

Conversation

@kchelstowski
Copy link
Collaborator

✨ Description of Change

A concise summary of what is being changed. Please provide enough context for reviewers to be able to understand the change and why it is necessary. If the issue/ticket already provides enough information, you can put "See ticket" as the description.

Link to GitHub issue or Jira ticket:

Description:


📷 Screenshots & Recordings (optional)

If this PR contains a UI change, consider adding one or more screenshots here or link to a screen recording to help reviewers visualize the change. Otherwise, you can remove this section.

@kchelstowski kchelstowski self-assigned this Feb 4, 2025
@github-actions github-actions bot added the domain: backend Changes or discussions relating to the backend server label Feb 4, 2025
@codecov
Copy link

codecov bot commented Feb 4, 2025

Codecov Report

Attention: Patch coverage is 23.07692% with 10 lines in your changes missing coverage. Please review.

Project coverage is 7.80%. Comparing base (a49f950) to head (2c3d7d9).
Report is 201 commits behind head on develop.

Files with missing lines Patch % Lines
...g/pih/warehouse/inventory/CycleCountService.groovy 0.00% 6 Missing ⚠️
...g/pih/warehouse/api/CycleCountApiController.groovy 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             develop   #5027   +/-   ##
=========================================
  Coverage       7.79%   7.80%           
  Complexity       868     868           
=========================================
  Files            620     620           
  Lines          42744   42757   +13     
  Branches       10370   10373    +3     
=========================================
+ Hits            3334    3337    +3     
- Misses         38914   38924   +10     
  Partials         496     496           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

}

List<CycleCountDto> getCycleCounts(List<String> ids) {
List<CycleCount> cycleCounts = CycleCount.createCriteria().list {
Copy link
Member

Choose a reason for hiding this comment

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

I think you can do CycleCount.findByIdIn(ids)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I wanted to allow fetching all if you don't provide the ids, so this wouldn't work with version you proposed. I think those versions are anyway almost equal, it's just "syntatic sugar".

@awalkowiak awalkowiak merged commit 5595d39 into develop Feb 5, 2025
9 checks passed
@awalkowiak awalkowiak deleted the OBPIH-6966 branch February 5, 2025 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: backend Changes or discussions relating to the backend server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants