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

MLT-0086 Item Model Update #56

Merged
merged 4 commits into from
Dec 20, 2024
Merged

Conversation

anotheroneofthese
Copy link
Collaborator

Follows up on #55, and makes the quantity and location fields within the data non-nullable. This comes with more benefits than downsides, and simplifies the API.

It even removes the strange edge-case of picking an item where the location is null.

        } else if (location != null) {
            location
        } else {
-            // Rare edge case. Log it until we can determine if this actually happens in production
-            logger.error {
-                "Item with ID '$hostId' for host '$hostName' without a location was picked. Location was set to 'UNKNOWN'."
-            }
            "UNKNOWN"
        }

- Remove unused elvis
- Remove ApiItemPayload -> ItemMetadata mapping
  - This should not really be required anymore
Copy link
Collaborator

@MormonJesus69420 MormonJesus69420 left a comment

Choose a reason for hiding this comment

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

Just a small nitpick, otherwise accepted

@anotheroneofthese anotheroneofthese merged commit e8c7033 into main Dec 20, 2024
5 checks passed
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.

2 participants