topcoderinc / va-pseudovet

pseudovet Project For VA
1 stars 1 forks source link

Clicking on 'Save' button while loading a configuration file displays an error #22

Closed sdgun closed 6 years ago

sdgun commented 6 years ago

Target URL

http://127.0.0.1:5000/load

Steps to Reproduce

  1. Open the URL http://127.0.0.1:5000/
  2. Click 'Load Configuration' Tab
  3. Drag and Drop a File (Attached) DATASET CONFIGURATION 1 (1).zip
  4. Click SAVE

Actual Result(s)

Expected Result(s)

Frequency

Environment Details

Image(s)/Video(s)/Console Log/Crash Log

127.0.0.1-1520744369206.log

polyfills.7edc676f7558876c179d.bundle.js:1 PUT http://127.0.0.1:5000/api/v1/datasetConfigurations 400 (BAD REQUEST)
y @ polyfills.7edc676f7558876c179d.bundle.js:1
t.scheduleTask @ polyfills.7edc676f7558876c179d.bundle.js:1
onScheduleTask @ polyfills.7edc676f7558876c179d.bundle.js:1
t.scheduleTask @ polyfills.7edc676f7558876c179d.bundle.js:1
e.scheduleTask @ polyfills.7edc676f7558876c179d.bundle.js:1
e.scheduleMacroTask @ polyfills.7edc676f7558876c179d.bundle.js:1
v @ polyfills.7edc676f7558876c179d.bundle.js:1
(anonymous) @ polyfills.7edc676f7558876c179d.bundle.js:1
F.i.(anonymous function) @ polyfills.7edc676f7558876c179d.bundle.js:1
(anonymous) @ main.dfe331c72a985818f76d.bundle.js:1
t._trySubscribe @ main.dfe331c72a985818f76d.bundle.js:1
t.subscribe @ main.dfe331c72a985818f76d.bundle.js:1
t.call @ main.dfe331c72a985818f76d.bundle.js:1
t.subscribe @ main.dfe331c72a985818f76d.bundle.js:1
n.a @ main.dfe331c72a985818f76d.bundle.js:1
n._innerSub @ main.dfe331c72a985818f76d.bundle.js:1
n._tryNext @ main.dfe331c72a985818f76d.bundle.js:1
n._next @ main.dfe331c72a985818f76d.bundle.js:1
n.next @ main.dfe331c72a985818f76d.bundle.js:1
n._subscribe @ main.dfe331c72a985818f76d.bundle.js:1
t._trySubscribe @ main.dfe331c72a985818f76d.bundle.js:1
t.subscribe @ main.dfe331c72a985818f76d.bundle.js:1
t.call @ main.dfe331c72a985818f76d.bundle.js:1
t.subscribe @ main.dfe331c72a985818f76d.bundle.js:1
t.call @ main.dfe331c72a985818f76d.bundle.js:1
t.subscribe @ main.dfe331c72a985818f76d.bundle.js:1
t.call @ main.dfe331c72a985818f76d.bundle.js:1
t.subscribe @ main.dfe331c72a985818f76d.bundle.js:1
(anonymous) @ main.dfe331c72a985818f76d.bundle.js:1
t @ polyfills.7edc676f7558876c179d.bundle.js:1
t.toPromise @ main.dfe331c72a985818f76d.bundle.js:1
t.createOrUpdatedatasetConfiguration @ main.dfe331c72a985818f76d.bundle.js:1
t.onSaveClick @ main.dfe331c72a985818f76d.bundle.js:1
(anonymous) @ main.dfe331c72a985818f76d.bundle.js:1
handleEvent @ main.dfe331c72a985818f76d.bundle.js:1
handleEvent @ main.dfe331c72a985818f76d.bundle.js:1
be @ main.dfe331c72a985818f76d.bundle.js:1
(anonymous) @ main.dfe331c72a985818f76d.bundle.js:1
(anonymous) @ main.dfe331c72a985818f76d.bundle.js:1
t.invokeTask @ polyfills.7edc676f7558876c179d.bundle.js:1
onInvokeTask @ main.dfe331c72a985818f76d.bundle.js:1
t.invokeTask @ polyfills.7edc676f7558876c179d.bundle.js:1
e.runTask @ polyfills.7edc676f7558876c179d.bundle.js:1
e.invokeTask @ polyfills.7edc676f7558876c179d.bundle.js:1
m @ polyfills.7edc676f7558876c179d.bundle.js:1
b @ polyfills.7edc676f7558876c179d.bundle.js:1
main.dfe331c72a985818f76d.bundle.js:1 n {headers: t, status: 400, statusText: "BAD REQUEST", url: "http://127.0.0.1:5000/api/v1/datasetConfigurations", ok: false, …}
sdgun commented 6 years ago

15

nanke- commented 6 years ago

@talesforce The provided test file DATASET CONFIGURATION 1 (1).zip has two invalid data.

  1. Sum of femaleRatio and maleRatio is not 100.
  2. value of percentOfPopulationWithDiagnosisRisk and percentOfProbabilityToAcquireDiagnosis are null. I have fixed to support the null value, but i think another invalid data is the prerequisite and just correct the data is ok. Can you confirm it? Or giving an solution to handle it ?
talesforce commented 6 years ago

Confirmed

On Sat, Mar 17, 2018 at 2:13 PM, nanke- notifications@github.com wrote:

@talesforce https://github.com/talesforce The provided test file DATASET CONFIGURATION 1 (1).zip has two invalid data.

  1. Sum of femaleRatio and maleRatio is not 100.
  2. value of percentOfPopulationWithDiagnosisRisk and percentOfProbabilityToAcquireDiagnosis are null. I have fixed to support the null value, but i think another invalid data is the prerequisite and just correct the data is ok. Can you confirm it? Or giving an solution to handle it ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/topcoderinc/va-pseudovet/issues/22#issuecomment-373904390, or mute the thread https://github.com/notifications/unsubscribe-auth/AB7vcXXTFnYgasVkXVOAI19lo81HOlkIks5tfMzKgaJpZM4Slj7A .

--

Regards,

Talesforce Co-pilot/ Reviewer/ Ex-Community Advisory Board talesforce@topcoder.com / admin@talesforce.com

www.topcoder.com http://topcoder.com/ / topcoder.com/blog / @Topcoder https://twitter.com/topcoder 760 Market Street, 11th Floor, San Francisco, CA 94102