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

Door API does not consider overdue as access granted, should #386

Open
olmari opened this issue Sep 30, 2022 · 2 comments
Open

Door API does not consider overdue as access granted, should #386

olmari opened this issue Sep 30, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@olmari
Copy link
Collaborator

olmari commented Sep 30, 2022

If there is set overdue on "tilamaksu" service to allow member have "tilamaksu" in overdue before suspended, door API does not still allow member in.

I think it should, as admins specifically allow overdue when value is set. Optimally all the current reminder mails (or future whatever methods) should be sent like currently in overdue state, but door should still open.

Either same HTTP 200 status, or optimally different 200 status to differentiate, could pick 281 to be opposing for our current 481 =)

Anyway most acute thing would be overdue considered valid access.

Testing from different type of member statuses against door API, answers below, problematic one would be the 3, MonthlyOverdue:

{"email":"[email protected]","first_name":"NotMember","last_name":"NotMonthly","nick":null,"phone":"+358001"}
Response code: 481

{"email":"[email protected]","first_name":"Member","last_name":"NotMonthly","nick":null,"phone":"+358002"}
Response code: 481

{"email":"[email protected]","first_name":"Member","last_name":"MonthlyOverdue","nick":null,"phone":"+358003"}
Response code: 481

{"email":"[email protected]","first_name":"Member","last_name":"Monthly","nick":null,"phone":"+358004"}
Response code: 200

Also GET method for whole allowed list:

[{"email":"[email protected]","first_name":"Member","last_name":"Monthly","nick":null,"phone":"+358004"}]
Response code: 200
@olmari olmari added the bug Something isn't working label Sep 30, 2022
@olmari
Copy link
Collaborator Author

olmari commented Oct 1, 2022

There were some discussions on chat that at least original design was intentionally for overdue to block access. For that there is the "suspended" state, and this is also why "overdue" length can be adjusted or disabled completely, if any leeway is not desired to be given.

At current behavior "overdue" is kind of broken concept, it does not allow overdue.

@olmari olmari self-assigned this Oct 1, 2022
@olmari
Copy link
Collaborator Author

olmari commented Oct 3, 2022

We need to spec overdue and new deactivated state. As initial general overview point rename current "overdue" to "deactivated" while otherwise logic stays same, and introduce new "overdue" that does allow door access still.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant