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

endYear column missing in database export #2593

Open
SAuroux opened this issue Feb 21, 2018 · 6 comments
Open

endYear column missing in database export #2593

SAuroux opened this issue Feb 21, 2018 · 6 comments
Labels
AREA: documentation could-be-quick META: good first issue Small/easy change which is a good introduction to working in the WCA repo PRIORITY: low-priority A step above backlog - nice to have, but not essential to work on. TECH: database This issue requires interaction with a database

Comments

@SAuroux
Copy link
Member

SAuroux commented Feb 21, 2018

as the title says, the 'endYear' column from the Competitions table is not included in the database export. More generally, it might also be a good idea to also include the internal 'start_date' and 'end_date' columns when already fixing this.

@AlbertoPdRF
Copy link
Contributor

Is this issue still relevant? According to this and unless I'm missing something, I believe all columns that you mentioned should be included on the export.

@EdHollingdale
Copy link
Contributor

It is not included in the .tsv export at least. The Competitions export does not have endYear. The only problem this causes is for Welcome to 2019 to the best of my knowledge. The TSV export contains:
id name cityName countryId information year month day endMonth endDay eventSpecs wcaDelegate organiser venue venueAddress venueDetails external_website cellName latitude longitude

@jfly
Copy link
Contributor

jfly commented Jul 14, 2019

I believe this issue is referring to our "public database export", not our "developer's database export" (see https://github.com/thewca/worldcubeassociation.org/wiki/Developer-database-export for more information about why they both exist).

Here's the relevant code for the public database export:

Competitions.month, Competitions.day, Competitions.endMonth, Competitions.endDay, replace(GROUP_CONCAT(DISTINCT competition_events.event_id), ",", " ") as eventSpecs,
. If we change this, it's important to make sure that we don't break the WCA workbook assistant (it has hardcoded the order of the various columns in the database export 😢 https://github.com/thewca/wca-workbook-assistant/blob/389e40275a84fc28f137a33d38ed2ccf101e4e45/src/main/java/org/worldcubeassociation/db/WCADatabaseExportDecoder.java#L101-L120)

@AlbertoPdRF
Copy link
Contributor

Yep, I got it wrong. So, it seems we have two options here:

  1. Fix this and update the WA code to reflect the changes
  2. Only fix this when the WA doesn't exist anymore 😛

As we should release a new version of the WA soon (see this) and option 2 seems too extreme anyway, I think we should go ahead with 1 and fix this now.

@gregorbg
Copy link
Member

Reading "option 2 seems too extreme anyway" in 2021 really makes me smile :D

@gregorbg
Copy link
Member

Whoops, didn't mean to close this. Sorry! It can be implemented now, because there are no more parts in the WCA toolchain that rely on column order of the public export

@gregorbg gregorbg reopened this Jun 20, 2021
@gregorbg gregorbg added META: good first issue Small/easy change which is a good introduction to working in the WCA repo PRIORITY: low-priority A step above backlog - nice to have, but not essential to work on. n+1 AREA: documentation labels Jun 20, 2021
@dunkOnIT dunkOnIT added this to the Migrate Away from PHP milestone Oct 31, 2022
@dunkOnIT dunkOnIT added the TECH: database This issue requires interaction with a database label Nov 1, 2022
@dunkOnIT dunkOnIT removed this from the Migrate Away from PHP milestone Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AREA: documentation could-be-quick META: good first issue Small/easy change which is a good introduction to working in the WCA repo PRIORITY: low-priority A step above backlog - nice to have, but not essential to work on. TECH: database This issue requires interaction with a database
Projects
Status: No status
Status: No status
Development

No branches or pull requests

6 participants