Code Monkey home page Code Monkey logo

address-complete-divide-api's Issues

補完方法の変更(外部API→自前のDB)

Is your feature request related to a problem? Please describe.
郵便番号から住所情報を保管するAPIを毎回叩いているが、速度的に少し問題があるため、自前で郵便番号→住所情報のデータベースを作成し、そこからデータを抜き取ることによって補完を行う形式に変更し、確認を行う。

Describe the solution you'd like
MySQLとかではなく、非構造化データベースのNoSQLとか使う方が速度的には優位(なはず)

Describe alternatives you've considered
現状維持

テストの追加

Is your feature request related to a problem? Please describe.
テストが存在していない

Describe the solution you'd like
単体テストを追加する

Additional context
コードレビューを受けていないため、実装に誤りがあることも大いに想定される。
よってテストを網羅的に行い、バグを発見・修正できるメリットもある。

妥当ではない郵便番号のとき、外部APIを叩かないようにする

Is your feature request related to a problem? Please describe.
郵便番号が空の時や、形式が郵便番号に適していない時も外部APIを叩くと無駄な処理時間が発生し、効率が悪い。

Describe the solution you'd like
郵便番号が妥当かどうかを判断する(bool型を返す)関数を追加する。

Coverageがうまく反映されていない

Describe the bug
Coverageが更新されていない

To Reproduce
READMEを見ればわかる

Expected behavior
READMEに96%のように表記されるはず

Screenshots
撮り忘れた。改善済みが以下
スクリーンショット 2023-05-25 4 23 21

Additional context
pytest-covをインストールし忘れているため、requirements.txtを更新する

外部(郵便番号)APIを叩く前に郵便番号を正規化する機能の追加

Is your feature request related to a problem? Please describe.

外部APIを叩く際に有効な郵便番号として、111-1111や、1111111という形式があるが、1111111111ー1111などはおそらく無効な郵便番号となる。(確認すること)

Describe the solution you'd like
郵便番号を正規化する関数をAPIを叩く前に挟む

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.