doc: add a reminder about field order for diff comparisons

After spending hours re-learning this lesson more than once,
update the jobspec contribution guide with a reminder about
how to configure FieldDiff comparisons.
This commit is contained in:
Seth Hoenig
2020-03-25 09:33:27 -06:00
parent 8edf55600b
commit 329ea5a77e

View File

@@ -17,6 +17,7 @@
* Implement other methods and tests from `api/` package
* [ ] Add conversion between `api/` and `nomad/structs` in `command/agent/job_endpoint.go`
* [ ] Add check for job diff in `nomad/structs/diff.go`
* Note that fields must be listed in alphabetical order in `FieldDiff` slices in `nomad/structs/diff_test.go`
* [ ] Test conversion
## Docs