Skip to content

Remove filename_md5 from backend#227

Merged
cguedes merged 2 commits into
mainfrom
190-chore-get-rid-of-filename_md5-field-on-reference
Jun 30, 2023
Merged

Remove filename_md5 from backend#227
cguedes merged 2 commits into
mainfrom
190-chore-get-rid-of-filename_md5-field-on-reference

Conversation

@gjreda

@gjreda gjreda commented Jun 29, 2023

Copy link
Copy Markdown
Collaborator

fixes #190


Discussed this with @cguedes and it makes more sense for us to consider the source_filename to be the true unique id of the Reference file, since that implicitly happens on the filesystem anyway.

@codecov

codecov Bot commented Jun 29, 2023

Copy link
Copy Markdown

Codecov Report

Merging #227 (73681d2) into main (a15b30f) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #227      +/-   ##
==========================================
- Coverage   72.54%   72.52%   -0.03%     
==========================================
  Files         103      103              
  Lines        5150     5146       -4     
  Branches      407      407              
==========================================
- Hits         3736     3732       -4     
  Misses       1396     1396              
  Partials       18       18              
Impacted Files Coverage Δ
python/sidecar/shared.py 96.42% <ø> (-0.19%) ⬇️
python/sidecar/typing.py 97.29% <ø> (-0.04%) ⬇️
python/sidecar/ingest.py 91.47% <100.00%> (ø)
src/api/ingestion.ts 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@gjreda

gjreda commented Jun 29, 2023

Copy link
Copy Markdown
Collaborator Author

@cguedes or @sehyod can y'all help with the front-end changes for this? It looks like we use filename_md5 in a handful of places and I felt unsure about refactoring that.

@sehyod

sehyod commented Jun 30, 2023

Copy link
Copy Markdown
Collaborator

I have pushed the changes for the frontend:

  • updated parsePdfIngestionResponse to use source_filename as id
  • removed filename_md5 from test mocked data

@cguedes cguedes marked this pull request as ready for review June 30, 2023 08:23
@cguedes cguedes merged commit 96cf4a1 into main Jun 30, 2023
@cguedes cguedes deleted the 190-chore-get-rid-of-filename_md5-field-on-reference branch June 30, 2023 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: Get rid of filename_md5 field on Reference

3 participants