Adds a migration that add the job field indexes, samples and subtractions documents where the field does not exist
Note: Based on the legacy dataset all subtractions have either a job or None, so this migration may not be required for subtractions. Usage of None in the existing code suggests to me that at some point job was undefined, so subtraction was added just in case.
Compatibility
We need to be very careful to identify breaking changes in.
Sources of breaking changes:
API
Removing a field from a response from an API endpoint.
Changing the shape of a response from an API endpoint.
Changing paths or search query parameters.
Removing deprecated functionality.
[x] Any changes I have made to the API are backwards compatible.
Migration
Making changes that require a certain migration to have been applied.
[x] My changes do not require a newer migration than the currently required migration..
Configuration
Changing configuration options that could break configurations in
production and development environments.
[x] My changes do not change configuration value names or types.
Services
Making changes that require a certain version of a service like Postgres, Redis, or
OpenFGA.
[x] My changes don't impose any new service requirements.
Notes
If you have introduced breaking changes, explain here.
Pre-Review Checklist
[x] All changes are tested.
[x] All touched code documentation is updated.
[x] Deepsource issues have been reviewed and addressed.
[x] Comments and print statements have been removed.
Changes
None
in the existing code suggests to me that at some pointjob
was undefined, so subtraction was added just in case.Compatibility
We need to be very careful to identify breaking changes in.
Sources of breaking changes:
API
Removing a field from a response from an API endpoint.
Changing the shape of a response from an API endpoint.
Changing paths or search query parameters.
Removing deprecated functionality.
[x] Any changes I have made to the API are backwards compatible.
Migration
Making changes that require a certain migration to have been applied.
[x] My changes do not require a newer migration than the currently required migration..
Configuration
Changing configuration options that could break configurations in production and development environments.
[x] My changes do not change configuration value names or types.
Services
Making changes that require a certain version of a service like Postgres, Redis, or OpenFGA.
[x] My changes don't impose any new service requirements.
Notes
If you have introduced breaking changes, explain here.
Pre-Review Checklist
print
statements have been removed.