-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update People when they are viewed | PuzzleTime Sync #7 #746
Comments
Stand 03.07.2024 |
Stand 04.07.2024 |
Stand 05.07.2024 Hinweise: Ich habe feature specs als auch domain specs geschrieben. Was noch fehlt:
|
Notes 29.07.2024
|
Stand 29.07.2024 |
Stand 30.07.2024 |
ToDo
|
Stand 31.07.2024 |
Stand 02.08.2024 Der verlinkte Branch dieses Tickets baut auf dem oben genannten Branch auf und fügt folgende Funktionen hinzu: Wenn man auf eine Person navigiert, dann fetcht und updated der Controller die Daten von der PuzzleTime API bevor die Person dem Benutzer angezeigt wird. Wenn eine Person noch nicht existiert, dann kann diese über die Route `/people/new?ptime_employee_id=<ptime_employee_id> erstellt werden. Der Controller fetcht dann die Daten und erstellt daraus die entsprechende Person. Über eine ENV-Variable namens Was noch fehlt:
|
Introduction
When clicking on an employee that is displayed on the ptime-employee-dropdown it redirects to the detailed view of this employee. As soon as an employee is clicked a request for this employee is sent to the PTime API and the response data will be saved in the skills DB. Then the freshly fetched data is displayed on the profile of this specific person. This makes sure that the data is up to date at all times.
Creating a person
If a Person doesn't exist yet in the Skills DB, we want to create it. The dropdown will have
/people/new?ptime_employee_id={ptime_employee_id}
as link. When we navigate to this route, we first fetch thisptime_employee_id
from the PTime API, to see if it exists and to get the data. If it doesn't exist, we do nothing. We also do nothing, if there already is a person with thisptime_employee_id
in the skills DB. If it exists, we create a new person with the fetched data and set it'sptime_employee_id
to the id of the fetched employee.It would probably be beneficial to implement a loading bar while fetching data.
ToDo
The text was updated successfully, but these errors were encountered: