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

Add external reference to export of attendees' data #1422

Closed
SilentResonance opened this issue Nov 7, 2024 · 2 comments · Fixed by #1429
Closed

Add external reference to export of attendees' data #1422

SilentResonance opened this issue Nov 7, 2024 · 2 comments · Fixed by #1429
Labels
good first issue hack-commit-push https://hack-commit-pu.sh/

Comments

@SilentResonance
Copy link

Is your feature request related to a problem? Please describe.
I'm importing from an external questionaire software via CSV. The questionaire creates a reference column, which is used at import to alf.io. After the check-in is finished we need to have the given reference at the export to match the persons for out tournament software.

Describe the solution you'd like
While looking through the code I found the part, where the query is created in service.js and downloadAllTicketsCSV() in EventApiController.java. And in there, the exportLines() function creates the field list to be exported.
Furthermore, I found out, that a reference column is specifically added, with the attendee CSV import.

What I would like to have is a checkbox to tick, when a reference column exists and its contents exported to CSV

Describe alternatives you've considered
Implementing it myself, but I find it hard how to setup a development environment for alf.io which directly replaces the docker instance.
I want to keep it dockerized instead of native installation in order to keep my OS clean.
Any hints and help are appreciated.

Additional context

  • Docker container: alfio/alf.io:latest
  • Alf.io version: v.2.0-M5
@cbellone
Copy link
Member

[hack-commit-push] note: to run a database locally with Docker:
docker run -d --name alfio-main-postgres -p 5432:5432 -e POSTGRES_PASSWORD=password -e POSTGRES_DB=alfio --restart unless-stopped postgres

@cbellone
Copy link
Member

[hack-commit-push]: Here's a simulated import file
simulated-attendees.csv

it's currently missing the "external reference" value in the column, and it assumes that your event has the following "additional data to collect" defined:

  • company
  • country

dimitrisli added a commit to dimitrisli/alf.io that referenced this issue Nov 23, 2024
dimitrisli added a commit to dimitrisli/alf.io that referenced this issue Nov 23, 2024
dimitrisli added a commit to dimitrisli/alf.io that referenced this issue Nov 24, 2024
dimitrisli added a commit to dimitrisli/alf.io that referenced this issue Nov 24, 2024
@cbellone cbellone added the hack-commit-push https://hack-commit-pu.sh/ label Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue hack-commit-push https://hack-commit-pu.sh/
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants