Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

VAR-49 | Add municipality options to env config. #922

Merged
merged 4 commits into from
Apr 30, 2019
Merged

Conversation

midori0507
Copy link

  • Add ability to add custom municiple to .env
  • Add safety check for non-string value and non-array.
  • Add unit tests.
  • Default options is central cities.

@codecov-io
Copy link

codecov-io commented Apr 29, 2019

Codecov Report

Merging #922 into develop will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #922      +/-   ##
===========================================
+ Coverage     91.6%   91.61%   +0.01%     
===========================================
  Files          217      217              
  Lines         2823     2828       +5     
  Branches       494      496       +2     
===========================================
+ Hits          2586     2591       +5     
  Misses         208      208              
  Partials        29       29
Impacted Files Coverage Δ
...p/pages/search/controls/SearchControlsContainer.js 89.65% <100%> (+0.97%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 35c4b26...b21c446. Read the comment docs.

README.md Outdated
Custom config to replace global application's api URL. Expected value is valid URL string.

- `CUSTOM_MUNICIPALITY_OPTIONS`:
Config for custom municipalities. Expected value is array of municipalities: `['example_city']`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think anyone wants to add cities with _ :)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might just try Tampere :D

@midori0507 midori0507 requested a review from rBoost April 30, 2019 08:07
@midori0507 midori0507 merged commit 2663521 into develop Apr 30, 2019
@midori0507 midori0507 deleted the feature/VAR-49 branch April 30, 2019 10:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants