suninuni commented on issue #2057:
URL: 
https://github.com/apache/apisix-dashboard/issues/2057#issuecomment-897358396


   > I also tested it on the local apisex environment and confirmed that when 
the key is not within the optional range, the API will return an error. The 
route record cannot be created normally at this time.
   
   > Therefore, I would like to know if you have done some other operations, 
such as directly operating ETCD, etc.
   
   @bzp2010 I just modified the file limit-count.lua according to the document 
in Apisix image.
    
   
![image](https://user-images.githubusercontent.com/7345529/129142406-4175517f-5f5b-4f6d-93ee-047addfbbba4.png)
   
   > AND update limit-count.lua with new key http_x_account_id.
   
   Add http_x_account_id in the 
[enums](https://github.com/apache/apisix/blob/174044e60cfbad6f8aa023200f3be145f5249ed1/apisix/plugins/limit-count.lua#L41).
   
   SO the enums is defined in three places, which mean I need update them if I 
want add a new key?
   
   - dashboard:
       - web/src/components/Plugin/UI/limit-count.tsx 
https://github.com/apache/apisix-dashboard/blob/af855915896562c488c2b4669e24883cd140cfb5/web/src/components/Plugin/UI/limit-count.tsx#L265-L270
       - api/conf/schema 
https://github.com/apache/apisix-dashboard/blob/82575987ebc18b46676a397732c2c4c09dd37191/api/conf/schema.json#L3476
    - apisix:
        - limit-count.lua 
https://github.com/apache/apisix/blob/174044e60cfbad6f8aa023200f3be145f5249ed1/apisix/plugins/limit-count.lua#L41
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to