Skip to content

Conversation

@richpryce
Copy link
Contributor

@richpryce richpryce commented Oct 23, 2024

This PR adds functionality to restore completed projects from deep archive storage.

Changes

  • Added a restore button (icon) that appears for completed projects
  • Implemented permission checking to determine if users can directly restore or need to request approval
  • Added a dialog showing project statistics (file count, size, costs)
  • For authorized users:
    • Shows cost estimates for both Bulk and Standard retrieval options
    • Allows direct restoration with selected retrieval type
  • For unauthorized users:
    • Shows project statistics
    • Allows submitting restore requests that notify admins

Technical Details

  • New endpoints used:
    • POST /project-restore/permissions - Checks user restore permissions
    • POST /project-restore/stats - Gets project statistics
    • POST /project-restore/notify - Sends restore request email
    • POST /project-restore/restore - Initiates project restoration

Tested on Dev system

  • Verify restore button appears only for completed projects
  • Test permissions for both admin and regular users
  • Verify statistics display correctly
  • Test notification system for unauthorized users
  • Verify direct restore process for authorized users
  • Check error handling and user feedback

@github-actions
Copy link

github-actions bot commented Oct 23, 2024

Unit Test Results

185 tests  ±0   185 ✔️ ±0   46s ⏱️ ±0s
  52 suites ±0       0 💤 ±0 
  52 files   ±0       0 ±0 

Results for commit 453b833. ± Comparison against base commit f780e02.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

This was published to a Docker image at AWS_ACCOUNT_ID.dkr.ecr.AWS_REGION.amazonaws.com/pluto-core:1478

@github-actions
Copy link

This was published to a Docker image at AWS_ACCOUNT_ID.dkr.ecr.AWS_REGION.amazonaws.com/pluto-core:1479

@github-actions
Copy link

This was published to a Docker image at AWS_ACCOUNT_ID.dkr.ecr.AWS_REGION.amazonaws.com/pluto-core:1480

@github-actions
Copy link

This was published to a Docker image at AWS_ACCOUNT_ID.dkr.ecr.AWS_REGION.amazonaws.com/pluto-core:1481

@github-actions
Copy link

github-actions bot commented Nov 4, 2024

This was published to a Docker image at AWS_ACCOUNT_ID.dkr.ecr.AWS_REGION.amazonaws.com/pluto-core:1482

@github-actions
Copy link

github-actions bot commented Nov 5, 2024

This was published to a Docker image at AWS_ACCOUNT_ID.dkr.ecr.AWS_REGION.amazonaws.com/pluto-core:1483

@github-actions
Copy link

github-actions bot commented Nov 5, 2024

This was published to a Docker image at AWS_ACCOUNT_ID.dkr.ecr.AWS_REGION.amazonaws.com/pluto-core:1484

@github-actions
Copy link

github-actions bot commented Nov 6, 2024

This was published to a Docker image at AWS_ACCOUNT_ID.dkr.ecr.AWS_REGION.amazonaws.com/pluto-core:1485

@github-actions
Copy link

github-actions bot commented Nov 6, 2024

This was published to a Docker image at AWS_ACCOUNT_ID.dkr.ecr.AWS_REGION.amazonaws.com/pluto-core:1486

@github-actions
Copy link

This was published to a Docker image at AWS_ACCOUNT_ID.dkr.ecr.AWS_REGION.amazonaws.com/pluto-core:1488

@github-actions
Copy link

This was published to a Docker image at AWS_ACCOUNT_ID.dkr.ecr.AWS_REGION.amazonaws.com/pluto-core:1489

@richpryce richpryce force-pushed the rp/project-restore-b branch from daf51af to 8be99ff Compare January 15, 2025 14:33
@github-actions
Copy link

This was published to a Docker image at AWS_ACCOUNT_ID.dkr.ecr.AWS_REGION.amazonaws.com/pluto-core:1525

@github-actions
Copy link

This was published to a Docker image at AWS_ACCOUNT_ID.dkr.ecr.AWS_REGION.amazonaws.com/pluto-core:1526

@github-actions
Copy link

This was published to a Docker image at AWS_ACCOUNT_ID.dkr.ecr.AWS_REGION.amazonaws.com/pluto-core:1533

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants