edulution-io / edulution-ui

https://edulution.io/
2 stars 0 forks source link

NIEDUUI-378: Add Change Personal Data Dialog and functionality #174

Open maierdominik opened 4 weeks ago

maierdominik commented 4 weeks ago

JIRA: https://schulz-informatik.atlassian.net/browse/NIEDUUI-378

NIEDUUI-378:

It WORKS, even so LMN API returns following error (only in backend): image

TomlDev commented 1 week ago

a) The page has different style to the safety page which looks strange when switching them: grafik vs grafik

  1. The page description is missing
  2. There is a wrong margin/padding, same in mobile: grafik

b) In Mail and Security there are no : used for input labels: grafik grafik Also, the label should not be gray when the input is disabled I think


c) Clicking on these buttons does NOT update with correct data and shows an error to the user: grafik

Throws an internal server error in our backend:

[Nest] 182696  - 15.10.2024, 10:44:43   ERROR [ExceptionsHandler] Converting circular structure to JSON
    --> starting at object with constructor 'ClientRequest'
    |     property 'socket' -> object with constructor 'Socket'
    --- property '_httpMessage' closes the circle
TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'ClientRequest'
    |     property 'socket' -> object with constructor 'Socket'
    --- property '_httpMessage' closes the circle
    at JSON.stringify (<anonymous>)
    at stringify (/home/tom/Dokumente/netzint/edulution-ui/node_modules/express/lib/response.js:1160:12)
    at ServerResponse.json (/home/tom/Dokumente/netzint/edulution-ui/node_modules/express/lib/response.js:271:14)
    at ExpressAdapter.reply (/home/tom/Dokumente/netzint/edulution-ui/node_modules/@nestjs/platform-express/adapters/express-adapter.js:62:62)
    at RouterResponseController.apply (/home/tom/Dokumente/netzint/edulution-ui/node_modules/@nestjs/core/router/router-response-controller.js:15:36)
    at /home/tom/Dokumente/netzint/edulution-ui/node_modules/@nestjs/core/router/router-execution-context.js:176:48
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at /home/tom/Dokumente/netzint/edulution-ui/node_modules/@nestjs/core/router/router-execution-context.js:47:13
    at /home/tom/Dokumente/netzint/edulution-ui/node_modules/@nestjs/core/router/router-proxy.js:9:17

But sending the request with Linuxmuster.net API works: grafik Also sending the request with cURL works:

curl -X POST \
  'http://localhost:5173/api/v1/users/netzint-teacher' \
  -H 'x-api-key: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJ1c2VyIjoibmV0emludC10ZWFjaGVyIiwicm9sZSI6InRlYWNoZXIiLCJzY2hvb2wiOiJkZWZhdWx0LXNjaG9vbCJ9.BpHIDOjyh19Yty4_MATPB_qlX8YkJdJBugyjFZxZY6PWK0RP8DLiQpwblPA7LdjUmwpeC1-T5phT6gHGfI6-Ow' \
  -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJ1c2VyIjoibmV0emludC10ZWFjaGVyIiwicm9sZSI6InRlYWNoZXIiLCJzY2hvb2wiOiJkZWZhdWx0LXNjaG9vbCJ9.BpHIDOjyh19Yty4_MATPB_qlX8YkJdJBugyjFZxZY6PWK0RP8DLiQpwblPA7LdjUmwpeC1-T5phT6gHGfI6-Ow' \
  -H 'Content-Type: application/json' \
  -d '{
    "proxyAddresses": ["justus@schule.de", "jonas@schule.de", "testPOSTMAN@schule.de"],
    "sophomorixCustom1": "Sport",
    "sophomorixCustom2": "Mathematik"
  }'

returns null So there must be something wrong with our code. We should not want to merge this if it's not working...

PS: I also checked the logs of the lmn api but could not find an error there, this was the log when updating the proxy addresses:

2024-10-15 13:06:33,800 - root - DEBUG - Detected encoding for /etc/linuxmuster/webui/config.yml : ascii, but using utf-8
2024-10-15 13:06:33,805 - root - DEBUG - Detected encoding for /etc/linuxmuster/webui/config.yml : ascii, but using utf-8
2024-10-15 13:06:33,839 - root - DEBUG - Detected encoding for /etc/linuxmuster/webui/config.yml : ascii, but using utf-8
2024-10-15 13:06:33,843 - root - DEBUG - Detected encoding for /etc/linuxmuster/webui/config.yml : ascii, but using utf-8
2024-10-15 13:06:33,873 - root - DEBUG - Detected encoding for /etc/linuxmuster/webui/config.yml : ascii, but using utf-8
2024-10-15 13:06:33,879 - root - DEBUG - Detected encoding for /etc/linuxmuster/webui/config.yml : ascii, but using utf-8
2024-10-15 13:06:33,920 - uvicorn.access - INFO - 176.199.255.157:14156 - "POST /v1/users/brs-netzint-teacher HTTP/1.1" 200

d) The email proxy is there twice: grafik


e) The quota seems to be different on Dashboard grafik Then in the new screen: grafik