🎨 Remove omitempty from app_type(hpa.enabled)#288
Conversation
There was a problem hiding this comment.
Hey abdheshnayak - Here's my review!
General suggestions:
- Ensure that the new 'isReadyOnly' resolver's implementation is completed and properly integrated into the system.
- Review the impact of making the 'enabled' field non-optional on existing data and client interactions to ensure backward compatibility.
- Consider the broader implications of these changes on the system's functionality and user experience.
Thanks for using Sourcery. We offer it for free for open source projects and would be very grateful if you could help us grow. If you like it, would you consider sharing Sourcery on your favourite social media? ✨
|
|
||
| return e.complexity.Secret.Immutable(childComplexity), true | ||
|
|
||
| case "Secret.isReadyOnly": |
There was a problem hiding this comment.
suggestion (llm): Given the addition of the IsReadyOnly field in the GraphQL schema, it's important to ensure that integration tests are updated or added to cover this new field. This includes testing the field's behavior in queries and mutations where it's applicable, ensuring that the field behaves as expected in different scenarios, including edge cases.
| MinReplicas *int `json:"minReplicas,omitempty"` | ||
| ThresholdCPU *int `json:"thresholdCpu,omitempty"` | ||
| ThresholdMemory *int `json:"thresholdMemory,omitempty"` | ||
| Enabled bool `json:"enabled"` |
There was a problem hiding this comment.
issue (llm): The removal of omitempty from the enabled field in the HPA model indicates a significant change in how the absence of a value is treated. It's essential to add or update unit tests for any serialization/deserialization logic that involves these models to ensure that the absence of the enabled field is handled as expected. Additionally, consider adding tests that verify the API's behavior when the enabled field is not provided by the client, ensuring backward compatibility and clear error messaging.
🎨 Remove omitempty from app_type(hpa.enabled)
No description provided.