You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Antonio-Maranhao (via GitHub)" <gi...@apache.org> on 2023/07/18 02:43:34 UTC

[GitHub] [couchdb-fauxton] Antonio-Maranhao opened a new pull request, #1403: Syntax highlighting for Mango queries

Antonio-Maranhao opened a new pull request, #1403:
URL: https://github.com/apache/couchdb-fauxton/pull/1403

   ## Overview
   
   Adds a custom mode for the Ace Editor that highlights Mango Query operators. 
   The custom mode also adds warning annotations to the editor's gutter to indicate certain operators can have an adverse impact on query performance.
   
   Before
   ![image](https://github.com/apache/couchdb-fauxton/assets/30349380/731a0985-bebc-4fa3-b58c-a35728ddb7fd)
   
   After
   ![image](https://github.com/apache/couchdb-fauxton/assets/30349380/9b6633c0-6584-4c99-8b1e-5d5af221e7af)
   
   Example of warning annotation:
   ![image](https://github.com/apache/couchdb-fauxton/assets/30349380/fd73838a-a86e-4819-86c5-403564d81d56)
   
   
   ## Testing recommendations
   
   Type a Mango Query in the editor and confirm operators (e.g. `$eq`) are highlighted on a different color.
   
   ## GitHub issue number
   
   n/a
   
   ## Related Pull Requests
   
   n/a
   
   ## Checklist
   
   - [x] Code is written and works correctly;
   - [ ] Changes are covered by tests;
   - [ ] Documentation reflects the changes;
   - [ ] Update [rebar.config.script](https://github.com/apache/couchdb/blob/main/rebar.config.script) with the correct tag once a new Fauxton release is made
   


-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [couchdb-fauxton] Antonio-Maranhao merged pull request #1403: Syntax highlighting for Mango queries

Posted by "Antonio-Maranhao (via GitHub)" <gi...@apache.org>.
Antonio-Maranhao merged PR #1403:
URL: https://github.com/apache/couchdb-fauxton/pull/1403


-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org