markdown LC后端知识转移

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown LC后端知识转移相关的知识,希望对你有一定的参考价值。

# 20180423

## Setup local test env

* Config in resource folder: `local.conf`
* Set host like zookeeper, kafka, app port
* kafka.zk is related to maaii-pubsub project (Kafka API for Maaii)  (required if pubsub version lower than v2)
* Java Run entry point: `Boot.main`
* metric : graphite? (in hunting service)
* log config: `logback.xml`

## develop process

1. Get and discuss in JIRA ticket
1. Commit message follow JIRA ID to trigger Jenkins hook to append message to `JIRA Comments`
1. Wait CR and Lead prove to merge

### JIRA Ticket

* report env
* OP give some log or db data in `Comments`
* QA log also could be found in Kibana.

### Edit Code

### Gerrit Code Review (CR as Github PR)

* Merge Requirement: CR > 1
* Merge Control: team lead
* Commit Guideline:

## Feature: Cancel inquiry from visitor (WEB)

1. webclient init request (xmpp) -> bosh -> MIMS (grpc) -> IM
1. IM -> MNS (http /v2/notification)
1. IM -> MIMS (grpc) -> bosh ->  agent&visitor

### Micro Service

* IM: modify grpc service
  * endInquiry
  * client to IM is by gRPC
  * modify `resources/pubsub.conf`:  `com.m800.common.InquiryDetails`-> `com.m800.liveconnect.common.InquiryDetails`
  * `grpc/util/GrpcServiceHelper.java`
  * `grpc/services/InquiryManagementService.java`
  * `services/impl/InquiryManagementServiceImpl.java`
* MIMS: modify widget comoponent 
  * function `processPacket` add case `TERMINATE_INQUIRY_FROM_VISITOR`
  * refer to `wigetConstant`
  * build.gradle modify mainClassName to : 
    ```
    mainClassName = 'akka.kernel.Main'
    run {
      args 'com.maaii.im.server.Boot'
    }
    ```

### Test

* refer to: `test/java/*Test`, create gRPC request by program
* unit test is required 

以上是关于markdown LC后端知识转移的主要内容,如果未能解决你的问题,请参考以下文章

markdown m800技术调查和知识转移

Lc5-最长回文子串

[M背包] lc518. 零钱兑换 II(完全背包+背包求方案数)

算法随想Day9栈与队列| LC232-用栈实现队列 LC225-用队列实现栈

lc 1199. Minimum Time to Build Blocks

markdown TRM前端转移到Mac