-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Dev #83
base: main
Are you sure you want to change the base?
Dev #83
Conversation
Hi @boostMNK, thanks for your contribution! Unfortunately, some server tests are failing when testing your code. The root cause seems to be this condition in line 395 in booking-router.go: if bookForUser == nil || err != nil { Could you check this and make sure the test cases pass? Thanks! |
Hi @virtualzone , Excuse me, I could not find any time to fix it until now. |
server/booking-router.go
Outdated
return "", errors.New("InternalServerError") | ||
} | ||
if !GetOrganizationRepository().isValidEmailForOrg(userEmail, org) { | ||
fmt.Println("GetOrganizationRepository().isValidEmailForOrg(userEmail, org): bad request", userEmail, org) |
Check failure
Code scanning / CodeQL
Log entries created from user input
@boostMNK Unfortunately, the problem doesn't seem to be solved yet. The server tests are still failing (you can run them locally by executing |
The problem occurred while checking for the http response if the booking is updated by non-admin user. As I believe the expected response should be forbidden I changed it accordingly. But this triggered several other errors in further tests. |
…eForeign at update for non-admin user the expected http response code to 403
Hi @boostMNK , Critical issues:
Other issues I noticed:
I'd be happy to merge your pull request. However, especially the critical issues should be addressed first. Many thanks for your efforts! |
Hi @virtualzone, unfortunately I was unable to continue working on these issues. I try to spend some time on
the next days. Cheers, boost |
Hi Heiner and Folke,
I really like your project and would love to contribute to it.
this is my first pull request to another project. Please let me know if I did something wrong or what you liked / disliked.
I've added the functionality to the admin-ui to update and add bookings by an admin.
Especially if bookings in past would be allowed for an admin it would in following use cases:
Cheers,
Sebastian