m2ms / fragalysis-frontend

The React, Redux frontend built by webpack
Other
1 stars 2 forks source link

Fix tag generation bugs in loader #1482

Open phraenquex opened 4 months ago

phraenquex commented 4 months ago

From #1322 it's clear some tags are being generated with the wrong strings.

Image

@phraenquex to full spec and update @Waztom before he goes offline.

phraenquex commented 3 months ago

@kaliif - @Waztom will discuss this spec with you.

kaliif commented 3 months ago

Updated the tags and metadata.csv. centroid_res was previously missing from the db, which means new field was added, which means database migration. It's not a breaking change, the old data keeps working but for the field to be populated the data needs to be reloaded. @matej-vavrek once the changes go live, the field is available in api/canon_sites/. Let me know if there's any information you need that's currently missing from the API.

ObservationID is now present in metadata.csv, labeled as Experiment code, that's how it's saved in the db. Can change the name if necessary.

Somewhat confused about the first point though --

  • In metadata.csv, split short and long codes into separate fields (contrary to Frank's original spec)

@phraenquex isn't this already happening? The first two fields, Code and Long code?

phraenquex commented 3 months ago

@kaliif short and long code are in a single field, joined by a dash, in the metadata.csv that is downloaded from staging. But you can quickly check yourself.

phraenquex commented 3 months ago

@Waztom please check with @ConorFWild whether centroid_res is not after all the better string to use for the canonical site long code. (As we discussed by phone, but didn't document in this ticket.)

kaliif commented 3 months ago

@kaliif short and long code are in a single field, joined by a dash, in the metadata.csv that is downloaded from staging. But you can quickly check yourself.

Checked and as far as I can see they are clearly separate fields - short code is the first column, long code second.

matej-vavrek commented 3 months ago

Currently, it is showing upload_name without part before first - for each tag. If some category should use something else to show, specify it please, because I am confused a bit now 🙄

Waztom commented 3 months ago

@matej-vavrek the two fields to add to the Observation Modal are: the TagName (left-most-side) and the CentroidRes (right-most-side).

@kaliif will confirm endpoints with you.

Image

mwinokan commented 3 months ago

@kaliif has these changes on his stack, but there is currently no LHS dataset. @mwinokan will upload a 2A dataset and have a look. Check against spec

mwinokan commented 3 months ago

@Waztom I've uploaded 2A to Kalev's stack

mwinokan commented 3 months ago

Testing (2024-08-06), omitting f/e stuff:

Checked means it's implemented

@kaliif please revisit the outstanding three bullets of the spec, above

mwinokan commented 3 months ago

@Waztom clarifies that the aliases referred to in @phraenquex's spec and @mwinokan's testing refer to the string tag's given to the SiteObservations, so there is no need for new B/E objects.

However, the metadata download should contain the XCA generated string and the user-defined tag string for all the XCA generated site/tag types.

@kaliif will please revisit if this has been implemented and update his stack

@matej-vavrek will revisit the styling once the backend has been updated

mwinokan commented 3 months ago

Your latest stack looks good to me, thanks @kaliif

kaliif commented 3 months ago

@mwinokan, time to merge to staging or shall we wait for the decision on splitting the long and short codes?

mwinokan commented 3 months ago

@kaliif I say merge it so that @matej-vavrek can work on the f/e

matej-vavrek commented 3 months ago

@mwinokan, @Waztom, I have updated my stack. There are also TagName and CentroidRes columns now.

mwinokan commented 2 months ago

@matej-vavrek thank you, one outstanding issue is that the headings are not aligned to the data values. If this is a simple fix please implement that. Screenshot 2024-08-20 at 12 05 28

matej-vavrek commented 2 months ago

@mwinokan, I have adjusted it a bit, but this is probably the farest I can go with a simple fix. It is on tibor stack (mine is down atm).

mwinokan commented 2 months ago

@matej-vavrek it looks much better, thank you

mwinokan commented 2 months ago

@matej-vavrek this is ready for staging