-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Remove API duplicates of nomad/structs and remove the compose api. #329
Comments
@dadgar Can you explain what needs to be done here? It's not really clear to me. |
You will notice that the two packages duplicate all structs returned by the HTTP API. I linked an example. So the task is really to make the API layer return structs defined in nomad/structs |
@dadgar Could this be what you want? Raffo@65aaad3 |
@Raffo: Yes that is exactly what I wanted! I left a few comments on your commit. The command (cli) package would probably have to be updated too! |
@dadgar I'll have a look at your comments tomorrow and I'll try to address them. After that, should I update my fork from upstream? I guess there are many new commits and I have no idea if the merge will be painful... tell me what you prefer. |
@Raffo: Yeah exactly, I would rebase your branch and then create a PR. |
@Raffo: we actually decided to keep the duplicates as a compatibility layer in case the two ever diverge. I really appreciate the effort! |
Well, it was fun anyways :-) |
* Refactor recoverCluster into private functions * added lastSnapIndex and some is
This reverts commit 904f3b9.
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
The api package has copies of the nomad structs used everywhere else. We should just remove them (example
nomad/api/jobs.go
Line 111 in fd3dcce
The text was updated successfully, but these errors were encountered: