-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: check db integrity after building it #753
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n1k0
force-pushed
the
fix/check-db-on-build
branch
2 times, most recently
from
September 16, 2024 16:41
17d9d02
to
b063595
Compare
n1k0
commented
Sep 16, 2024
n1k0
commented
Sep 16, 2024
n1k0
force-pushed
the
fix/check-db-on-build
branch
from
September 17, 2024 08:45
b063595
to
fd4ea0c
Compare
vjousse
approved these changes
Sep 17, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on scalingo with an ecobalyse-private
branch with a missing process, works as expected: the build is failing.
n1k0
force-pushed
the
fix/check-db-on-build
branch
from
September 17, 2024 12:58
c6a6ddf
to
130b5df
Compare
n1k0
force-pushed
the
fix/check-db-on-build
branch
from
September 17, 2024 13:00
130b5df
to
b147743
Compare
n1k0
force-pushed
the
fix/check-db-on-build
branch
from
September 17, 2024 13:04
b147743
to
89a5f52
Compare
vjousse
pushed a commit
that referenced
this pull request
Sep 25, 2024
[2.3.0](v2.2.0...v2.3.0) (2024-09-25) ### Features * add link to changelog in app footer. ([#748](#748)) ([efe88f5](efe88f5)) * airTransportRatio should depend on durability ([#757](#757)) ([a0761d1](a0761d1)) * displayName in the textile explorer, reordered columns ([#737](#737)) ([65d0ed5](65d0ed5)) ### Bug Fixes * **api:** handle ingredient plane transport in food POST api. ([#769](#769)) ([62587e2](62587e2)) * check db integrity after building it ([#753](#753)) ([5b41ef6](5b41ef6)) * check uniqueness of JSON db primary keys at build time. ([#766](#766)) ([0927954](0927954)) * decode and validate all optionals. ([#764](#764)) ([87a7c6a](87a7c6a)) * encode physicalDurability parameter. ([#751](#751)) ([f6750b8](f6750b8)) * fix github CI python build setup. ([#762](#762)) ([ea2cd9f](ea2cd9f)) * fixed brightway explorer notebook error (wrong key) ([#745](#745)) ([bc436c2](bc436c2)) * in brightway explorer: improve display of compartment categories, if any ([#754](#754)) ([757d5a6](757d5a6)) * stricter validation of POST json body passed to the textile API. ([#760](#760)) ([a85bd8a](a85bd8a)) * **textile:** distribution step had no inland road transports added. ([#761](#761)) ([d789d7d](d789d7d)) * Update export outside of EU probability. ([#765](#765)) ([c3fd9f2](c3fd9f2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
n1k0
pushed a commit
that referenced
this pull request
Sep 26, 2024
[2.3.0](v2.2.0...v2.3.0) (2024-09-25) ### Features * add link to changelog in app footer. ([#748](#748)) ([efe88f5](efe88f5)) * airTransportRatio should depend on durability ([#757](#757)) ([a0761d1](a0761d1)) * displayName in the textile explorer, reordered columns ([#737](#737)) ([65d0ed5](65d0ed5)) ### Bug Fixes * **api:** handle ingredient plane transport in food POST api. ([#769](#769)) ([62587e2](62587e2)) * check db integrity after building it ([#753](#753)) ([5b41ef6](5b41ef6)) * check uniqueness of JSON db primary keys at build time. ([#766](#766)) ([0927954](0927954)) * decode and validate all optionals. ([#764](#764)) ([87a7c6a](87a7c6a)) * encode physicalDurability parameter. ([#751](#751)) ([f6750b8](f6750b8)) * fix github CI python build setup. ([#762](#762)) ([ea2cd9f](ea2cd9f)) * fixed brightway explorer notebook error (wrong key) ([#745](#745)) ([bc436c2](bc436c2)) * in brightway explorer: improve display of compartment categories, if any ([#754](#754)) ([757d5a6](757d5a6)) * stricter validation of POST json body passed to the textile API. ([#760](#760)) ([a85bd8a](a85bd8a)) * **textile:** distribution step had no inland road transports added. ([#761](#761)) ([d789d7d](d789d7d)) * Update export outside of EU probability. ([#765](#765)) ([c3fd9f2](c3fd9f2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π§ Problem
We didn't check if the static Elm database built was valid, allowing deploying to production a broken app.
π° Solution
Introduce a script to check the build database integrity.
ποΈ How to test
Tweak the static JSON data sources and run
npm run db:build && db:check
: