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

Feature: Add maintenance mode #281

Merged
merged 4 commits into from
Sep 5, 2023
Merged

Feature: Add maintenance mode #281

merged 4 commits into from
Sep 5, 2023

Conversation

ezkat
Copy link
Collaborator

@ezkat ezkat commented Sep 1, 2023

Feature: Add maintenance mode

Disables reservation creation during maintenance

Trello card


Breakdown:

Ref. files tab for detailed changes

Maintenance mode

  1. resources/admin/__init__.py

    • Add new inline to maintenance message to enable maintenance mode
  2. resources/models/resource.py

    • Add maintenance mode model
  3. resources/api/resource.py

    • Disable some resource fields during maintenance mode

@ezkat ezkat requested a review from SanttuA September 1, 2023 09:55
@codecov
Copy link

codecov bot commented Sep 4, 2023

Codecov Report

Patch coverage: 90.06% and project coverage change: +0.08% 🎉

Comparison is base (6c6969a) 76.52% compared to head (4156245) 76.60%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #281      +/-   ##
===========================================
+ Coverage    76.52%   76.60%   +0.08%     
===========================================
  Files          486      496      +10     
  Lines        26440    26544     +104     
  Branches      2700     2704       +4     
===========================================
+ Hits         20232    20333     +101     
- Misses        5683     5686       +3     
  Partials       525      525              
Files Changed Coverage Δ
resources/api/__init__.py 100.00% <ø> (ø)
resources/models/__init__.py 100.00% <ø> (ø)
resources/models/resource.py 79.45% <ø> (+0.04%) ⬆️
resources/translation.py 100.00% <ø> (ø)
respa/settings.py 77.58% <ø> (ø)
maintenance/admin.py 77.14% <77.14%> (ø)
maintenance/models.py 82.50% <82.50%> (ø)
maintenance/api/__init__.py 100.00% <100.00%> (ø)
maintenance/api/announcements.py 100.00% <100.00%> (ø)
maintenance/apps.py 100.00% <100.00%> (ø)
... and 13 more

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ezkat ezkat merged commit a59509f into develop Sep 5, 2023
7 checks passed
@ezkat ezkat deleted the feature/maintenance-mode branch February 23, 2024 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants