Skip to content

Commit

Permalink
Rename funds.workflow -> funds.workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
theskumar committed Jan 4, 2025
1 parent bbe36b4 commit 7f309b1
Show file tree
Hide file tree
Showing 43 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion hypha/apply/activity/adapters/activity_feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from hypha.apply.activity.models import ALL, APPLICANT, TEAM
from hypha.apply.activity.options import MESSAGES
from hypha.apply.funds.workflow.constants import PHASE_BG_COLORS
from hypha.apply.funds.workflows.constants import PHASE_BG_COLORS
from hypha.apply.projects.utils import (
get_invoice_public_status,
get_invoice_status_display_value,
Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/activity/adapters/emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def extra_kwargs(self, message_type, source, sources, **kwargs):
}

def handle_transition(self, old_phase, source, **kwargs):
from hypha.apply.funds.workflow import PHASES
from hypha.apply.funds.workflows import PHASES

submission = source
# Retrieve status index to see if we are going forward or backward.
Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/api/v1/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from hypha.apply.categories.models import Option
from hypha.apply.funds.models import ApplicationSubmission, FundType, LabType
from hypha.apply.funds.reviewers.services import get_all_reviewers
from hypha.apply.funds.workflow import PHASES
from hypha.apply.funds.workflows import PHASES

from .utils import (
get_round_leads,
Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/api/v1/review/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.core.exceptions import PermissionDenied

from hypha.apply.funds.workflow import INITIAL_STATE
from hypha.apply.funds.workflows import INITIAL_STATE


def review_workflow_actions(request, submission):
Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from hypha.apply.determinations.views import DeterminationCreateOrUpdateView
from hypha.apply.funds.models import ApplicationSubmission, RoundsAndLabs
from hypha.apply.funds.reviewers.services import get_all_reviewers
from hypha.apply.funds.workflow import STATUSES
from hypha.apply.funds.workflows import STATUSES
from hypha.apply.review.models import Review

from .filters import SubmissionsFilter
Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/dashboard/views_partials.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from django.views.decorators.http import require_GET

from hypha.apply.funds.models.submissions import ApplicationSubmission
from hypha.apply.funds.workflow import active_statuses
from hypha.apply.funds.workflows import active_statuses
from hypha.apply.projects.models import Project


Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/determinations/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from wagtail.fields import RichTextField, StreamField

from hypha.apply.funds.models.mixins import AccessFormData
from hypha.apply.funds.workflow.models.stage import Concept, Proposal, Request
from hypha.apply.funds.workflows.models.stage import Concept, Proposal, Request

from .blocks import (
DeterminationBlock,
Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/determinations/options.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.utils.translation import gettext_lazy as _

from hypha.apply.funds.workflow import DETERMINATION_OUTCOMES
from hypha.apply.funds.workflows import DETERMINATION_OUTCOMES

REJECTED = 0
NEEDS_MORE_INFO = 1
Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/determinations/permissions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from hypha.apply.funds.workflow import DETERMINATION_OUTCOMES
from hypha.apply.funds.workflows import DETERMINATION_OUTCOMES

from .utils import determination_actions, transition_from_outcome

Expand Down
4 changes: 2 additions & 2 deletions hypha/apply/determinations/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
from hypha.apply.activity.messaging import MESSAGES, messenger
from hypha.apply.activity.models import Activity
from hypha.apply.funds.models import ApplicationSubmission
from hypha.apply.funds.workflow import DETERMINATION_OUTCOMES
from hypha.apply.funds.workflow.models.stage import Concept
from hypha.apply.funds.workflows import DETERMINATION_OUTCOMES
from hypha.apply.funds.workflows.models.stage import Concept
from hypha.apply.projects.models import Project
from hypha.apply.review.models import Review
from hypha.apply.stream_forms.models import BaseStreamForm
Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/funds/admin_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from wagtail.admin.forms import WagtailAdminModelForm, WagtailAdminPageForm

from .models.submissions import ApplicationSubmission
from .workflow import WORKFLOWS
from .workflows import WORKFLOWS


class WorkflowFormAdminForm(WagtailAdminPageForm):
Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/funds/management/commands/drafts_cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from django.utils import timezone

from hypha.apply.funds.models.submissions import ApplicationSubmission
from hypha.apply.funds.workflow import DRAFT_STATE
from hypha.apply.funds.workflows import DRAFT_STATE


def check_not_negative(value) -> int:
Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/funds/management/commands/migration_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from hypha.apply.categories.models import Category, Option
from hypha.apply.funds.models import ApplicationSubmission, FundType, LabType, Round
from hypha.apply.funds.models.forms import LabBaseForm, RoundBaseForm
from hypha.apply.funds.workflow import INITIAL_STATE
from hypha.apply.funds.workflows import INITIAL_STATE


class MigrationStorage(S3Boto3Storage):
Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/funds/models/applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

from ..admin_forms import RoundBasePageAdminForm, WorkflowFormAdminForm
from ..edit_handlers import ReadOnlyPanel
from ..workflow.constants import OPEN_CALL_PHASES
from ..workflows.constants import OPEN_CALL_PHASES
from .submissions import ApplicationSubmission
from .utils import (
LIMIT_TO_REVIEWERS,
Expand Down
4 changes: 2 additions & 2 deletions hypha/apply/funds/models/submissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
from hypha.apply.users.roles import APPLICANT_GROUP_NAME

from ..blocks import NAMED_BLOCKS, ApplicationCustomFormFieldsBlock
from ..workflow import (
from ..workflows import (
PHASES,
WORKFLOWS,
accepted_statuses,
Expand All @@ -62,7 +62,7 @@
get_review_active_statuses,
review_statuses,
)
from ..workflow.constants import (
from ..workflows.constants import (
COMMUNITY_REVIEW_PHASES,
DETERMINATION_RESPONSE_PHASES,
DRAFT_STATE,
Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/funds/models/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
STAFF_GROUP_NAME,
)

from ..workflow import DRAFT_STATE, WORKFLOWS
from ..workflows import DRAFT_STATE, WORKFLOWS

REVIEW_GROUPS = [
STAFF_GROUP_NAME,
Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/funds/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from hypha.apply.activity.messaging import MESSAGES, messenger
from hypha.apply.activity.models import Activity, Event
from hypha.apply.funds.models.assigned_reviewers import AssignedReviewers
from hypha.apply.funds.workflow import INITIAL_STATE
from hypha.apply.funds.workflows import INITIAL_STATE
from hypha.apply.review.options import DISAGREE, MAYBE


Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/funds/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

from .models import ApplicationSubmission, Round, ScreeningStatus
from .widgets import Select2MultiCheckboxesWidget
from .workflow import STATUSES, get_review_active_statuses
from .workflows import STATUSES, get_review_active_statuses

User = get_user_model()

Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/funds/tests/factories/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
RoundBaseForm,
RoundBaseReviewForm,
)
from hypha.apply.funds.workflow.registry import (
from hypha.apply.funds.workflows.registry import (
ConceptProposal,
Request,
RequestExternal,
Expand Down
4 changes: 2 additions & 2 deletions hypha/apply/funds/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

from hypha.apply.funds.blocks import EmailBlock, FullNameBlock
from hypha.apply.funds.models import ApplicationSubmission, AssignedReviewers, Reminder
from hypha.apply.funds.workflow.constants import DRAFT_STATE
from hypha.apply.funds.workflow.registry import Request
from hypha.apply.funds.workflows.constants import DRAFT_STATE
from hypha.apply.funds.workflows.registry import Request
from hypha.apply.review.options import AGREE, MAYBE, NO
from hypha.apply.review.tests.factories import ReviewFactory, ReviewOpinionFactory
from hypha.apply.users.tests.factories import StaffFactory
Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/funds/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
SealedSubmissionFactory,
)
from hypha.apply.funds.views.submission_detail import SubmissionDetailView
from hypha.apply.funds.workflow import INITIAL_STATE
from hypha.apply.funds.workflows import INITIAL_STATE
from hypha.apply.projects.models import Project
from hypha.apply.projects.tests.factories import ProjectFactory
from hypha.apply.review.tests.factories import ReviewFactory
Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/funds/tests/views/test_submission_delete.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from django.urls import reverse

from hypha.apply.funds.tests.factories.models import ApplicationSubmissionFactory
from hypha.apply.funds.workflow import DRAFT_STATE
from hypha.apply.funds.workflows import DRAFT_STATE
from hypha.apply.users.tests.factories import AdminFactory, ApplicantFactory


Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/funds/views/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from hypha.apply.determinations.views import BatchDeterminationCreateView
from hypha.apply.funds.models.screening import ScreeningStatus
from hypha.apply.funds.utils import export_submissions_to_csv
from hypha.apply.funds.workflow import PHASES, get_action_mapping, review_statuses
from hypha.apply.funds.workflows import PHASES, get_action_mapping, review_statuses
from hypha.apply.search.filters import apply_date_filter
from hypha.apply.search.query_parser import parse_search_query
from hypha.apply.users.decorators import (
Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/funds/views/partials.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
get_statuses_as_params,
status_and_phases_mapping,
)
from ..workflow.constants import PHASES_MAPPING
from ..workflows.constants import PHASES_MAPPING

User = get_user_model()

Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/funds/views/staff_assignments.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
ReviewerRole,
)
from ..tables import StaffAssignmentsTable
from ..workflow import active_statuses
from ..workflows import active_statuses

User = get_user_model()

Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/funds/views/submission_delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from hypha.apply.activity.models import Event

from ..models import ApplicationSubmission
from ..workflow import DRAFT_STATE
from ..workflows.constants import DRAFT_STATE


class SubmissionDeleteView(LoginRequiredMixin, UserPassesTestMixin, DeleteView):
Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/funds/views/submission_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
get_archive_view_groups,
has_permission,
)
from ..workflow import DRAFT_STATE
from ..workflows import DRAFT_STATE

if settings.APPLICATION_TRANSLATIONS_ENABLED:
from hypha.apply.translate.utils import (
Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/funds/views/submission_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
from ..permissions import (
has_permission,
)
from ..workflow.constants import (
from ..workflows.constants import (
DRAFT_STATE,
STAGE_CHANGE_ACTIONS,
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion hypha/apply/review/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
ApplicationSubmissionFactory,
AssignedReviewersFactory,
)
from hypha.apply.funds.workflow import INITIAL_STATE
from hypha.apply.funds.workflows import INITIAL_STATE
from hypha.apply.users.tests.factories import ReviewerFactory, StaffFactory, UserFactory
from hypha.apply.utils.testing.tests import BaseViewTestCase

Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/review/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

from hypha.apply.activity.messaging import MESSAGES, messenger
from hypha.apply.funds.models import ApplicationSubmission, AssignedReviewers
from hypha.apply.funds.workflow import INITIAL_STATE
from hypha.apply.funds.workflows import INITIAL_STATE
from hypha.apply.review.blocks import RecommendationBlock, RecommendationCommentsBlock
from hypha.apply.review.forms import ReviewModelForm, ReviewOpinionForm
from hypha.apply.stream_forms.models import BaseStreamForm
Expand Down

0 comments on commit 7f309b1

Please sign in to comment.