onboarding_steps: Rename 'hotspots' files to 'onboarding_steps'.

This commit is contained in:
Prakhar Pratyush 2024-05-10 19:47:04 +05:30 committed by Tim Abbott
parent bf2360bcf2
commit 643998fcfa
8 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
from zerver.lib.hotspots import get_next_onboarding_steps from zerver.lib.onboarding_steps import get_next_onboarding_steps
from zerver.models import OnboardingStep, UserProfile from zerver.models import OnboardingStep, UserProfile
from zerver.tornado.django_api import send_event from zerver.tornado.django_api import send_event

View File

@ -6,8 +6,8 @@ import orjson
from django.contrib.auth.models import UserManager from django.contrib.auth.models import UserManager
from django.utils.timezone import now as timezone_now from django.utils.timezone import now as timezone_now
from zerver.lib.hotspots import copy_onboarding_steps
from zerver.lib.i18n import get_default_language_for_new_user from zerver.lib.i18n import get_default_language_for_new_user
from zerver.lib.onboarding_steps import copy_onboarding_steps
from zerver.lib.timezone import canonicalize_timezone from zerver.lib.timezone import canonicalize_timezone
from zerver.lib.upload import copy_avatar from zerver.lib.upload import copy_avatar
from zerver.models import ( from zerver.models import (

View File

@ -20,7 +20,6 @@ from zerver.lib.compatibility import is_outdated_server
from zerver.lib.default_streams import get_default_streams_for_realm_as_dicts from zerver.lib.default_streams import get_default_streams_for_realm_as_dicts
from zerver.lib.exceptions import JsonableError from zerver.lib.exceptions import JsonableError
from zerver.lib.external_accounts import get_default_external_accounts from zerver.lib.external_accounts import get_default_external_accounts
from zerver.lib.hotspots import get_next_onboarding_steps
from zerver.lib.integrations import ( from zerver.lib.integrations import (
EMBEDDED_BOTS, EMBEDDED_BOTS,
WEBHOOK_INTEGRATIONS, WEBHOOK_INTEGRATIONS,
@ -40,6 +39,7 @@ from zerver.lib.message import (
from zerver.lib.muted_users import get_user_mutes from zerver.lib.muted_users import get_user_mutes
from zerver.lib.narrow_helpers import NarrowTerm, read_stop_words from zerver.lib.narrow_helpers import NarrowTerm, read_stop_words
from zerver.lib.narrow_predicate import check_narrow_for_events from zerver.lib.narrow_predicate import check_narrow_for_events
from zerver.lib.onboarding_steps import get_next_onboarding_steps
from zerver.lib.presence import get_presence_for_user, get_presences_for_realm from zerver.lib.presence import get_presence_for_user, get_presences_for_realm
from zerver.lib.realm_icon import realm_icon_url from zerver.lib.realm_icon import realm_icon_url
from zerver.lib.realm_logo import get_realm_logo_source, get_realm_logo_url from zerver.lib.realm_logo import get_realm_logo_source, get_realm_logo_url

View File

@ -43,7 +43,6 @@ from zerver.actions.default_streams import (
do_remove_streams_from_default_stream_group, do_remove_streams_from_default_stream_group,
lookup_default_stream_groups, lookup_default_stream_groups,
) )
from zerver.actions.hotspots import do_mark_onboarding_step_as_read
from zerver.actions.invites import ( from zerver.actions.invites import (
do_create_multiuse_invite_link, do_create_multiuse_invite_link,
do_invite_users, do_invite_users,
@ -54,6 +53,7 @@ from zerver.actions.message_delete import do_delete_messages
from zerver.actions.message_edit import do_update_embedded_data, do_update_message from zerver.actions.message_edit import do_update_embedded_data, do_update_message
from zerver.actions.message_flags import do_update_message_flags from zerver.actions.message_flags import do_update_message_flags
from zerver.actions.muted_users import do_mute_user, do_unmute_user from zerver.actions.muted_users import do_mute_user, do_unmute_user
from zerver.actions.onboarding_steps import do_mark_onboarding_step_as_read
from zerver.actions.presence import do_update_user_presence from zerver.actions.presence import do_update_user_presence
from zerver.actions.reactions import do_add_reaction, do_remove_reaction from zerver.actions.reactions import do_add_reaction, do_remove_reaction
from zerver.actions.realm_domains import ( from zerver.actions.realm_domains import (

View File

@ -1,8 +1,8 @@
from typing_extensions import override from typing_extensions import override
from zerver.actions.create_user import do_create_user from zerver.actions.create_user import do_create_user
from zerver.actions.hotspots import do_mark_onboarding_step_as_read from zerver.actions.onboarding_steps import do_mark_onboarding_step_as_read
from zerver.lib.hotspots import ONE_TIME_NOTICES, get_next_onboarding_steps from zerver.lib.onboarding_steps import ONE_TIME_NOTICES, get_next_onboarding_steps
from zerver.lib.test_classes import ZulipTestCase from zerver.lib.test_classes import ZulipTestCase
from zerver.models import OnboardingStep from zerver.models import OnboardingStep
from zerver.models.realms import get_realm from zerver.models.realms import get_realm

View File

@ -1,10 +1,10 @@
from django.http import HttpRequest, HttpResponse from django.http import HttpRequest, HttpResponse
from django.utils.translation import gettext as _ from django.utils.translation import gettext as _
from zerver.actions.hotspots import do_mark_onboarding_step_as_read from zerver.actions.onboarding_steps import do_mark_onboarding_step_as_read
from zerver.decorator import human_users_only from zerver.decorator import human_users_only
from zerver.lib.exceptions import JsonableError from zerver.lib.exceptions import JsonableError
from zerver.lib.hotspots import ALL_ONBOARDING_STEPS from zerver.lib.onboarding_steps import ALL_ONBOARDING_STEPS
from zerver.lib.request import REQ, has_request_variables from zerver.lib.request import REQ, has_request_variables
from zerver.lib.response import json_success from zerver.lib.response import json_success
from zerver.models import UserProfile from zerver.models import UserProfile

View File

@ -62,7 +62,6 @@ from zerver.views.email_mirror import email_mirror_message
from zerver.views.events_register import events_register_backend from zerver.views.events_register import events_register_backend
from zerver.views.health import health from zerver.views.health import health
from zerver.views.home import accounts_accept_terms, desktop_home, home from zerver.views.home import accounts_accept_terms, desktop_home, home
from zerver.views.hotspots import mark_onboarding_step_as_read
from zerver.views.invite import ( from zerver.views.invite import (
generate_multiuse_invite_backend, generate_multiuse_invite_backend,
get_user_invites, get_user_invites,
@ -87,6 +86,7 @@ from zerver.views.message_flags import (
) )
from zerver.views.message_send import render_message_backend, send_message_backend, zcommand_backend from zerver.views.message_send import render_message_backend, send_message_backend, zcommand_backend
from zerver.views.muted_users import mute_user, unmute_user from zerver.views.muted_users import mute_user, unmute_user
from zerver.views.onboarding_steps import mark_onboarding_step_as_read
from zerver.views.presence import ( from zerver.views.presence import (
get_presence_backend, get_presence_backend,
get_statuses_for_realm, get_statuses_for_realm,