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

Customise import for DurHack DevPost and location strings #18

Merged
merged 7 commits into from
Oct 26, 2024

Conversation

tameTNT
Copy link
Member

@tameTNT tameTNT commented Oct 25, 2024

Closes #9

Adapts the CSV import functionality to allow for a new Location field (vs. the original auto-generated TableNumber). The question for 'what is your table?' should be reordered on the imported devpost CSV so that it is the 15th column (index 14, column O in Excel) that contains the location info of a team (e.g. 14.3 of whatever logistics decides - the field is an unvalidated string so anything goes at the moment).

After testing last year's DevPost CSV, this PR also addresses long project names overflowing from their containers on the judging page and the admin dashboard. That was fun to work out 🙂.

Still working on allowing locations to be edited on the admin side.

The CSV import now supports a 15th column (index 14, column O in Excel)
with the location of a team (e.g. 14.3).
String is flexible for any format that logistics chooses.
This was used when table numbers were assigned automatically based on
import order and is no longer needed now that location has to be
specified.
Change previous number type to string in line with backend.
Involved stabbing me repeatedly with frontend flex-box shaped knives.
But it works now I think 😀
(in Chrome at least)
The incremental table number concept no longer exists
so this can be removed.
@tameTNT tameTNT self-assigned this Oct 25, 2024
NB: uses new YesNoResponse type from handle-early-ranking-end branch.
@tameTNT tameTNT added the enhancement New feature or request label Oct 25, 2024
@tameTNT tameTNT changed the title Customise import for DurHack DevPost and location string Customise import for DurHack DevPost and location strings Oct 26, 2024
@tameTNT tameTNT merged commit 26d89d9 into main Oct 26, 2024
@tameTNT tameTNT deleted the data-importing branch October 26, 2024 09:22
@tameTNT
Copy link
Member Author

tameTNT commented Oct 26, 2024

Note that the format given here is no longer accurate.

See this line in csv.go for the most up to date import order (index 14 still equals column O in Excel):

// 14. !!Megateam/Guild - location (part 1)

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

Successfully merging this pull request may close these issues.

Ability to specify table numbers on project addition (inc. CSV import)
1 participant