-
Notifications
You must be signed in to change notification settings - Fork 10
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
Implementatin mpsks clients #504
base: develop
Are you sure you want to change the base?
Conversation
added the first implentation for the client it self still a lot to do #498
added mpsk client to user profile #498
added mpsks form implementation for etiting and adding clients #498
updated html for mpsks #498
added a html containing the table information for the mpsk clients #498
fixed the mapping for the usersuite so the information can be loaded from the client #498
added a form for deleting mpsks clients minor fixes for mpskclientform #498
added the add change and delete methods for the sample backend #498
added the href to the table showing the mpsk clients #498
added a model for sipa representing mpsks clients #498
added the sipa endpoints for the pycroft fetch #498
In the case of a non-displayable property, there is now a boolean to indicate that such a property cannot be displayed There is an opt-out #498
added a model for sipa representing mpsks clients #498
moved from url args to backend values #498
added the backend implentation for the api to pycroft and sample user #498
moved from url args to backend values #498
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #504 +/- ##
===========================================
+ Coverage 31.65% 31.78% +0.13%
===========================================
Files 68 69 +1
Lines 6951 7239 +288
===========================================
+ Hits 2200 2301 +101
- Misses 4751 4938 +187 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checklist / still missing:
- Tests
- translations
Length(-1, 30, lazy_gettext("Gerätename zu lang"))], | ||
description=lazy_gettext("TL-WR841N, MacBook, FritzBox, PC, Laptop, o.Ä."), | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use two newlines to separate top-level constructs
{% if property.displayable %} | ||
<span class="{{ style }}">{{ property.value }}</span> | ||
{% else %} | ||
<span class="{{ style }}"></span> | ||
{% endif %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what precisely is the point of introducing displayable
to set it to False
in the sample
backend?
I'm not sure what this is supposed to achieve.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
otherwise it will try to display the clients which is not feasible cause of there amount. So I Tried to mitigate this by introducing the displayable. But forgot it in the pycorft backend
Co-authored-by: Lukas Juhrich <[email protected]>
Co-authored-by: Lukas Juhrich <[email protected]>
Co-authored-by: Lukas Juhrich <[email protected]>
Co-authored-by: Lukas Juhrich <[email protected]>
Co-authored-by: Lukas Juhrich <[email protected]>
did for better readability a refactoring
refactoring for better readability change mpsk clients function
removed unnecessary \n
I can't enter the usersuite unfortunately:
|
interesting yesterday it worked for me will check |
just forgot to push a naming change sorry |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, the error persists. Are you using a modified version of Pycroft? The error occurs b/c there is no mpsk_clients
field in the data returned by the Pycroft API.
fixed a bug resulting in unable to add mpsk clients
refactored code and removed unnecessary assignment
in order to not display the mpsk clients on the user suite its necessary to have the possibility to hide a certain property. Otherwise it will not display nicely
for better errorhandling
fixed the changing of mpsk clients
added the displayable arg to sample users property capabilities
its checked rather the to delete mpsk client exists for the user refactoring changed the changing for the sample backends changing mpsk
added tests for mpsk
Content
Sipa implementation for mpsk clients so users can create delete and change them on there own
Please make sure though you did the following (tick off everything you
already did):
develop