Skip to content

Remove usage of .construct() method#68

Merged
CasperWA merged 13 commits intomasterfrom
cwa/fix-67-66-construct-method-development-setup
Mar 3, 2022
Merged

Remove usage of .construct() method#68
CasperWA merged 13 commits intomasterfrom
cwa/fix-67-66-construct-method-development-setup

Conversation

@CasperWA
Copy link
Contributor

@CasperWA CasperWA commented Mar 3, 2022

Fixes #67
Closes #66

CasperWA added 3 commits March 3, 2022 10:53
This is only available for the `development` Dockerfile target.
The `construct()` method of pydantic models doesn't actually "cast" the
input values to the desired attribute types, e.g., not converting a
string to a URL type - this is very undesired.
@CasperWA CasperWA added the BLOCKING This issue or PR blocks further development label Mar 3, 2022
@CasperWA CasperWA requested a review from jesper-friis March 3, 2022 10:00
@CasperWA CasperWA enabled auto-merge (squash) March 3, 2022 10:04
@codecov-commenter
Copy link

codecov-commenter commented Mar 3, 2022

Codecov Report

Merging #68 (83de88a) into master (8606752) will not change coverage.
The diff coverage is 53.84%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #68   +/-   ##
=======================================
  Coverage   68.11%   68.11%           
=======================================
  Files          15       15           
  Lines         414      414           
=======================================
  Hits          282      282           
  Misses        132      132           
Flag Coverage Δ
pytest 68.11% <53.84%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
app/routers/dataresource.py 28.35% <0.00%> (ø)
app/routers/session.py 50.00% <0.00%> (ø)
app/routers/transformation.py 68.18% <75.00%> (ø)
app/routers/datafilter.py 80.43% <100.00%> (ø)
app/routers/mapping.py 80.43% <100.00%> (ø)

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 8606752...83de88a. Read the comment docs.

CasperWA added 2 commits March 3, 2022 11:26
A default is set through the docker-compose_dev.yml file, however if not
using docker compose, but straightup docker, this will fail currently.

Adds a check to see whether PATH_TO_OTEAPI_CORE even exists/is empty or
not.
@CasperWA CasperWA disabled auto-merge March 3, 2022 10:31
@CasperWA CasperWA enabled auto-merge (squash) March 3, 2022 11:02
@CasperWA CasperWA merged commit b1886f6 into master Mar 3, 2022
@CasperWA CasperWA deleted the cwa/fix-67-66-construct-method-development-setup branch March 3, 2022 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BLOCKING This issue or PR blocks further development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom pydantic types not used for .construct() method Allow custom path to oteapi-core in development Docker target

3 participants