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

Make demo repos usable when ALLOW_WIP is False #2

Merged
merged 1 commit into from
Sep 19, 2022

Conversation

skieffer
Copy link
Member

@skieffer skieffer commented Sep 19, 2022

Fixes #1

There were several issues:

  • RepoLoader
    • Was calling self.check_wip_mode() even for demo repos, which it should not do.
    • Needed the demo username to be available in a simulated session during async processing.
  • SourceLoader
    • Had a redundant self.confirm(), which we now remove entirely. The self.check_permissions()
      method already performs exactly the required check.
  • WriteHandler
    • Like the RepoLoader, needed the demo username to be available in a simulated session
      during async processing.

As part of this fix, we now provide the facility to set a simulated session for async processing.

There were several issues:

* RepoLoader
  - Was calling `self.check_wip_mode()` even for demo repos, which it should not do.
  - Needed the demo username to be available in a simulated `session` during async processing.
* SourceLoader
  - Had a redundant `self.confirm()`, which we now remove entirely. The `self.check_permissions()`
    method already performs exactly the required check.
* WriteHandler
  - Like the `RepoLoader`, needed the demo username to be available in a simulated `session`
    during async processing.

As part of this fix, we now provide the facility to set a simulated session for async processing.
@skieffer skieffer merged commit db220a9 into proofscape:main Sep 19, 2022
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.

Demo repos not usable when ALLOW_WIP is False
1 participant