Skip to content

Commit

Permalink
Pull changes after purging
Browse files Browse the repository at this point in the history
  • Loading branch information
rehoumir committed Jul 23, 2024
1 parent b82f9a2 commit dbd39fa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion project_rossum_deploy/commands/purge/purge.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import click
from rossum_api import ElisAPIClient

from project_rossum_deploy.commands.download.download import download_project
from project_rossum_deploy.commands.migrate_mapping import migrate_mapping
from project_rossum_deploy.commands.purge.delete_objects import (
delete_all_objects_with_ids,
Expand Down Expand Up @@ -56,9 +57,15 @@ async def purge_project(
else:
await purge_destination(destination=destination)

await download_project(
destination=destination
if destination != settings.UNUSED_SCHEMAS
else settings.BOTH_DESTINATIONS,
)

print(
Panel(
f"{settings.PURGE_COMMAND_NAME} finished. Please run {settings.DOWNLOAD_COMMAND_NAME} before making further changes since local and remote are now out of sync."
f"{settings.PURGE_COMMAND_NAME} finished and changes were {settings.DOWNLOAD_COMMAND_NAME}ed."
)
)

Expand Down

0 comments on commit dbd39fa

Please sign in to comment.