Add missing locode details using overrides #21

Merged
fyrchik merged 3 commits from aarifullin/frostfs-locode-db:fix/missing_locodes into master 2025-02-05 11:19:33 +00:00
Member
  1. Introduce UN/LOCODE overrides and copy it by the recipe:
  • Introduce unlocode-CodeList_overrides.csv that contains missing details for locodes from the main unlocode-CodeList.csv file;
  • Fix Makefile
  • Add info to README.md.
  1. Introduce locode overriding
  2. Count ignored and added records to result locode db
1. Introduce UN/LOCODE overrides and copy it by the recipe: * Introduce `unlocode-CodeList_overrides.csv` that contains missing details for locodes from the main `unlocode-CodeList.csv` file; * Fix `Makefile` * Add info to `README.md`. 2. Introduce locode overriding 3. Count ignored and added records to result locode db
aarifullin added 3 commits 2025-01-22 19:10:04 +00:00
* Introduce `unlocode-CodeList_overrides.csv` that contains missing details
 for locodes from the main `unlocode-CodeList.csv` file;
* Fix `Makefile`;
* Add info to `README.md`.

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
requested reviews from realloc, fyrchik, a.bogatyrev, alexvanin 2025-01-22 19:10:04 +00:00
aarifullin force-pushed fix/missing_locodes from bb24081e7c to 655808ca0a 2025-01-22 19:10:55 +00:00 Compare
acid-ant approved these changes 2025-01-23 06:33:36 +00:00
Dismissed
dstepanov-yadro approved these changes 2025-01-27 08:05:42 +00:00
Dismissed
dstepanov-yadro approved these changes 2025-01-27 08:07:37 +00:00
Dismissed
fyrchik reviewed 2025-01-27 08:47:28 +00:00
@ -89,2 +106,3 @@
})
return errG.Wait()
err := errG.Wait()
Owner

This is unnecessary, might as well return ..., errG.Wait()

This is unnecessary, might as well `return ..., errG.Wait()`
Author
Member

Fixed

Fixed
fyrchik marked this conversation as resolved
@ -106,0 +123,4 @@
func (t *Table) initOverrides() (err error) {
const wordsPerRecord = 12
t.overridesOnce.Do(func() {
Owner

Do we need to use once?
Can we initialize it once during setup stage in a single thread?

Do we need to use `once`? Can we initialize it once during setup stage in a single thread?
Author
Member

Do we need to use once?

We don't, for sure. Fixed

> Do we need to use once? We don't, for sure. Fixed
fyrchik marked this conversation as resolved
aarifullin force-pushed fix/missing_locodes from 655808ca0a to f35b1c62e8 2025-01-31 12:45:34 +00:00 Compare
aarifullin dismissed acid-ant's review 2025-01-31 12:45:34 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

aarifullin dismissed dstepanov-yadro's review 2025-01-31 12:45:34 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

dstepanov-yadro approved these changes 2025-02-04 15:33:07 +00:00
fyrchik approved these changes 2025-02-05 11:19:28 +00:00
fyrchik merged commit f35b1c62e8 into master 2025-02-05 11:19:33 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-locode-db#21
No description provided.