Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor surfguard uploads via Admin UI to use staging table #161

Open
mhudson opened this issue Oct 2, 2022 · 0 comments
Open

Refactor surfguard uploads via Admin UI to use staging table #161

mhudson opened this issue Oct 2, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@mhudson
Copy link
Member

mhudson commented Oct 2, 2022

The automated SurfGuard report imports (using code in the swapsea-report-scraper repo) push data into staging tables that are then processed by a console job.

The mechanism using file upload via the Admin console was developed earlier and is less reliable since it processed synchronously.

Solution

Change the Admin Ui so it just uploads CSV files to the newer staging tables, and calls the code to transfer that to the target tables

  • StagingAward.transfer
  • StagingUser.transfer
  • StagingPatrolMember.transfer

It's also desirable to have these transfer methods do a little more logging to indicate # records processed, and from which Club.

@mhudson mhudson added the enhancement New feature or request label Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant