AnthonyNicholas / searchCLI

0 stars 1 forks source link

Command Line Search Application

Author: Anthony Nicholas
Date: 25 February 2021
Version: 1.0

Description

This Application provides command line search of the contents of three json files: tickets.json and users.json and organization.json. The user is able to search each of these entities using any of the fields contained in thes json files. Where the data exists, values from any related entities are included in the results.

The Application has been built with Python using the following components:

Requirements

Python version 3.8

Packages listed in requirements.txt - which should be installed following the steps below:

  1. Clone the repository & then navigate into the searchCLI directory. Create a virtual environment in the repository with:
python3 -m venv .searchCLIenv
  1. Activate the virtual environment & install the dependencies in the virtual environment:
source .searchCLIenv/bin/activate

pip3 install -r requirements.txt

Running the Zendesk Search Code

Run the project by navigating to the searchCLI directory and running:

python3 main.py

Running tests

To run the tests, navigate to the searchCLI directory and run:

pytest -v

Notes

When returning assocated data, I have assumed the relationship between users and tickets is via the submitter_id field on the ticket only. I assume that the assignee_id field is related to staff, not users.