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

Implement a Read Only Flag to prevent any write operations #164

Closed
dstufft opened this issue Nov 17, 2013 · 3 comments
Closed

Implement a Read Only Flag to prevent any write operations #164

dstufft opened this issue Nov 17, 2013 · 3 comments
Assignees
Labels
admin Features needed for the Admin UI (people running the site)

Comments

@dstufft
Copy link
Member

dstufft commented Nov 17, 2013

There are times when we need to prevent any state modification on pypi.python.org but we do not need to prevent reading from the database or other storage areas. It would be great if we could prevent all write operations using a toggle somehow.

@ewdurbin
Copy link
Member

A big red banner across the top of the web UI noting "Maintenance Mode" with a description of what that means would be a nice addition too.

This was referenced Aug 8, 2017
@brainwane brainwane added the admin Features needed for the Admin UI (people running the site) label Feb 21, 2018
@di
Copy link
Member

di commented Mar 21, 2018

@dstufft Any ideas about where would be the best place to short-circuit this? Perhaps a @db.listens_for(db.Session, "before_commit") or something to abort the commit?

@dstufft
Copy link
Member Author

dstufft commented Mar 21, 2018

request.tm.doom() should allow the request to continue, but abort it at the last minute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin Features needed for the Admin UI (people running the site)
Projects
None yet
Development

No branches or pull requests

4 participants