diff --git a/CHANGELOG.md b/CHANGELOG.md index aa6761e7..4e8c5a22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,153 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [0.0.31](https://github.com/Chia-Network/climate-warehouse/compare/v0.0.6...v0.0.31) (2022-05-10) + + +### Features + +* add better log messages when subscribing to store ([d37e0f9](https://github.com/Chia-Network/climate-warehouse/commit/d37e0f9834ac93721936a22a67bcfb947d3d8e36)) +* add default governance body to env ([e60a709](https://github.com/Chia-Network/climate-warehouse/commit/e60a709b2b4750666b184d24d9a4caaabc42c54f)) +* add delete imported org endpoint ([b33f6d9](https://github.com/Chia-Network/climate-warehouse/commit/b33f6d99bfe6165052246b6d932712b7fe64ccf9)) +* add estimation table ([fe87cc2](https://github.com/Chia-Network/climate-warehouse/commit/fe87cc2b055d1fe0c8de92f9d1cb15e0996f6a90)) +* add governance tables ([087944d](https://github.com/Chia-Network/climate-warehouse/commit/087944d96354db2b5bb7b37fd84bd05cf88a2409)) +* add import organization api ([f5e355b](https://github.com/Chia-Network/climate-warehouse/commit/f5e355baf600c2c7c32725852167403631fc58e0)) +* add logger ([7ce686b](https://github.com/Chia-Network/climate-warehouse/commit/7ce686be5c6abd1bf9cd08d573dd92d43dc2e65e)) +* add ordering query param to audit table ([1d7c429](https://github.com/Chia-Network/climate-warehouse/commit/1d7c4297a438f75d1d5c3166847c0ce91ce9b389)) +* add org subscribe unsubscribe endpoints ([4218ba9](https://github.com/Chia-Network/climate-warehouse/commit/4218ba9fcf56b4fdc7132f56ab0172a36e94fd00)) +* add organization resync API ([825e08c](https://github.com/Chia-Network/climate-warehouse/commit/825e08c883dada6207e1cb233465a0a2acd17003)) +* add public xch address to org package ([1d1a34a](https://github.com/Chia-Network/climate-warehouse/commit/1d1a34af054994234fb6c48e3542736d35483d2f)) +* add readonly mode ([a65047f](https://github.com/Chia-Network/climate-warehouse/commit/a65047f819e3034f865ff85a8423f80ce5b4b5a9)) +* add schedular architecture ([8b5c2c5](https://github.com/Chia-Network/climate-warehouse/commit/8b5c2c5bf00cc476b20e9089ac57b6556adb60ea)) +* add sort order ([086489c](https://github.com/Chia-Network/climate-warehouse/commit/086489c2f0d46baf8f8e16035f321fcf4696396d)) +* add test api data ([dffd736](https://github.com/Chia-Network/climate-warehouse/commit/dffd7369dab9e5c3bdf7617ae4ef6ce2f4dd480e)) +* add unitCount fields to unit and split forms ([fd41e9e](https://github.com/Chia-Network/climate-warehouse/commit/fd41e9efcffd1bd2f9e94703f10a9674bfbe1563)) +* add winston as a sole logging package ([e35ddde](https://github.com/Chia-Network/climate-warehouse/commit/e35dddea242053c878e35ab082214df132105f6b)) +* api to reset homeorg ([15e106b](https://github.com/Chia-Network/climate-warehouse/commit/15e106b7029941c8e91e833423f840ab6ece771e)) +* assert child label existance when inserting or updating projects and units ([ae454a1](https://github.com/Chia-Network/climate-warehouse/commit/ae454a126690dda5b9217f97e3bc6df71644bf97)) +* assert datalayer connection to use api ([dc3e35a](https://github.com/Chia-Network/climate-warehouse/commit/dc3e35abfb09a32363c1ca4da44900d1c229962b)) +* assert that chia network matches cw config file ([56c2edf](https://github.com/Chia-Network/climate-warehouse/commit/56c2edfd416b732a37edecea0e0bf77b16b7417c)) +* assert wallet is available before commiting ([0014b37](https://github.com/Chia-Network/climate-warehouse/commit/0014b37861aab53f4e5ca16949b769ff74aeeae9)) +* assert wallet is synced ([37e3216](https://github.com/Chia-Network/climate-warehouse/commit/37e3216a88dbee1b5124c0702f3d5015a3f07288)) +* attach comments to commits ([d294610](https://github.com/Chia-Network/climate-warehouse/commit/d29461069303b71544f59130b967da19b2b4f469)) +* auto migrate when app starts ([d5e0420](https://github.com/Chia-Network/climate-warehouse/commit/d5e04203b656e9a608e1619dfda85fe518ea3648)) +* better timeout logic for failed data layer push ([8d9aa40](https://github.com/Chia-Network/climate-warehouse/commit/8d9aa4064533aa5239aed44b4a7f62193aed3c3b)) +* changelog config ([dad31af](https://github.com/Chia-Network/climate-warehouse/commit/dad31afe6f46b9c269987bf419d4e8b954667369)) +* check for confirmed transaction when pushing changes ([b975c7d](https://github.com/Chia-Network/climate-warehouse/commit/b975c7d78109fd17d19537c6b978827e6c5f3d43)) +* check for datalayer and wallet conditions before ([2c0d52e](https://github.com/Chia-Network/climate-warehouse/commit/2c0d52ee227c10e09dbd61fe59af3e4c7f1bf503)) +* check for unconfirmed transactions ([9e34945](https://github.com/Chia-Network/climate-warehouse/commit/9e34945dbd3f128b7bc0047a0c2294886305c8fc)) +* check for unconfirmed transactions ([c880960](https://github.com/Chia-Network/climate-warehouse/commit/c880960524519de6cad3ed6312c3213db46575e9)) +* datalayer takes base64 image ([5d93fd6](https://github.com/Chia-Network/climate-warehouse/commit/5d93fd6371352a1b0aabc0e4669c9fc29c5e0767)) +* disallow orguid field on xlsx upload ([44995d8](https://github.com/Chia-Network/climate-warehouse/commit/44995d8a05876c8b35933ad56b02518885584fbc)) +* download picklists from server and validate ([62fe558](https://github.com/Chia-Network/climate-warehouse/commit/62fe558794ef9efccc712d660d0c01bcfdd2b8cd)) +* expose get all labels api ([1143443](https://github.com/Chia-Network/climate-warehouse/commit/11434431a4a179dd802ba2e1f29c8bed3b28cb41)) +* filter staging results by table ([31055b3](https://github.com/Chia-Network/climate-warehouse/commit/31055b3448653e7420711b664af9c9467bf187ff)) +* finalize data import ([2a158e8](https://github.com/Chia-Network/climate-warehouse/commit/2a158e8dff9a0390dd19ed6c4dd782a67e6fdc97)) +* finalize import/export ([52965eb](https://github.com/Chia-Network/climate-warehouse/commit/52965eb5b41a7005e5d0afe7ae4e4fce6c4544d7)) +* governance getters ([4c63081](https://github.com/Chia-Network/climate-warehouse/commit/4c630815b1b6980a7df0ceeebad8d02f75f8f080)) +* implement organization subscribe/unsubscribe ([3a22188](https://github.com/Chia-Network/climate-warehouse/commit/3a22188c0417c389952c88f937b49e2cf80b697a)) +* increase org creation times to 60 at 30 secs interval ([859a54b](https://github.com/Chia-Network/climate-warehouse/commit/859a54bf85b4193d9b94fe25b35b9c0be3e44f0d)) +* issuances show up on staging table ([c20f414](https://github.com/Chia-Network/climate-warehouse/commit/c20f414e99a4d7f096ab0a9c3c94387bdfce8e33)) +* load config from yaml ([e182432](https://github.com/Chia-Network/climate-warehouse/commit/e1824322b97987201c2655ad55585c2410fc41fc)) +* make port configurable ([21401b5](https://github.com/Chia-Network/climate-warehouse/commit/21401b5f5a8d60c5775839da0bb7e5653393cffc)) +* make registryOfOrigin accept any string value ([bc80747](https://github.com/Chia-Network/climate-warehouse/commit/bc807477279100ac1958b3fc02d670088f651646)) +* make units->projectLocationId optional ([9f79943](https://github.com/Chia-Network/climate-warehouse/commit/9f79943b61294f474d6d411c6d7180ccf85d266d)) +* middleware for optional api-key ([001c4e3](https://github.com/Chia-Network/climate-warehouse/commit/001c4e3d56234326b20b1fa160f0bc528203b30a)) +* option to commit units seperate from projects ([823a348](https://github.com/Chia-Network/climate-warehouse/commit/823a34897024503cb858c4e77956f83d861ea2d0)) +* optional paginated staging table ([6199b2c](https://github.com/Chia-Network/climate-warehouse/commit/6199b2c3f49a199519f064ab7e285452cacab6f2)) +* paginate audit table ([0a6fb7b](https://github.com/Chia-Network/climate-warehouse/commit/0a6fb7bbed14ce13501dcee33ecf26c8e6ae51cb)) +* project sector can accept any value ([d2a0ae9](https://github.com/Chia-Network/climate-warehouse/commit/d2a0ae9c5579c952398b688ffd34accc60ab4f47)) +* pull default orgs on startup ([ee82340](https://github.com/Chia-Network/climate-warehouse/commit/ee823400dd921796cc5ae793141ccb446a6be001)) +* recover for fail org creation ([40282ec](https://github.com/Chia-Network/climate-warehouse/commit/40282ecea2a069800986336b52edcaa393eabffe)) +* remove picklist validation from methodologies ([5c5a742](https://github.com/Chia-Network/climate-warehouse/commit/5c5a7428ebb13f3c5c517ceef2cff15678fb4c33)) +* remove serial number pattern ([670b6b1](https://github.com/Chia-Network/climate-warehouse/commit/670b6b1f775a248c0e54b6a21dc1712240273d55)) +* resync every 24 ([91dfaa9](https://github.com/Chia-Network/climate-warehouse/commit/91dfaa95d7cbe6d05cbbc5fe28ecd1932ae4309f)) +* retry staging record if failed ([e15bd10](https://github.com/Chia-Network/climate-warehouse/commit/e15bd10d006b3c09ce88c8c8a2dd280391a5ed3e)) +* send hash to datalayer get_keys_values ([1d02610](https://github.com/Chia-Network/climate-warehouse/commit/1d0261087237be3c04cc5026f26e8c6b44587537)) +* set readonly header ([946aa44](https://github.com/Chia-Network/climate-warehouse/commit/946aa44f89a784dc7884a6e2966805db322a1e3b)) +* sync audit table to database ([09c26c0](https://github.com/Chia-Network/climate-warehouse/commit/09c26c0d044b0a994c1390fcf4c3a1cd881456d0)) +* sync governance data ([0b3d58a](https://github.com/Chia-Network/climate-warehouse/commit/0b3d58a9c747d610f4191e00157f59203bb908f6)) +* upgrade split api to latest specifications ([3b39a70](https://github.com/Chia-Network/climate-warehouse/commit/3b39a701269cce7a0885634234589086ef48067b)) +* upload svg icon ([99b2262](https://github.com/Chia-Network/climate-warehouse/commit/99b226265de3d1181903cc8af4087a43f29198dc)) +* use s3 when on testnet ([3071a7b](https://github.com/Chia-Network/climate-warehouse/commit/3071a7b918e683fb09ce1840584019077cfb95ad)) +* validation on models during import, and optional exclusion of orguid ([75b6b57](https://github.com/Chia-Network/climate-warehouse/commit/75b6b57a247c1c42dc7637b8c5008270f9183edb)) +* xlsx import ([eac1ad4](https://github.com/Chia-Network/climate-warehouse/commit/eac1ad4d22c7aa6d418481db6ec6fc6ec3b73c5b)) +* xlsx import ([ed77312](https://github.com/Chia-Network/climate-warehouse/commit/ed77312285cf332f52af35ed8aec354f38b7af14)) + + +### Bug Fixes + +* 404 issue ([c027dea](https://github.com/Chia-Network/climate-warehouse/commit/c027dea315686a9ff1682b369818d0b771950442)) +* add brackets to single-instruction ifs ([d420035](https://github.com/Chia-Network/climate-warehouse/commit/d4200354178b604363da6405577e7274a9195d2c)) +* add current registry to validation ([81ae1cb](https://github.com/Chia-Network/climate-warehouse/commit/81ae1cb37624c04b42e66382f48b09be845a3ea7)) +* add inclusive serial number block count ([dd522c6](https://github.com/Chia-Network/climate-warehouse/commit/dd522c6358f2561a75bff363b71467751571a104)) +* add missing new.originProjectId, ([27a06bd](https://github.com/Chia-Network/climate-warehouse/commit/27a06bd86e1b9ea1a41862dbe95097f7aed26c59)) +* add missing createdAt ([4803637](https://github.com/Chia-Network/climate-warehouse/commit/480363762747c77e7bd5c5b8a6f6892ba553a21e)) +* allow timestaged in validation ([4f2337f](https://github.com/Chia-Network/climate-warehouse/commit/4f2337fa3f1feb3d903bbba2ba8a60f341c6c56a)) +* better error handling when initiating orgs ([b1c9c77](https://github.com/Chia-Network/climate-warehouse/commit/b1c9c77164455f285ea620c047c7c37909f35b80)) +* call the correct functions when import org ([4b22c94](https://github.com/Chia-Network/climate-warehouse/commit/4b22c94db973e626f58fe0879e3c59c1496fc71e)) +* change audit datatype ([3ad6333](https://github.com/Chia-Network/climate-warehouse/commit/3ad6333b854ac8dd1d4579f629923f67212d1f2f)) +* change related projects fields to correct type ([82b9592](https://github.com/Chia-Network/climate-warehouse/commit/82b9592daaa97c58a19bf15393ac4d8ccccdbe25)) +* change timestamp validation to date validation ([3bed8ce](https://github.com/Chia-Network/climate-warehouse/commit/3bed8ce4da8b5424b800832b680778143ef2697c)) +* changelist serialization ([cd2e5b6](https://github.com/Chia-Network/climate-warehouse/commit/cd2e5b652bca658c849c2d8dcc9633c529dbb7bb)) +* child relationships persist in datalayer ([5280982](https://github.com/Chia-Network/climate-warehouse/commit/5280982112a857a20e6756c3a0ac563c3f11a65e)) +* cleanup orphan changes in the staging table ([14d8861](https://github.com/Chia-Network/climate-warehouse/commit/14d8861a96dba2bab7f6eb0822849eb58d17a556)) +* create org v2 ([f607a31](https://github.com/Chia-Network/climate-warehouse/commit/f607a318a453dced96100cdbaffe1f47adbaaabd)) +* datalayer retry logic ([a24edea](https://github.com/Chia-Network/climate-warehouse/commit/a24edeafd381b2fdf4ce4010e78615222b73edcb)) +* delay start of scheduler to give models time to initialize ([05278ac](https://github.com/Chia-Network/climate-warehouse/commit/05278ac182e2498109d203ac62354eba7f39bef7)) +* delete staging after deleting imported orgs ([fdb8e37](https://github.com/Chia-Network/climate-warehouse/commit/fdb8e37b427f1e2a4f582dcda918aa48edf277ef)) +* dont crash when max retries exceeded ([a1ad666](https://github.com/Chia-Network/climate-warehouse/commit/a1ad666431ae4c87e4dcf63a57b46f570d2ac4af)) +* dont overwrite registryId on update ([2ab93a2](https://github.com/Chia-Network/climate-warehouse/commit/2ab93a20d6cc4cdba6cc8c1f09245ae7c68bde26)) +* dont run network assertion on simulator ([7314561](https://github.com/Chia-Network/climate-warehouse/commit/7314561bf7e03c9005ddac3c19045eb37eee75cf)) +* dont send createdAt, updatedAt to datalayer ([c054b0f](https://github.com/Chia-Network/climate-warehouse/commit/c054b0ff1bbfacc62ba61d9a087945e7dd8459b5)) +* editing a unit deletes the existing issuance on it ([3d7a8c5](https://github.com/Chia-Network/climate-warehouse/commit/3d7a8c54ec24771f0c1bc0677d9751be4e4d0e7a)) +* excel download for external projects/units ([387c612](https://github.com/Chia-Network/climate-warehouse/commit/387c612603f9ce9773ecab57285990368e93df8b)) +* exclude timeStaged ([0f086f0](https://github.com/Chia-Network/climate-warehouse/commit/0f086f0c36057c3a2c5aebe9e7aaa02d41f78c13)) +* fix data loader on empty response ([54d0d5a](https://github.com/Chia-Network/climate-warehouse/commit/54d0d5a47d86de131d7ab3b6fe346ffaf73a41f5)) +* fix mishaped seed data ([d57a90b](https://github.com/Chia-Network/climate-warehouse/commit/d57a90ba04237f6f53a8425ed927536b85ad3775)) +* fix projects xls import ([c302526](https://github.com/Chia-Network/climate-warehouse/commit/c302526a627e3fc24ba1d2a997430b7c372fa906)) +* fk uuid types from integer to string for uuid ([f05d3dc](https://github.com/Chia-Network/climate-warehouse/commit/f05d3dc814088f7d855f166dd4901d4be3c0a99f)) +* import custom org not working ([6b06396](https://github.com/Chia-Network/climate-warehouse/commit/6b0639621a0f4583d57be6d5756f1b55d919bc91)) +* issuance fix ([d48de5d](https://github.com/Chia-Network/climate-warehouse/commit/d48de5db10e3c21b958fb3bc6e21d56adf0d5f73)) +* issuance staging ([01c5064](https://github.com/Chia-Network/climate-warehouse/commit/01c5064dcc2ef2817248c0d6efcd49817cefc3eb)) +* issuances dont get overwritten when using existing issuance ([185a56e](https://github.com/Chia-Network/climate-warehouse/commit/185a56ec047d1f2757437fffadc60e13d0fbbca0)) +* limit and page query params are peered in both directions ([4dbecfa](https://github.com/Chia-Network/climate-warehouse/commit/4dbecfa6b982def58a79c33812369ab6c3a8c0f3)) +* merge conflicts ([dc3e7ee](https://github.com/Chia-Network/climate-warehouse/commit/dc3e7ee264ea817a0d2780a172c59d35f49b715f)) +* migration ([03134e9](https://github.com/Chia-Network/climate-warehouse/commit/03134e9dea433f15d21fabefc01fff2f57577bd4)) +* onChainConfirmationTimeType ([fc23d6d](https://github.com/Chia-Network/climate-warehouse/commit/fc23d6d36333bd9c88995bed9f7878f39cfe3218)) +* organization creation ([e62f40a](https://github.com/Chia-Network/climate-warehouse/commit/e62f40a2a287822d14a52fa9250e82c5328e0888)) +* organization creation flow ([6ff186f](https://github.com/Chia-Network/climate-warehouse/commit/6ff186f16d5567f3e05f8106c13f086b5d9532f8)) +* payload for get_sync_status ([9a5936a](https://github.com/Chia-Network/climate-warehouse/commit/9a5936abe8e7761ecf4138833b64dc30e4b4ebe5)) +* populate issuanceId properly ([3d2bd5b](https://github.com/Chia-Network/climate-warehouse/commit/3d2bd5ba48c04cfb161c6af7d627ae7386c5ca60)) +* project inserted without orgUid duplicated in warehouse projects list ([b496b9b](https://github.com/Chia-Network/climate-warehouse/commit/b496b9b548ecad105e4bf161fc9c05a0de810b65)) +* project search query doesnt crash ([bb32c2b](https://github.com/Chia-Network/climate-warehouse/commit/bb32c2bb8911b76da804469f529f57b2bfa79e23)) +* projects returns entire result set on fts ([a05dcb1](https://github.com/Chia-Network/climate-warehouse/commit/a05dcb1a04493f001e6205b7d339e7da0d3944e9)) +* remove console logs ([b8377e7](https://github.com/Chia-Network/climate-warehouse/commit/b8377e73e55cec4e061b0c255a6c8100d17626d0)) +* removing a label from the unit deletes it from the data layer ([4a0fbb8](https://github.com/Chia-Network/climate-warehouse/commit/4a0fbb83d1d3e8ddbcf9b22e4892b6627c44e500)) +* removing an issuance from the unit deletes it from the datalayer ([6a18015](https://github.com/Chia-Network/climate-warehouse/commit/6a18015d2dbf8603e10e4bfcaa46b43ff3fa944c)) +* replace the old XLS generation with the new one ([df859d5](https://github.com/Chia-Network/climate-warehouse/commit/df859d5d6eab5e5bdb17010c3351cbff2b4b4979)) +* resolve case for empty warehouse id ([750f75a](https://github.com/Chia-Network/climate-warehouse/commit/750f75a3f25bdef023e655026894ba2b5324ea90)) +* reuse chosen issuance for unit selection ([d4d69dd](https://github.com/Chia-Network/climate-warehouse/commit/d4d69ddd8f7a03c4e61a5b7dbae15617b461daea)) +* simulator in yml file ([304b1b4](https://github.com/Chia-Network/climate-warehouse/commit/304b1b407ef218096dd541957d0eaa8fa3716115)) +* simulator in yml file ([bd3490e](https://github.com/Chia-Network/climate-warehouse/commit/bd3490e954db544b74649c157ed8a6732675d680)) +* some pr messages ([11884fb](https://github.com/Chia-Network/climate-warehouse/commit/11884fb2fe09c358d384ce4652f9fe11655802a8)) +* staging delete endpoint fix ([9a78b7c](https://github.com/Chia-Network/climate-warehouse/commit/9a78b7c65429201e9b5844f2d54542f4e5c5545f)) +* staging table diff ([4703b4d](https://github.com/Chia-Network/climate-warehouse/commit/4703b4d07dcabf325ff8a5b49b2d089b41fd1988)) +* support simulator on org success ([3b53a55](https://github.com/Chia-Network/climate-warehouse/commit/3b53a558e0ad9c065b22fc4d44ecc4818f1b03e6)) +* syntax error ([a7fb0fa](https://github.com/Chia-Network/climate-warehouse/commit/a7fb0fa55e41c5d8927d62a4dff87ed8c08968e7)) +* test ([02978ad](https://github.com/Chia-Network/climate-warehouse/commit/02978ad7e61d8d49da80d474e29abc2a21cf5cc2)) +* tests ([f87a36b](https://github.com/Chia-Network/climate-warehouse/commit/f87a36b542bb90125eb4f9ac5c2d7bbf24c9f794)) +* timestamp columns are optional ([27255bd](https://github.com/Chia-Network/climate-warehouse/commit/27255bd10ae6f291fcf525c457c6681c44072d97)) +* unit and project update logic when removing child tables ([999f5ed](https://github.com/Chia-Network/climate-warehouse/commit/999f5eda36ddaa6dc90613fcf8d73b8c5f4e2292)) +* unit count ([0634a08](https://github.com/Chia-Network/climate-warehouse/commit/0634a08842ea06790109eff1e9dd3b4fded9ec85)) +* use more appropriate endpoint for datalayer ping test ([e3aa11f](https://github.com/Chia-Network/climate-warehouse/commit/e3aa11f3392fe30f61ce664dfcab8fc1ef6d49dd)) +* wallet import ([0f0871d](https://github.com/Chia-Network/climate-warehouse/commit/0f0871d2592a1bfa89bb4d5ee4597e085e6a6ec1)) +* websocket updates for staging table ([1089283](https://github.com/Chia-Network/climate-warehouse/commit/108928347c9a66b9e796634671a37aa976f5ab7d)) +* wrong name for audit mock ([457bc29](https://github.com/Chia-Network/climate-warehouse/commit/457bc290ee6c110863c03f2a62e7268660c8612e)) +* xls generation ([0075aad](https://github.com/Chia-Network/climate-warehouse/commit/0075aadf8196c71362a9b7fd10a61a3e737050b1)) + +### [0.0.5](https://github.com/Chia-Network/climate-warehouse/compare/v0.0.4...v0.0.5) (2022-01-17) + ### [0.0.30](https://github.com/Chia-Network/climate-warehouse/compare/v0.0.6...v0.0.30) (2022-05-09)