BIBO (D) [1 BUG, 2 TODOs]
|
09-24-2020, 10:28 PM
Post: #11
|
|||
|
|||
RE: BIBO (D)
(09-24-2020 01:05 PM)zhihao Wrote: talk2thinker.sh This is not the best name. But let's tolerate it. Quote: tellThinker should really talk to think. But insert() does not. So the name is inadequate. I suggest we rename it to triage() because it differentiates different types of requests and dispatch them to different functions. RR zhihao |
|||
09-24-2020, 10:32 PM
(This post was last modified: 09-24-2020 10:43 PM by lingu.)
Post: #12
|
|||
|
|||
RE: BIBO (D)
(09-24-2020 01:05 PM)zhihao Wrote: delete_case() This is problematic because we give a result '200' before Sage invokes think to run the tasks. It is possible something goes wrong with the delete, but the client receives '200' and think everything is fine. That's a bug. I am removing the success response. Then the delete_case function does not return 200, and it is a problem. Code: 21:40:44 lingu@g1b-2:/home/lingu/forest/prada/prada> make -C procuratorate test |
|||
09-24-2020, 10:52 PM
Post: #13
|
|||
|
|||
RE: BIBO (D)
(09-24-2020 01:05 PM)zhihao Wrote: procone.py This delete() is different from delete_case() so the name is fine. But I still feel it is too "general" a name. How about we rename it deleteIfMatch? Quote: else procone is quite complex. Pls separate it as a standalone thread. |
|||
09-24-2020, 10:55 PM
(This post was last modified: 09-24-2020 10:57 PM by lingu.)
Post: #14
|
|||
|
|||
RE: BIBO (D)
(09-24-2020 01:05 PM)zhihao Wrote: delete() I see the implementation is not a function, yet. Pls make it a function soon. Quote: if $reqcaseid matches $caseid Just say 'rid --insitu insert.json' Quote: create empty file insert.jsonIt is not a really empty file, is it? After the match-and-delete, we should generate a result file to report the result of the deletion. If there is no match and no deletion, the result file is a nil file -- a file with zero bytes. |
|||
09-24-2020, 11:58 PM
Post: #15
|
|||
|
|||
RE: BIBO (D)
(09-24-2020 10:55 PM)lingu Wrote:(09-24-2020 01:05 PM)zhihao Wrote: delete() 我这里看procone.py是已经将删除功能设为函数,且今天没有修改过procone.py,也许是我没有push该文件 Code: ... |
|||
09-25-2020, 12:18 AM
Post: #16
|
|||
|
|||
RE: BIBO (D)
(09-24-2020 08:19 PM)lingu Wrote:将getresults()删除,后面再将其加到query_case()后执行。已更新首文为如下内容:(09-24-2020 01:05 PM)zhihao Wrote: talk2thinker.sh Code: work() { (09-24-2020 08:19 PM)lingu Wrote:首文修改为Quote:tellThinker() informs think about the request. (( change user to sage2 -> set $sage_user as sage2)) (09-24-2020 08:19 PM)lingu Wrote:Quote: use program auntie to register $tspfn OK, I'll reply headpost and update these two D info in #22 |
|||
09-25-2020, 12:33 AM
Post: #17
|
|||
|
|||
RE: BIBO (D)
(09-24-2020 08:22 PM)lingu Wrote:renamed maketest.sh to test_crds.sh and created file "test_delete.sh test_insert.sh test_read.sh test_select.sh" in cod://prada/procuratorate(09-24-2020 07:57 PM)zhihao Wrote:Dont make a big test of all tests. Make small tests and combine them.(09-24-2020 07:22 PM)lingu Wrote:在cod://prada/procuratorate/ 内创建Makefile和maketest.sh。(09-24-2020 06:01 PM)zhihao Wrote: 在cod://prada内添加了Makefile逻辑,添加maketst.sh。目前make test可测试插入删除。 (09-24-2020 08:22 PM)lingu Wrote:created in test_crds.sh -- OMUDQuote:maketest.sh D info: |
|||
09-25-2020, 12:51 AM
Post: #18
|
|||
|
|||
RE: prada -- D
(09-24-2020 08:26 PM)lingu Wrote:added a 'select' function to tellThinker()(09-24-2020 02:08 PM)zhihao Wrote: tellThinker() informs think about the request. (09-24-2020 08:26 PM)lingu Wrote: Pls design the 'select' function. You can ask collaborators if you are not sure what 'select' is expected to do. select function designed as follows: Code: select_case() { (09-24-2020 08:26 PM)lingu Wrote: Pls also add a query test and a select test. OK |
|||
09-25-2020, 12:53 AM
Post: #19
|
|||
|
|||
RE: BIBO (D)
(09-24-2020 10:28 PM)lingu Wrote:LGTM and updated headpost and cod://prada/procuratorate/talk2thinker.sh(09-24-2020 01:05 PM)zhihao Wrote: talk2thinker.sh |
|||
09-25-2020, 01:16 AM
Post: #20
|
|||
|
|||
RE: BIBO (D)
(09-24-2020 10:52 PM)lingu Wrote:OK, updated headpost and cod.(09-24-2020 01:05 PM)zhihao Wrote: procone.py (09-24-2020 10:52 PM)lingu Wrote:created in procone.py -- OMUDQuote: else |
|||
« Next Oldest | Next Newest »
|
- View a Printable Version
- Send this Thread to a Friend
- Subscribe to this thread
- Show the subscribers of this thread:
- Add subscribers to this thread: