Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix linter issues, revert user survey
Browse files Browse the repository at this point in the history
ifoukarakis committed Aug 19, 2024
1 parent 173e9de commit f248c58
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/utils/packets/test_loaders.py
Original file line number Diff line number Diff line change
@@ -289,7 +289,7 @@ def test_load_support_packet_full():
status='success',
progress=0,
data={
'last_done': '{"current_table":"ChannelMembers","last_team_id":"crro7gj13bdzfjm4rmm6ept6sa","last_channel_id":"mpmdxijsftdodkzbehncatthcr","last_user":"wg94o7yd4jyxjbxoihettwgmah"}',
'last_done': '{"current_table":"ChannelMembers","last_team_id":"crro7gj13bdzfjm4rmm6ept6sa","last_channel_id":"mpmdxijsftdodkzbehncatthcr","last_user":"wg94o7yd4jyxjbxoihettwgmah"}', # noqa: E501
'migration_key': 'migration_advanced_permissions_phase_2',
},
)
14 changes: 13 additions & 1 deletion utils/packets/__main__.py
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
import click

from utils.helpers import initialize_cli_logging
from utils.packets.service import ingest_survey_packet, ingest_support_package
from utils.packets.service import ingest_support_package, ingest_survey_packet

initialize_cli_logging(logging.INFO, 'stderr')

@@ -16,6 +16,18 @@ def packets() -> None:
pass


@packets.command()
@click.argument('input', type=click.Path(exists=True, dir_okay=False, readable=True, resolve_path=True))
def user_survey(
input: click.Path,
) -> None:
"""
Ingest a user survey packet.
:param input: The zip file with the user survey packet data.
"""
ingest_survey_packet(input)


@packets.command()
@click.argument('input', type=click.Path(exists=True, dir_okay=False, readable=True, resolve_path=True))
def support_v1(
2 changes: 1 addition & 1 deletion utils/packets/service.py
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@

from click import ClickException

from utils.packets.loaders import UserSurveyFixedColumns, load_user_survey_package, load_support_package_file
from utils.packets.loaders import UserSurveyFixedColumns, load_support_package_file, load_user_survey_package

logger = getLogger(__name__)

0 comments on commit f248c58

Please sign in to comment.