Adsbdb Versions Save

public api for aircraft, airlines, & flightroutes

v0.2.1

1 year ago

2023-03-05

Chores

  • dependencies updated, [765c1c7b91da0f83ef5e739ef8fbb34047e71730], [fccf173daedf96d787a0d99decc9667a3485404f]

Docs

  • readme updated, [1cb02ed8aec427ec649c3a94ab6b3d82ed0a7b4e]

Features

  • flightroute::_get() now just return an Option, [6fa60c204c29e1dd5c32b21b818ec139f75a74dc]
  • _typos.toml added, [ddb633130ed63e8bb4be388d809f91821028ca45]

Fixes

  • postgres.Dockerfile typo, [6da6fd4f40200f2a47206831711f7ec2623b5463], [944c53124a05c389b424090ed2654bba6c287a56]

Refactors

  • postgreSQL queries use USING(x) where appropriate, [5c8adf0049b322b1198b9eee55a09c0d3f592fdd], [686a1783292de9875a4c025915bf5958b154aaa3], [9515a4167f4aab84872ae758bbe4b403ef8f7ba7]

Reverts

  • temporary devcontainer buildkit fix removed, [6c07fa675952f2a77a5f570f0ebe07b9c42f9bbb]

see CHANGELOG.md for more details

v0.2.0

1 year ago

2023-02-25

This release has, potential, Breaking Changes

Chores

  • dev container updated, [1ac83bdb561145e101b6b3bc2c27c35471b25b50], [a398c8cc09ce4f37520137ae8f91087d55f36efd]
  • create_release updated, [eb8f871deba42e035595918c0c492e2ca4f0d156], [ea93d0b6c585d7fe5f0d050822631ad8cad46cb1]
  • dependencies updated, [01204465e1a36bbb15cf4d37cdf44398e394449c], [87c9c0e63e2e86027a07b44e031b0e1614950cdb], [a8d138e0f2775e96fa4dc6516fa905e3b007446a], [5322f1de46881984003a83d7d2063ea0172cb3da], [6e83e199ef4e99773b9d4790c11ff4098fb3abb9], [a4821b9ac28c2e563916e40c18aac8900bfc35c9]

Docs

  • site updated, [3c4bcb49e6f0d23cc7377fcecf399f74d8067b66]
  • various comment typos, [1af07db8faaeeda55a45b386cebd851193ace79e]
  • site uptime automatically increase, [678bb062895215f6b8de3dcf6bd5e585a3a8db3a]

Features

Breaking Changes

  • Callsigns & Flightroutes are now stored much more efficiently in the database, split, if possible, by IATA/ICAO prefix, and a suffix. This means that when searching for a Flightroute, one can use either the IATA or ICAO callsign. The callsign response now includes a callsign_iata and callsign_icao key, as well as an Airline object (see the README.md or adsbdb.com for more information). A new /airline route is now available, which will search for Airlines, again based on either ICAO or IATA airline codes, and will either return an array of Airlines, or a 404 response,
  • Add an env to disable flightroute & photo scraping, [1024d7f7715f97c86a5e0ca40a906633b8f6029a]
  • Dockerfiles updated, build from source, [7c9e4861f77191d9cca904dd3c32e8ada8bae294], [2bd3df6d93505cb9132a72b0524946040f56317d]
  • openssl dependency removed, [7870c7d19c260906b1f21610a4a09dc9a5a46cad]
  • force exit if database connection error, [d950b39f0527d0419ff1219c7033ae6782d2cba3]
  • dev postgres run from /dev/shm, auto pg_dump restoration, [c5eb2466b67fa45608c8c6356389ab5f91b4aaaf], [ad171abdb487d1db90635eea866fa11ca0edaeb6]
  • backup use age, [00c9d63da8b891fdfb0b6651aef643a1b62ff4b8]

Fixes

  • increase redis docker memory limit, [a58b6a7eaf219d2ac5c2d0becbd149b4aa1522af], [ce22824918bd56b48d077506d0edffa8dfde5905]

Refactors

  • Rust 1.67.0 clippy linting, [b3ff5c4965f05ba0eecdb71569dc6908296d16f6]
  • dead code removed, [427bb899439b313ba3df0278f4dbc99f9d324c81]

see CHANGELOG.md for more details

v0.1.0

1 year ago

2023-01-14

This release has breaking changes in the response Aircraft JSON object

Chores

  • dependencies updated, [680af9c7d94e2bb00b79a3e3e77f4058eeea4977], [227cb14a1aef740d818654a2dc20a85877e0cf1c]

Debug

  • ratelimit tracing, [f68df99caf4bb533afa1daf9439e593de25a8f92]

Features

Breaking Change

  • n_number is now registration, the api now returns, or attempts to return, a registration for every aircraft, closes #13. The /aircraft/x route now accepts either mode_s hex code or aircraft registration for x, [b468fa824575322e64142ed031b9de158c46fb52]

Fixes

  • Use a reqwest::Client builder, to enable request timeout, as well as gzip & brotli, [57bd31d95501c8ae6b1bc4ca88f92035ce137450]

see CHANGELOG.md for more details

v0.0.19

1 year ago

2023-01-04

Chores

  • dependencies updated, [f3c435d0c30d6e88dab8ab527f441a734a60d05e], [356650c90a2fe5159a26a90302b9345fc52a6a3e], [97242ae68b8c6dbe53639485a8c1134ff455e613]

Refactors

  • put tracing_level into app_env, [4174a24fbbbd066d8439c06ed01ca65bfde84d0e]
  • ratelimit into seperate file, [da31646c204054b0a399dcc7d925184aa8c60f93], [c33449b69800e29dcfe916cea6d35ea0293df7f6]
  • get_cache simplifying, [b360492ff53b330ddd45ed94a7e36772cbe906d0]

see CHANGELOG.md for more details

v0.0.18

1 year ago

2022-12-16

Chores

  • dependencies updated, [b8355f7f5b9b362c9a1ace242a8b15a1eebc8121], [16ba8d135740c29bcc2c4208fbab6a522fce3bbb], [343f13ec80b9b9edbb3514b7c8bb0b86f92c3cd4]
  • container alpine version bump, [5652a1b0424071885b1ccf4b09db15ceb982a404]

Features

  • api Dockerfile(s) use ubuntu container, [50d7b760cf67c6d0c28beee29b78dc9a947dc2ba]
  • rust caching in github action, [30cce60a2e5cbf6616bf9e649a4cfb3bcfa46e5a]

Fixes

  • lock redis in ratelimit methods, [e8304d308270bb2c178ffa5315771519f82552bf]

Refactors

  • ttl turbofish into usize, [432892a90faf15b106ebeae1a4ffd23edbdf8314]
  • Rust 1.66 linting, [873bbb29118d15a43352606750799422668a0918]

see CHANGELOG.md for more details

v0.0.17

1 year ago

2022-11-25

Chores

  • aggressive linting with rust 1.65.0, [755644bb5fc2f984b87779c1d140117ed77c03b9]
  • dependencies updated, implement axum v0.6 changes, [c781298636cd967df7a21fe302a07a6bf6811cee]
  • postgres upgraded to v15, closes #7, [a59dfb850fe2f01c0deeac27070c08ee2a0e388c]

Docs

  • readme updated, [43f8f003114f86a08210cbe6bc9f406ef4f0f692]

Features

  • use dtolnay/rust-toolchain in github workflow, [10e872b190c12658e7a9df02832e62445f5cad8e]
  • replace dotenv with dotenvy, [2234f3f85c884ef98a4ae29a41e97fd4da42eee8]
  • replace lazy_static with once_cell, [524b3ef06184fca94b1ce5d4569d1280f5f21b36]

Fixes

  • typo Scrapper > Scraper, [d9ff9e3de546fae58b37e5a546d630930bb013b1]

Reverts

  • remove Cache<T>, just use Option<T>, [cce579cb41c4619a6fa109d9d6a40b3ebc9544de]

see CHANGELOG.md for more details

v0.0.16

1 year ago

2022-10-15

Chores

  • create_release.sh v0.1.1, [065daa3d6a4efa28a75bb7fe97ed2c94c426966d]

Docs

  • readme updated, [94e1ea83d36802876f072695065aac5df02f2c38]
  • comment typos fixed, [9d799ca37aa968a228efe77667c6e0084d1305f0]
  • comments updated, [b1ccd36e6615922a8f6bf543a882fbf21f510195]

Features

  • NNumber, ModeS & Callsign new_types, [6a42752e3395a837fb1abc42e73768d5ec2b583c]
  • Exit with code 1 if no .env file found, [0939a2d38ffd633a029eee6e95c21062249e3e45]
  • UnknownAC (Aircraft/Callsign) enum, [596cfa07ac0704aaa3f8efd7d07d029e2a732c0c]

Fixes

  • ttl as isize instead of usize, [84dbbf02d66bfbf6b529f82a694ea4bb3946d419]
  • Cargo.lock tracked, [366a90eeb52122ec46b18395d2aac83363178be7]
  • cache aircraft/flightroute with Cache enum, [5118d3b42a043e72a02a9f31daaf7ca7608f4b5c]
  • SQL query uppercase SQL reserved words, [e918e88c022d3d8b903156ccc82a03387edc07d5]
  • website added Aircraft Value table, [5ef5e1c7063eba42a3728ef2fcf94de42cd93258]
  • try/catch on website script, [94be3918d43719431960c2479fa0df57adec2743]
  • print version number when starting, [19de8a9d2c8a4c3ae2dd0b8cb2e01722130e5f00]

Refactors

  • get_addr() for creating axum usable address from &env fix: get_api_version use split instead of chars, [e6657a0a2225c0a1eb4ce4bacaa65b6e7d96eac0]
  • photo_scraper return Option<T> instead of Result<Option<T>, ApiError>, [842adfc90212431a0aedf7368520909264d21a65]
  • dead code removed, [97e57f116349beef4cd62a5daf67f6bcb6cd4753], [321db5d9ac5cc2b4ffde04a69bd9d5ea3ce3cbc2]
  • sql query syntax tweaked, [40e5b5d0fd403a4d60edaff4ef1648cb4878ad10]
  • AppError into own module, [fbc6be1428544c4b7e0425273a35640c205ab32d]

see CHANGELOG.md for more details

v0.0.15

1 year ago

2022-09-07

Chores

  • Dependencies - tokio updated, anyhow removed, [83c361d0e86a94108480b7b22b940d9f631d69f8]
  • dev container updated, from buster to bullseye, [8ec1b8e9d47de8a501905a17717d97ffef26859a]

Features

  • store cache values using Redis Hashes, [42871bec7941178467cedc44923dc79ba783a391]
  • website response explanation added Midpoint, [7639eec2dabde108160b19649f4f3ae040171c25]

Fixes

  • postgres queries use uppercase text for SQL lang, [8ad0d341e7e26d7b0e6ad0ad9205146ba9fc7c1e]
  • N_Number functions replace unwrwaps() with map_or_else, [aabcdda0f5eeac2478c0b2bc372d8bd8e5143860]

Refactors

  • ModelAircraft use &self, instead of &Self, as param, [4c39177852ca9d82e492cbd26bf7c6ce4a4c1669]
  • Redis, key.to_string() once, and optional_null turbofish matching [85bbb6bfa423bde8ec865d8c745e1a1a014f4b1d]

see CHANGELOG.md for more details

v0.0.14

1 year ago

2022-08-12

Chores

  • aggressive linting, [0fa03c922b0dedeb1c2a35ea8d49f7e456d06dc7]
  • dev docker container updated, [95faeef0ab6888b423cb2fba33126f4367149f9b], [ae77cb62039cdbd1321604df5b60530c7378f7fa]
  • dependencies updated, [7b82d9d7a609e00674d59f158da497fdd74b3422]

Docs

  • readme updated, [24037f9d36be22d3907361f62a5c5c61461af537]

Features

  • api.Dockerfile switch from Alpine to Debian Bullseye, [d8fa2c0747dee8e741137a7c711cf3b2a073890f], [e5b062d837f56db5f01b8a60e5dea04849e89b1a]
  • log to file as json, [47b769e1959b973957dea89cda2eed5b97487de4], [669d6dc4d4251086397f3c2cdc1dced0fd95749c]

Fixes

  • impl From<ModelAircraft> for ResponseAircraft, [6079d32de505b63b04fa0d9bf0adb1c2ab702dfc]
  • untrack Cargo.lock, [9bf63802cefcb9c903e836fd279a0e8c81fe9d62]

see CHANGELOG.md for more details

v0.0.13

1 year ago

2022-08-04

Chores

  • aggressive linting: nursery, pedantic, and unused_unwraps, [b6716880fc7e5c5b168d9aeafc9288ef9dc542c8], [7a87c3864702ae7a2cbb2e7b5fc7602cd11df6fd], [13e30b0a0179c47f14474f824fcdb78612495479]
  • dependencies updated, [ce1ef872fe81501dc473b71def7710bd2141fdbd]

see CHANGELOG.md for more details