Re: KX Training & Capstones

I’m working on the advanced capstone and I originally had 2.5 for .viz.CreateDashboard working but when I ran it today it failed both tests. Is there an issue with the testing code? Is there a way to figure out where it’s going wrong? I tried running the tests on the unchanged code and the tests for 

func should return same result as before

still fails. Also it ran in 640 units before, and now it is taking 306 but the test for checking if it runs in half the time still fails.

 

Here are the errors

exercise2.5 Fail "func should return same result as before" ".test.table2.5"
exercise2.5 Fail ".viz.createDashboard should run in half the time" ".test.time2.5"

 I cannot find .test.table2.5 or .test.time2.5 anywhere in the workspace/processes. Is it possible these are not defined?

 

Also, my code doesn’t allow the following user to run the tables query, but the test still fails

exercise3.6 Fail “fiauser cant run tables

Try restarting your session again, so logging out and back in making sure to download/save all your code first. If you had it passing one day, then failing the next it is likely you made the correct relevant changes, but then next day are missing some step/s. 

.test.table2.5 and.test.time2.5 are defined during startup as the code is hidden from the user. But you both are present for inspection - your changes to functions with .viz namespace seem to have altered the result , so check does your output match .test.table2.5 exactly.

Re. 3.6 does your changes do all of the following? Likely could be the last one - are you returning ``notAuthorized as error message?

  • Lookup incoming users api access in .perm.users
  • If they are a user with api access all let them run whatever their incoming query is
  • If the first element of their query matches permissable api listed in .perm.users (Hint: use .perm.parseQuery here) let them run their query
  • Otherwise return the message `notAuthorized

 

For 3.6 If the user doesn’t have access I signal 'notAuthorized, is that incorrect

 

Oh I see they wanted me to return a literal symbol. Thank you! And the .viz. code passed after restarting and rerunning