Open hudson-newey opened 1 year ago
Todo:
analyses-results
component to AnalysisResults
modelfaker.js
is causing bundle to be so large (causing CI to fail)getItems()
method in analyses-results.component.ts
to an async/await method. This should fix this race conditions & unit tests6 files 6 suites 16m 4s :stopwatch: 17 616 tests 17 052 :heavy_check_mark: 564 :zzz: 0 :x: 17 724 runs 17 160 :heavy_check_mark: 564 :zzz: 0 :x:
Results for commit a00e9087.
:recycle: This comment has been updated with latest results.
Size Change: +10.1 kB (0%)
Total Size: 2.68 MB
Filename | Size | Change |
---|---|---|
dist/workbench-client/browser/index.html |
3.85 kB | +17 B (0%) |
dist/workbench-client/browser/main.****************.js |
849 kB | +4.15 kB (0%) |
dist/workbench-client/browser/styles.****************.css |
37.5 kB | +17 B (0%) |
dist/workbench-client/server/main.js |
1.78 MB | +5.87 kB (0%) |
I'm currently observing a race condition.
It is originating from this getItems()
method in analyses-results.component.ts
. To fix this, I am going to be changing getItems()
to an async/await method, and am going to change the api.list()
to api.show()
. This is the last remaining task, everything else should be all done and ready for review
I know this is a big PR, so thanks for the review. I'm going through the requested changes now and will get back to you asap
The code currently pushed is not ideal & is of bad quality, but has the requirements listed above implemented (sub 1).
I am going to be cleaning up the code quality before submitting it for review, but I wanted to push it to avoid losing my work due to a hard drive failure, etc... and create a point of reference for a very rough MVP.
Personal Review TODO list
analyses-results.component.spec.ts
testanalysis-download-row.component.spec.ts
testsAudioRecording.spec.ts
testsArray.prototype.sort()
methodthis.rows
array is a new instance every change. Therefore the observable isn't being updated. I need to find a fix for thisanalysis-results.component.ts
@BawBytes
decorator to AnalysisJobItemResult
modelanalysis-download-row.component.ts
analysis-download-row.component.spec.ts
analysis-download-row.component.ts
view model in testsanalysis-download-row.component.ts
(it shouldn't have any knowledge of routes)px
in css and replace with em / remanalysis-results.component.spec.ts
default audio recording not to have a specified ID attributesetup()
in analysis-results.component.spec.ts
needs { detectChanges: false }
(it does)getDownloadButton
in analysis-results.component.spec.ts
I should use By.css()
instead of by index (By.css
only works on jasmine fixtures, not HTML elements, this is NA)AnalysisJobItemResult
model on ResultNode
(not needed because the models are incomplete)I'm not going to merge this until associated changes with the API are finalized. https://github.com/QutEcoacoustics/baw-server/tree/pbs-analysis
Default Analyses results view
Downloading the default analyses from audio recordings
Changes
Problems
Download functionality for directories in the form of ZIP files needs to be completed as part of another ticket
Issues
Fixes: #2011
Visual Changes
Final Checklist
npm run lint
)npm run test:all
)