Skip to content

Commit

Permalink
[OSDEV-1100] Use the new production location naming in the Logstash a…
Browse files Browse the repository at this point in the history
…pp. (#263)

- Replaced all mentions of "facility" and "facilities" with the new
production location naming in the Logstash app.
- Renamed `location` field in the production locations index to
`coordinates`.
  • Loading branch information
vladsha-dev authored Jun 27, 2024
1 parent 85c7803 commit 50c8550
Show file tree
Hide file tree
Showing 23 changed files with 214 additions and 214 deletions.
9 changes: 4 additions & 5 deletions doc/release/RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). The format is based on the `RELEASE-NOTES-TEMPLATE.md` file.


## Release 1.16.0

## Introduction
Expand All @@ -17,7 +18,7 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
* *Describe scheme changes here.*

### Code/API changes
* *Describe code/API changes here.*
* [OSDEV-1100](https://opensupplyhub.atlassian.net/browse/OSDEV-1100) - Replaced all mentions of "facility" and "facilities" with the new production location naming in the Logstash app. Renamed `location` field in the production locations index to `coordinates`.

### Architecture/Environment changes
* *Describe architecture/environment changes here.*
Expand All @@ -26,8 +27,8 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
* *Describe bugfix here.*

### What's new
* [OSDEV-1105](https://opensupplyhub.atlassian.net/browse/OSDEV-1105) Contribution. Allow commas in list name and update error message.
* [OSDEV-272](https://opensupplyhub.atlassian.net/browse/OSDEV-272) Facility Claims Page. Implement ascending/descending and alphabetic sort on FE.
* [OSDEV-1105](https://opensupplyhub.atlassian.net/browse/OSDEV-1105) - Contribution. Allow commas in list name and update error message.
* [OSDEV-272](https://opensupplyhub.atlassian.net/browse/OSDEV-272) - Facility Claims Page. Implement ascending/descending and alphabetic sort on FE.

### Release instructions:
* *Provide release instructions here.*
Expand All @@ -43,8 +44,6 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
#### Migrations:
* 0150_introduce_function_formatting_number_to_percent - adds add_percent_to_number to DB and drop
drop_calc_column_func.
#### Scheme changes
* *Describe scheme changes here.*

### Code/API changes
* [OSDEV-1004](https://opensupplyhub.atlassian.net/browse/OSDEV-1004) - The following changes have been made to the Logstash and OpenSearch services:
Expand Down
161 changes: 0 additions & 161 deletions src/logstash/indexes/facilities.json

This file was deleted.

162 changes: 162 additions & 0 deletions src/logstash/indexes/production_locations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
{
"index_patterns": [
"production-locations*"
],
"template": {
"mappings": {
"properties": {
"os_id": {
"type": "keyword"
},
"name": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"name_local": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"description": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"address": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"url": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"sector": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"parent_company": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"product_type": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"location_type": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"processing_type": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"number_of_workers": {
"properties": {
"min": {
"type": "integer"
},
"max": {
"type": "integer"
}
}
},
"coordinates": {
"type": "geo_point"
},
"minimum_order_quantity": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"average_lead_time": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"percent_female_workers": {
"type": "integer",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"affiliations": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"certifications_standards_regulations": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"country": {
"properties": {
"alpha_2": {
"type": "keyword"
}
}
},
"claim_status": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
}
}
}
}
}
Loading

0 comments on commit 50c8550

Please sign in to comment.