open-nomad/nomad/state
Seth Hoenig 74714272cc
api: set the job submission during job reversion (#17097)
* api: set the job submission during job reversion

This PR fixes a bug where the job submission would always be nil when
a job goes through a reversion to a previous version. Basically we need
to detect when this happens, lookup the submission of the job version
being reverted to, and set that as the submission of the new job being
created.

* e2e: add e2e test for job submissions during reversion

This e2e test ensures a reverted job inherits the job submission
associated with the version of the job being reverted to.
2023-05-08 14:18:34 -05:00
..
indexer [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
paginator [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
autopilot.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
autopilot_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
deployment_events_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
events.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
events_test.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
iterator.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
schema.go api: enable support for setting original job source (#16763) 2023-04-11 08:45:08 -05:00
schema_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_changes.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store.go api: set the job submission during job reversion (#17097) 2023-05-08 14:18:34 -05:00
state_store_acl.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_acl_binding_rule.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_acl_binding_rule_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_acl_sso.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_acl_sso_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_acl_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_oss.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_restore.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_restore_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_service_regisration_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_service_registration.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_test.go Correct the status description and modify time of canceled evals. (#17071) 2023-05-08 08:50:36 -04:00
state_store_variables.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_variables_oss.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
state_store_variables_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
testing.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00