openlibhums / openlibhums/janeway

Tweaking Maintenance Mode

Open
#2,239 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Infrastructure new feature
Dominant language
Python
Stars
238
Forks
97
Avg merge
9d 1h
Merged PRs (30d)
8

Description

One of our journal editor team wants to enable Maintenance Mode so they can prepare the site for their oncoming launch. We've already created a journal in our press for them. In 1.4 editors will no longer be able to activate maintenance mode to not lock them out of their journal.

The editors have already experienced the lock out (I have reversed this) but would still like to be able to activate Maintenance Mode to work on their journal before the launch. You can consider it as some form of "closed preview" or preparation for the launch. Right now this is not possible because only admins and superusers can access a journal under maintenance.

Is it possible to tweak the permission so editors can enable it and still access the site?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the maintenance-mode permission checks and the rules that allow admins and superusers to access a journal under maintenance. The work is done when editors can enable maintenance mode for their journal and continue accessing it, with tests covering that access behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authorization, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.