Skip to content

[#67][#80] Remove use of Globals

Sam Habiel requested to merge shabiel/YDB-Web-Server:mws67-nogbl into master
  • Remove ydb_env_set usages to ensure a database does not get created, set env manually in Dockerfile, and don't depend on $PATH having yottadb.
  • Remove use of ^%webhome, and uses in ^TMP in _webapi.
  • Change error location for _webjsonDecode, _webjsonEncode from ^TMP("%webjsonerr",$J) to just %webjsonerr.
  • Remove NOGBL variable all across code base
  • The Unit Test framework used globals, which we couldn't have now. As a result, just imported the Unit Test code into the code base and removed the usage of globals there.
  • Minor documentation updates
  • Remove tracing the codebase and tests
  • Reorganize parameters in %webreq, remove NOGBL parameter and replace with HTTPLOG (which needs to be specified explicitly now; previously specified using a global); TRACE parameter removed, all usages of %webhttp removed.
  • In %webtest, remove tracing/coverage, change parameters since we changed the position of various parameters; check $ZCLOSE for a successful mupip stop; Redo the log tests (not perfect, as they still can't find stuff in the simulated stdout even though I can see it if I do the test manually); change the tests that used ^%webhome; remove NOGBL tests as they no longer apply.

Merge request reports