Closed hancush closed 3 years ago
P.s., I also did a quick search of the code base for job__vintage
to check for other places where this bug might crop up. No results!
P.s., I also did a quick search of the code base for
job__vintage
to check for other places where this bug might crop up. No results!
was gonna ask if this might happen in the data download we added, but i think this answers that.
Good thought, @smcalilly! You're using the get_salaries
method in the export, which helpfully queries Salary
directly. One of the handful of good decisions I made, I guess. 😂
Description
Similarly to #536, this PR addresses a bug that omitted people from indexing if they held their job in a prior year, by selecting people to index based on the vintage of their salary, rather than their job.
Testing instructions
docker-compose run --rm app python manage.py build_solr_index --entity-types people --reporting_year 2019 --recreate
and finally confirming that the correct number of people were indexed for a sample of employers.