Closed johnding1996 closed 6 years ago
Issue 1: querier.get
method may cause exceptions when not found, and this is not even covered by unittests.
Issue 2: change user_id to hash code of length 32 char(32)
.
Issue 3: the set of states are changed, update this in StateKeeper
class
Issue 4: maybe reference the set of valid states inside the controller, to avoid duplicated definition of states in the whole project.
Issue 5: Querer.add
expect knowing the ids before adding it to the DB, but actually we do not know which id is occupied. Please use 100~200
currently
Issue 6: some overload methods of add, update, delete could be implemented easily and good to use.
Issue 7: some constructors are not public, should made default and useful constructor public
All potential issue collected, will update database package and merge to develop tomorrow morning. The new version number will be v1.2
The visibility of constructors of querier classes is default
, how to instantiate a querier in another package say agent
?
@thomaszhouan thanks for pointing out this, it already list in issue 7.
@thomaszhouan As for Issue 4, I just found that stateNameSet
is already defined in State
class. Should I make it public to use it in the StateKeeper
? A better method is to make a public get
method.
For validation, you could call the public method validateStateName
@thomaszhouan Great, sorry for not finding it before.
Closed since database v1.2 is released
Database package v1.1 is released recently, but, as excepted, there might be bugs and things to review and revise in it. This issue serves as the dialog to propose changes of v1.1. @WSGuo and I will update it to v1.2 very soon.