elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.62k stars 8.22k forks source link

[Infra] BE Endpoints Improvements #175975

Open mykolaharmash opened 9 months ago

mykolaharmash commented 9 months ago

A few potential improvements that we could do to improve the current state of Infra backend:

elasticmachine commented 9 months ago

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

cauemarcondes commented 9 months ago
roshan-elastic commented 2 months ago

Thanks for this, I've reviewed this but in order to prioritise, more info needed in order to understand user value for this.

Are you able to summarise what this value this brings to the user?

crespocarlos commented 2 months ago

@roshan-elastic This is a tech debt, users won't benefit directly from it. This is to address some of the inconsistencies in the infra APIs code and improve it.

roshan-elastic commented 2 months ago

Cheers @crespocarlos - would you say this is one of the best tech debts we could focus on in the backlog or is there something better?

We have space in our top 20 for some tech debt so if you have some candidates, let me know

crespocarlos commented 2 months ago

@roshan-elastic

From that list, I would prioritize the first one. Our APIs need to contain /internal/ in the path.

The items below could be put on hold for now but will be important shortly.

Consider using route repositories pattern similar to how APM does it

Consider using route repositories pattern similar to how APM does it

These are about improving the code base and don't have high priority

Utilizing requestContext more instead of passing around a custom libs object

Review the file structure and make sure it follows a consistent convention

This is a separate topic entirely and needs to be refined and addressed in another ticket

Extract repetitive code, like getting source configuration, into some reusable place

roshan-elastic commented 2 months ago

Oh sorry @crespocarlos - I meant out of the entire backlog :)

If this is one of the top pain-points, I'll prioritise this as top 20 now...(but if there's something else really bugging you as tech debt...I can prioritse that)