Mike Gerwitz

Activist for User Freedom

path: root/doc
diff options
authorMike Gerwitz <gerwitzm@lovullo.com>2017-08-24 13:03:44 -0400
committerMike Gerwitz <gerwitzm@lovullo.com>2017-08-30 11:20:19 -0400
commit3fa464bc3ae6ff3b131442d66c9c15df0f83dec9 (patch)
tree2bc67f6bb5884fe757b780a862c1f9d3f930a172 /doc
parent8d4439f16d24e30c360210514b6d3ae56fc96683 (diff)
Extract bucket init code into ProgramInit
This represents a portion of the refactoring that I had intended to do until I realized that there was a simpler solution to the problem that we were having (having proguic add stored calculated values to the defaults object). So ideally we'll continue extracting all quote init code out of `Server' and into `ProgramInit' in the future. * doc/server.texi (Liza Server): Mention `ProgramInit'. * src/program/ProgramInit.js: Add class. * src/server/DocumentServer.js: Use it. * src/server/Server.js (_progInit): Add private field. (__construct): Accept ProgramInit instance and assign to field. (initQuote): Use promise returned by `_getDefaultBucket'. (_getDefaultBucket): Proxy to `ProgramInit#init', which returns a promise.
Diffstat (limited to 'doc')
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/server.texi b/doc/server.texi
index 10a3229..8463adf 100644
--- a/doc/server.texi
+++ b/doc/server.texi
@@ -13,7 +13,9 @@
@maintenance{The @srcrefjs{server/daemon,Daemon} monolith and
among other things,
- need refactoring.}
+ need refactoring.
+ Quote initialization code should be moved into
+ @srcrefjs{server,ProgramInit}.}