dbeck121 / CPI-Helper-Chrome-Extension

58 stars 20 forks source link

Idea: Body tab #89

Open bdbais opened 1 year ago

bdbais commented 1 year ago

Could you add Regex search and XPath/JsonPath field to check directly inside body window?

bdbais commented 1 year ago

Same research with all trace to identify where is a specified value appears on messages (which step).

Incpi commented 11 months ago

I think for the body we can switch to the monaco editor which supports regex out of the box. Search Xpath can be defined separately.

Br, Omkar

dbeck121 commented 11 months ago

@incpi sounds interesting. Do you have any experience with the monaco editor and how to integrate it?

Incpi commented 11 months ago

Hi, I do not in vanilla js. I was looking for some alternative solutions but Monaco is my first choice out there as it is maintained by MS. I apparently found out SAP uses ace.js for native code editor in CI/CPI.

Feasibility with other libs for highlights like prism.js is a big factor here.

dbeck121 commented 11 months ago

Sounds good, let's put it on the backlog :-)

Incpi commented 7 months ago

Hello,

I wanted to share my views on XPath/JsonPath and regex. I think regex is used more often. Editor now supports regex but not Xpath/Jpath from v3.12.0

Also, about your other idea, it's really essential to search certain value in messages. But I'm skeptical about the feasibility of reading and storing all logs to then provide search results. It seems overly demanding for both the system and the API.

Your suggestion is really appreciated and has made things better. Thanks for that.