- To update
Trainee
&&Managers
tables- Prod:
npm run prod <relative location of New Hire Excel Sheet>
- Prod:
- To update
Test Trainee
&&Test Managers
tables- Dev With Your Data:
npm run dev <relative location of New Hire Excel Sheet>
- Dev With Sample Data:
npm run dev
- Dev With Your Data:
A simple tools that:
- Consumes the New Hire Excel sheet from T-Mobile (
loadFile()
) - Filters the list by title (
filterByTitle()
) - Finds and adds any managers that isn't already in the
Managers
table (processNewManagers()
) - Compares and removes any duplicate entries based on existing Airtable data (
checkForDuplicates()
) - In trainee data, exchanges
manager.name
formanager.id
(replaceManagers()
) - Uploads new trainees to the
Trainees
table (updateAirtable()
)
- Download the repository
- Run
npm run prod <relative file location>
- For example, if you place the Excel sheet (new_hire_data_2022.xlsx) in the root of this project, your command would be
npm start new_hire_data_2022.xlsx
.
- For example, if you place the Excel sheet (new_hire_data_2022.xlsx) in the root of this project, your command would be
- Run
npm run dev
- If you use this command alone it will use
/sample_data/test-data.xlsx
, but you can also runnpm run dev <relative file location>
if you'd like to use your own sample data. - Regardless of the file it's pointed at this command will point the tool to
Test Managers
&&Test Trainees
- If you use this command alone it will use