or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
Investigating VBMS Documents not Available in Caseflow #14081
tags:
Echo
Part 1 - old
Acceptance criteria
Plan
Findings
DocCount is shown on Case Details page.
Reader's Total is shown in Reader.
VBMS and VVA counts are shown in eFolder.
Logged-in as VACOLAMD:
Logged-in as BVAJWHITE (doesn't have access to eFolder!): can see same doc counts.
3314680
CAVC type appeal
Why is DocCount is of by 1?Nvmd: refreshing the page hours later shows 289 now.I can see documents with receipt date after Oct 2018.
3621614
Found IHP doc (with tags "IR Back" and "IR HTN")
3765285
Found IHP doc (with tags "SC-CD" and "DIC")
dd3c3db8
Has 2 IHP docs (4/8/2020 and 12/3/2019)
No Vet ID shown in Reader!
As BVAESLEBOFF (doesn't have access to eFolder!), able to see all 149 docs in Reader.
Part 2
https://github.com/department-of-veterans-affairs/caseflow/issues/14081#issuecomment-624842390
Timeline:
[Tue, 21 Apr 2020 00:00:00 UTC +00:00, 303],
[Wed, 22 Apr 2020 00:00:00 UTC +00:00, 2],
[Mon, 27 Apr 2020 00:00:00 UTC +00:00, 4]]
[Fri, 24 Apr 2020, 2],
[Sun, 26 Apr 2020, 3]
[[Wed, 29 Apr 2020 00:00:00 UTC +00:00, 22],
[Tue, 28 Apr 2020 00:00:00 UTC +00:00, 10]]
[Wed, 06 May 2020 00:00:00 UTC +00:00, 21],
[Mon, 11 May 2020 00:00:00 UTC +00:00, 71],
[Tue, 12 May 2020 00:00:00 UTC +00:00, 1],
426 docs were created in Caseflow on these dates:
These docs are created by DocumentFetcher (code) once they have been retrieved. DocumentFetcher uses 2 document_services (EFolderService and VBMSService code) to do retrieval.
Investing caching
app/services/document_fetcher.rb
app/services/external_api/vbms_service.rb:33
EFolder document counts are cached: app/services/external_api/efolder_service.rb:8
VBMS documents are "cached" (retrieved then saved in S3) if it does not already exist in S3
https://github.com/department-of-veterans-affairs/caseflow/blob/43562ed9e75b14c6f949802521da9df6a4214c2b/app/models/document.rb#L122
A document's pdf is provided by app/controllers/document_controller.rb:22, which finds the Document and call
.serve
which gets the contents from S3.Part 3
From related investigation
docs.pluck(:series_id).uniq.size => 440
Reader UI:
df=appeal.document_fetcher
takes a while finishdf.number_of_documents => 439
13 new docs?df.documents.group_by{|d| d.upload_date.beginning_of_day}.map{|k,v| [k,v.size]}.sort
Document
records were created and retrieved but are no longer retrievable by eFolderRecord
that Reader doesn't know about