Skip to content

Refactor "job_id" to "reference_id" #997

@DerekFurstPitt

Description

@DerekFurstPitt

In numerous places throughout search-api and search-adaptor (as well in the jobq repo) we use the term "job_id". This is the value generated and returned and attached to the original target entity of the reindex job. It was given as a simple reference both to confirm that a task had been created, and so that they could look up this job in the queue. However, the naming is somewhat confusing. It implies every job has an id, but only initial reindex requests get one, not every associated entity. They have the same "job_id" even though they're a different job.

Reference_id is more appropriate. Change all references to job_id (not all references to jobs in general, just this job_id field) to reference_id in search-api, search-adaptor, and jobq.

Metadata

Metadata

Labels

Type

No type

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions