-
Notifications
You must be signed in to change notification settings - Fork 244
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
Refactor machine output to use machineoutput/types.go #2105
Comments
This is not a good design. We already have structs representing most of the stuff that will be returned in machine-readable outputs. like Odo should internally work with structures defined there, and the same structs should also be outputted as jsons. |
Bit confused @kadel What I mean is removing the json.Marshal statements for: https://github.com/openshift/odo/blob/master/pkg/machineoutput/types.go#L34 Which is simply a wrapper around |
OH, right. So you mean replacing every occurrence |
@kadel Yup! Exactly. |
/unassign @cdrage |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
I've refactored this as much as I could 👍 I think we can close this for now. |
[kind/Enhancement]
Which functionality do you think we should update/improve?
The below code:
Is used throughout odo (https://github.com/openshift/odo/search?q=json.Marshal&unscoped_q=json.Marshal).
This should instead use what we have within: https://github.com/openshift/odo/blob/master/pkg/machineoutput/types.go
Why is this needed?
Clean up / stability
The text was updated successfully, but these errors were encountered: