Skip to content

Commit a4c31ed

Browse files
committed
Rename app to hypha.
1 parent 4ec51b8 commit a4c31ed

File tree

211 files changed

+521
-521
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+521
-521
lines changed

Procfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
release: python manage.py migrate --noinput && python manage.py clear_cache --cache=default --cache=wagtailcache
2-
web: gunicorn opentech.wsgi:application --log-file -
2+
web: gunicorn hypha.wsgi:application --log-file -

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Customize all aspects of the process, forms, workflows, review options, and more.
1111
* Automate workflows and integrate with other services (Slack, Mailgun, etc).
1212
* Regularly audited software with many privacy and security features.
13-
* View our [Roadmap](https://github.com/OpenTechFund/opentech.fund/wiki/Roadmap) for upcoming features and enhancements.
13+
* View our [Roadmap](https://github.com/OpenTechFund/hypha/wiki/Roadmap) for upcoming features and enhancements.
1414

1515
*Built with [Django](https://www.djangoproject.com/), [Wagtail](https://wagtail.io/), and [React](https://reactjs.org/)*
1616

SECURITY.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ We take security very seriously at the Open Technology Fund. We welcome any peer
66

77
In order to give the community time to respond and upgrade we strongly urge you report all security issues privately. Please use our [vulnerability disclosure program](https://hackerone.com/open_technology_fund) or particpate in our [bug bounty program](https://hackerone.com/otf) at [HackerOne](https://hackerone.com) to provide details and repro steps and we will respond ASAP. If you prefer not to use Hacker One, email us directly at `[email protected]` with details and repro steps. Security issues *always* take precedence over bug fixes and feature work. We can and do mark releases as "urgent" if they contain serious security fixes.
88

9-
For a list of recent security commits, check [our GitHub commits prefixed with SECURITY](https://github.com/opentechfund/opentech.fund/search?utf8=%E2%9C%93&q=SECURITY&type=Commits).
9+
For a list of recent security commits, check [our GitHub commits prefixed with SECURITY](https://github.com/opentechfund/hypha/search?utf8=%E2%9C%93&q=SECURITY&type=Commits).
1010

1111
### Password Storage
1212

@@ -23,5 +23,5 @@ For more information on the security features within this application, please se
2323
* SSL/HTTPS
2424
* Host header validation
2525
* Session security
26-
* User-uploaded content
26+
* User-uploaded content
2727
* Additional security topics

gulpfile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ var options = {};
1212
// configuration. The "project" root path is where this gulpfile.js is located.
1313
options.rootPath = {
1414
project : __dirname + '/',
15-
app : __dirname + '/opentech/',
16-
theme : __dirname + '/opentech/static_src/'
15+
app : __dirname + '/hypha/',
16+
theme : __dirname + '/hypha/static_src/'
1717
};
1818

1919
options.theme = {

hypha/apply/activity/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
default_app_config = 'opentech.apply.activity.apps.ActivityConfig'
1+
default_app_config = 'hypha.apply.activity.apps.ActivityConfig'

hypha/apply/activity/apps.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
class ActivityConfig(AppConfig):
5-
name = 'opentech.apply.activity'
5+
name = 'hypha.apply.activity'
66

77
def ready(self):
88
from . import signals # NOQA

hypha/apply/activity/management/commands/migrate_comments.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
from django.db import transaction
99
from django.db.utils import IntegrityError
1010

11-
from opentech.apply.activity.models import Activity
12-
from opentech.apply.funds.models import ApplicationSubmission
11+
from hypha.apply.activity.models import Activity
12+
from hypha.apply.funds.models import ApplicationSubmission
1313

1414

1515
class Command(BaseCommand):

hypha/apply/activity/messaging.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ def extra_kwargs(self, message_type, source, sources, **kwargs):
682682
}
683683

684684
def handle_transition(self, old_phase, source, **kwargs):
685-
from opentech.apply.funds.workflow import PHASES
685+
from hypha.apply.funds.workflow import PHASES
686686
submission = source
687687
# Retrive status index to see if we are going forward or backward.
688688
old_index = list(dict(PHASES).keys()).index(old_phase.name)
@@ -743,7 +743,7 @@ def recipients(self, message_type, source, user, **kwargs):
743743
return [partner.email for partner in partners]
744744

745745
if message_type == MESSAGES.SENT_TO_COMPLIANCE:
746-
from opentech.apply.projects.models import ProjectSettings
746+
from hypha.apply.projects.models import ProjectSettings
747747
project_settings = ProjectSettings.objects.first()
748748

749749
if project_settings is None:

hypha/apply/activity/migrations/0026_update_visibility_options.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from django.db import migrations, models
44

5-
from opentech.apply.activity.models import COMMENT, APPLICANT, TEAM, ALL
5+
from hypha.apply.activity.models import COMMENT, APPLICANT, TEAM, ALL
66

77

88
def update_visibility_options(apps, schema_editor):

hypha/apply/activity/migrations/0027_update_visibility_options_2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from django.db import migrations
44

5-
from opentech.apply.activity.models import ACTION, TEAM, ALL
5+
from hypha.apply.activity.models import ACTION, TEAM, ALL
66

77

88
def update_visibility_options(apps, schema_editor):

hypha/apply/activity/migrations/0028_migrate_messages_with_visibility.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from django.db import migrations
55

6-
from opentech.apply.activity.models import ACTION, TEAM, ALL
6+
from hypha.apply.activity.models import ACTION, TEAM, ALL
77

88

99
def forward_visibility_options(apps, schema_editor):

hypha/apply/activity/templatetags/activity_tags.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
from django import template
44

5-
from opentech.apply.determinations.models import Determination
6-
from opentech.apply.projects.models import Contract
7-
from opentech.apply.review.models import Review
5+
from hypha.apply.determinations.models import Determination
6+
from hypha.apply.projects.models import Contract
7+
from hypha.apply.review.models import Review
88

99
from ..models import TEAM, ALL, REVIEWER
1010

hypha/apply/activity/tests/factories.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
import factory
44
from django.utils import timezone
55

6-
from opentech.apply.activity.models import Activity, Event, TEAM, Message, MESSAGES, REVIEWER
7-
from opentech.apply.funds.tests.factories import ApplicationSubmissionFactory
8-
from opentech.apply.users.tests.factories import UserFactory
6+
from hypha.apply.activity.models import Activity, Event, TEAM, Message, MESSAGES, REVIEWER
7+
from hypha.apply.funds.tests.factories import ApplicationSubmissionFactory
8+
from hypha.apply.users.tests.factories import UserFactory
99

1010

1111
class CommentFactory(factory.DjangoModelFactory):

hypha/apply/activity/tests/test_messaging.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@
99
from django.test import TestCase, override_settings
1010
from django.contrib.messages import get_messages
1111

12-
from opentech.apply.utils.testing import make_request
13-
from opentech.apply.funds.tests.factories import (
12+
from hypha.apply.utils.testing import make_request
13+
from hypha.apply.funds.tests.factories import (
1414
ApplicationSubmissionFactory,
1515
AssignedReviewersFactory,
1616
AssignedWithRoleReviewersFactory,
1717
)
18-
from opentech.apply.review.tests.factories import ReviewFactory
19-
from opentech.apply.users.tests.factories import (
18+
from hypha.apply.review.tests.factories import ReviewFactory
19+
from hypha.apply.users.tests.factories import (
2020
ApplicantFactory,
2121
ReviewerFactory,
2222
StaffFactory,
2323
UserFactory
2424
)
25-
from opentech.apply.projects.tests.factories import (
25+
from hypha.apply.projects.tests.factories import (
2626
ProjectFactory,
2727
PaymentRequestFactory
2828
)
@@ -58,7 +58,7 @@ def log_message(self, message, recipient, event, status):
5858
pass
5959

6060

61-
@override_settings(ROOT_URLCONF='opentech.apply.urls')
61+
@override_settings(ROOT_URLCONF='hypha.apply.urls')
6262
class AdapterMixin(TestCase):
6363
adapter = None
6464
source_factory = None

hypha/apply/activity/tests/test_tasks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
class TestSendEmail(TestCase):
11-
@patch('opentech.apply.activity.tasks.EmailMessage', autospec=True)
11+
@patch('hypha.apply.activity.tasks.EmailMessage', autospec=True)
1212
def test_args_passed_to_django(self, email_mock):
1313
kwargs = {
1414
'subject': 'subject',

hypha/apply/activity/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from django.views.generic import CreateView
22
from django.utils import timezone
33

4-
from opentech.apply.utils.views import DelegatedViewMixin
4+
from hypha.apply.utils.views import DelegatedViewMixin
55

66
from .forms import CommentForm
77
from .messaging import messenger, MESSAGES

hypha/apply/api/v1/serializers.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
from django_bleach.templatetags.bleach_tags import bleach_value
66
from rest_framework import serializers
77

8-
from opentech.apply.activity.models import Activity
9-
from opentech.apply.determinations.views import DeterminationCreateOrUpdateView
10-
from opentech.apply.funds.models import ApplicationSubmission, RoundsAndLabs
11-
from opentech.apply.review.models import Review, ReviewOpinion
12-
from opentech.apply.review.options import RECOMMENDATION_CHOICES
13-
from opentech.apply.users.groups import PARTNER_GROUP_NAME, STAFF_GROUP_NAME
8+
from hypha.apply.activity.models import Activity
9+
from hypha.apply.determinations.views import DeterminationCreateOrUpdateView
10+
from hypha.apply.funds.models import ApplicationSubmission, RoundsAndLabs
11+
from hypha.apply.review.models import Review, ReviewOpinion
12+
from hypha.apply.review.options import RECOMMENDATION_CHOICES
13+
from hypha.apply.users.groups import PARTNER_GROUP_NAME, STAFF_GROUP_NAME
1414

1515
User = get_user_model()
1616

hypha/apply/api/v1/tests/test_serializers.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from django.test import override_settings, TestCase
22

3-
from opentech.apply.funds.tests.factories import ApplicationSubmissionFactory
4-
from opentech.apply.review.tests.factories import ReviewFactory
3+
from hypha.apply.funds.tests.factories import ApplicationSubmissionFactory
4+
from hypha.apply.review.tests.factories import ReviewFactory
55

66
from ..serializers import ReviewSummarySerializer
77

88

9-
@override_settings(ROOT_URLCONF='opentech.apply.urls')
9+
@override_settings(ROOT_URLCONF='hypha.apply.urls')
1010
class TestReviewSummarySerializer(TestCase):
1111
def test_handles_no_reviews(self):
1212
submission = ApplicationSubmissionFactory()

hypha/apply/api/v1/tests/test_views.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
from django.test import TestCase, override_settings
22
from django.urls import reverse_lazy
33

4-
from opentech.apply.activity.models import Activity, APPLICANT, ALL
5-
from opentech.apply.activity.tests.factories import CommentFactory
4+
from hypha.apply.activity.models import Activity, APPLICANT, ALL
5+
from hypha.apply.activity.tests.factories import CommentFactory
66

7-
from opentech.apply.users.tests.factories import UserFactory
7+
from hypha.apply.users.tests.factories import UserFactory
88

99

10-
@override_settings(ROOT_URLCONF='opentech.apply.urls')
10+
@override_settings(ROOT_URLCONF='hypha.apply.urls')
1111
class TestCommentEdit(TestCase):
1212
def post_to_edit(self, comment_pk, message='my message'):
1313
return self.client.post(

hypha/apply/api/v1/views.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
from rest_framework_api_key.permissions import HasAPIKey
1313
from django_filters import rest_framework as filters
1414

15-
from opentech.apply.funds.models import ApplicationSubmission, RoundsAndLabs
16-
from opentech.apply.funds.workflow import PHASES
17-
18-
from opentech.apply.activity.models import Activity, COMMENT
19-
from opentech.apply.activity.messaging import messenger, MESSAGES
20-
from opentech.apply.determinations.views import DeterminationCreateOrUpdateView
21-
from opentech.apply.review.models import Review
22-
from opentech.apply.funds.models import FundType, LabType
15+
from hypha.apply.funds.models import ApplicationSubmission, RoundsAndLabs
16+
from hypha.apply.funds.workflow import PHASES
17+
18+
from hypha.apply.activity.models import Activity, COMMENT
19+
from hypha.apply.activity.messaging import messenger, MESSAGES
20+
from hypha.apply.determinations.views import DeterminationCreateOrUpdateView
21+
from hypha.apply.review.models import Review
22+
from hypha.apply.funds.models import FundType, LabType
2323

2424
from .pagination import StandardResultsSetPagination
2525
from .permissions import IsApplyStaffUser, IsAuthor

hypha/apply/categories/blocks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from wagtail.core.blocks import BooleanBlock, CharBlock, ChooserBlock, TextBlock
66
from wagtail.core.utils import resolve_model_string
77

8-
from opentech.apply.stream_forms.blocks import OptionalFormFieldBlock
8+
from hypha.apply.stream_forms.blocks import OptionalFormFieldBlock
99
from django_select2.forms import Select2MultipleWidget
1010

1111

hypha/apply/categories/management/commands/seed_categories.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from django.core.management.base import BaseCommand
22
from django.db import transaction
33

4-
from opentech.apply.categories.models import Category, Option
5-
from opentech.apply.categories.categories_seed import CATEGORIES
4+
from hypha.apply.categories.models import Category, Option
5+
from hypha.apply.categories.categories_seed import CATEGORIES
66

77

88
class Command(BaseCommand):

hypha/apply/categories/tests/test_blocks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from django import forms
22
from django.test import TestCase
33

4-
from opentech.apply.categories.blocks import CategoryQuestionBlock
4+
from hypha.apply.categories.blocks import CategoryQuestionBlock
55

66
from .factories import CategoryFactory, OptionFactory
77

hypha/apply/dashboard/tests/test_views.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
from opentech.apply.funds.tests.factories import (
1+
from hypha.apply.funds.tests.factories import (
22
ApplicationSubmissionFactory,
33
ApplicationRevisionFactory,
44
InvitedToProposalFactory,
55
)
6-
from opentech.apply.projects.models import (
6+
from hypha.apply.projects.models import (
77
CHANGES_REQUESTED,
88
COMMITTED,
99
DECLINED,
1010
PAID,
1111
SUBMITTED,
1212
UNDER_REVIEW,
1313
)
14-
from opentech.apply.projects.tests.factories import (
14+
from hypha.apply.projects.tests.factories import (
1515
PaymentRequestFactory,
1616
ProjectFactory
1717
)
18-
from opentech.apply.review.tests.factories import ReviewFactory, ReviewOpinionFactory
19-
from opentech.apply.users.groups import APPROVER_GROUP_NAME
20-
from opentech.apply.users.tests.factories import (
18+
from hypha.apply.review.tests.factories import ReviewFactory, ReviewOpinionFactory
19+
from hypha.apply.users.groups import APPROVER_GROUP_NAME
20+
from hypha.apply.users.tests.factories import (
2121
ApplicantFactory,
2222
GroupFactory,
2323
ReviewerFactory,
2424
StaffFactory
2525
)
26-
from opentech.apply.utils.testing.tests import BaseViewTestCase
26+
from hypha.apply.utils.testing.tests import BaseViewTestCase
2727

2828

2929
class TestApplicantDashboard(BaseViewTestCase):

hypha/apply/dashboard/views.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from django.views.generic import TemplateView
55
from django_tables2.views import MultiTableMixin
66

7-
from opentech.apply.funds.models import ApplicationSubmission, RoundsAndLabs
8-
from opentech.apply.funds.tables import (
7+
from hypha.apply.funds.models import ApplicationSubmission, RoundsAndLabs
8+
from hypha.apply.funds.tables import (
99
ReviewerSubmissionsTable,
1010
SubmissionFilterAndSearch,
1111
SubmissionReviewerFilterAndSearch,
@@ -14,16 +14,16 @@
1414
SummarySubmissionsTableWithRole,
1515
review_filter_for_user
1616
)
17-
from opentech.apply.projects.filters import ProjectListFilter
18-
from opentech.apply.projects.models import (
17+
from hypha.apply.projects.filters import ProjectListFilter
18+
from hypha.apply.projects.models import (
1919
PaymentRequest,
2020
Project
2121
)
22-
from opentech.apply.projects.tables import (
22+
from hypha.apply.projects.tables import (
2323
PaymentRequestsDashboardTable,
2424
ProjectsDashboardTable
2525
)
26-
from opentech.apply.utils.views import ViewDispatcher
26+
from hypha.apply.utils.views import ViewDispatcher
2727

2828

2929
class AdminDashboardView(TemplateView):

hypha/apply/dashboard/wagtail_hooks.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
from wagtail.core import hooks
66
from wagtail.admin.menu import MenuItem
77

8-
from opentech.apply.home.models import ApplyHomePage
8+
from hypha.apply.home.models import ApplyHomePage
99

1010

1111
@hooks.register('register_admin_menu_item')
1212
def register_dashboard_menu_item():
1313
apply_home = ApplyHomePage.objects.first()
1414
return MenuItem(
1515
'Apply Dashboard',
16-
urljoin(apply_home.url, reverse('dashboard:dashboard', 'opentech.apply.urls')),
16+
urljoin(apply_home.url, reverse('dashboard:dashboard', 'hypha.apply.urls')),
1717
classnames='icon icon-arrow-left',
1818
order=100000,
1919
)

hypha/apply/determinations/forms.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
from django.contrib.auth import get_user_model
33
from django.core.exceptions import NON_FIELD_ERRORS
44

5-
from opentech.apply.utils.fields import RichTextField
6-
from opentech.apply.funds.models import ApplicationSubmission
5+
from hypha.apply.utils.fields import RichTextField
6+
from hypha.apply.funds.models import ApplicationSubmission
77

88
from .models import (
99
Determination,

0 commit comments

Comments
 (0)