generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 3
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
BUG:Admin CRUD causes server error #170
Comments
This was referenced Oct 8, 2023
mikerae
added a commit
that referenced
this issue
Oct 8, 2023
Add paths for add_sp_office, with additional section id argument modified: string_rota/urls.py modified: string_rota/templates/string_rota/rota.html Add logic to add_sp class setting section from sidebar modified: string_rota/views.py Add testing for Fix Bug-Admin add seating position to README modified: README.md new file: readme_assets/images/testing-issue170-1.png
mikerae
added a commit
that referenced
this issue
Oct 8, 2023
For Admin User: In Views: Each CRUD Class accepts ssection_id as kwargs and sets the value of section. Each returns to a dedicated 'office' url modified: string_rota/views.py Fix for Add Seating Position: conditional routing modified: string_rota/templates/string_rota/add_sp.html modified: string_rota/templates/string_rota/rota.html Fix for Edit Seating position: conditional routing modified: string_rota/templates/string_rota/edit_sp.html Add dedicated office urls for each CRUD url modified: string_rota/urls.py Add testing for Fix CRUD for Admin Seating Position in README modified: README.md new file: readme_assets/images/testing-issue170-2.png
mikerae
added a commit
that referenced
this issue
Oct 8, 2023
Update message in ToggleSeatingPlanStatus Class Add accepts section.id as kwargs in ToggleSeatingPlanStatus Class Add conditional return logic in ToggleSeatingPlanStatus Class Derive section form kwargs in ToggleSeatingPlanStatus Class modified: string_rota/views.py Add conditional routing for Draft/Published Button modified: string_rota/templates/string_rota/rota.html Add toggle_seating_plan_status_office path modified: string_rota/urls.py Add testing of Admin Toggle Draft/Pubished rotas to README modified: README.md new file: readme_assets/images/testing-issue170-3.png
mikerae
added a commit
that referenced
this issue
Oct 9, 2023
Remove Register User from Admin login temporarily to ensure pull request is robust. modified: templates/base.html Add conditional rendering for login as Admin/Rota Manager in Reserve class Add **kwargs to pass section.id into Reserve class modified: string_rota/views.py Add reserve_office url modified: string_rota/urls.py Add conditional Allocate Reserve button url modified: string_rota/templates/string_rota/rota.html Add conditional cancel button url modified: string_rota/templates/string_rota/reserve.html Add testing for Add Admin Allocate reserve to README modified: README.md new file: readme_assets/images/testing-issue170-4.png
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When a rota is selected when user is Admin, the edit buttons cause server error
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
Admin should be able to edit rotas for a section as if they were a Rota Manager for that section
Screenshots
![Screenshot 2023-10-08 at 17 26 40](https://private-user-images.githubusercontent.com/73435638/273461162-58ef752d-0b30-45e7-a9f8-33bcae31b6f9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NTE5MzYsIm5iZiI6MTczOTQ1MTYzNiwicGF0aCI6Ii83MzQzNTYzOC8yNzM0NjExNjItNThlZjc1MmQtMGIzMC00NWU3LWE5ZjgtMzNiY2FlMzFiNmY5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDEzMDAzNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUyNTJmNzUzYWQ2ZTE4NjEyMTVjYmFmM2Y0MjQ3ZTM0M2EzNzM1ZGQxZjY4NjgwNGQ4Y2ZkYjIwZjc0MmQzYjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.XbmcctzWP8G9JBs-zRV4hZKfH3JjRtMlmJVb_10yHJA)
Additional context
This is an extension of #156 and has the same solution for each of the CRUD views
The text was updated successfully, but these errors were encountered: