Skip to content
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

Lisätään työaikakirjausten muutosten auditlokitus #6313

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

patari
Copy link
Collaborator

@patari patari commented Jan 29, 2025

Jonkinlainen POC. Esimerkki deskarilla:

Käyttäjä lisää uuden työaikakirjauksen:
"changes":[{"id":{"old":null,"new":"4c04c50c-de4a-11ef-b4c9-ef35cb7fc385"},"employeeId":{"old":null,"new":"6f5e8ac4-dc6f-11ef-9f80-dfdd6bf83ecc"},"groupId":{"old":null,"new":"6f5c7996-dc6f-11ef-9f80-4bc32e6081b8"},"arrived":{"old":null,"new":"2025-01-29T08:00:00+02:00"},"occupancyCoefficient":{"old":null,"new":0.00},"type":{"old":null,"new":"PRESENT"}}]

Käyttäjä lisää poistumisajan:
"changes":[{"id":{"old":"4c04c50c-de4a-11ef-b4c9-ef35cb7fc385","new":"4c04c50c-de4a-11ef-b4c9-ef35cb7fc385"},"departed":{"old":null,"new":"2025-01-29T16:00:00+02:00"}}]

Käyttäjä vaihtaa kasvatusvastuullisuusasetusta:
"changes":[{"id":{"old":"4c04c50c-de4a-11ef-b4c9-ef35cb7fc385","new":"4c04c50c-de4a-11ef-b4c9-ef35cb7fc385"},"occupancyCoefficient":{"old":0.00,"new":7.00}}]

Käyttäjä poistaa työaikakirjauksen:
"changes":[{"id":{"old":"4c04c50c-de4a-11ef-b4c9-ef35cb7fc385","new":null},"employeeId":{"old":"6f5e8ac4-dc6f-11ef-9f80-dfdd6bf83ecc","new":null},"groupId":{"old":"6f5c7996-dc6f-11ef-9f80-4bc32e6081b8","new":null},"arrived":{"old":"2025-01-29T08:00:00+02:00","new":null},"departed":{"old":"2025-01-29T16:00:00+02:00","new":null},"occupancyCoefficient":{"old":7.00,"new":null},"type":{"old":"PRESENT","new":null}}]

@patari patari added the enhancement Uusi toiminnallisuus tai parannus label Jan 29, 2025
@patari patari marked this pull request as ready for review February 18, 2025 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Uusi toiminnallisuus tai parannus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant