quarkus icon indicating copy to clipboard operation
quarkus copied to clipboard

Add MongoDB Compass to the DevService / DevUI

Open Inithron opened this issue 1 year ago • 2 comments

Description

The MongoDB client extension provides the possibility to start a MongoDB container when running tests or in dev mod. It would be great it the extension would also provide a GUI like MongoDB Compass for the database.

Implementation ideas

Create a MongoDB Compass image, start it together with the MongoDB and add a link to the GUI in the DevUI

Inithron avatar Jun 17 '24 08:06 Inithron

/cc @cescoffier (devui), @geoand (devservices), @loicmathieu (mongodb), @phillip-kruger (devui), @stuartwdouglas (devservices)

quarkus-bot[bot] avatar Jun 17 '24 08:06 quarkus-bot[bot]

Hi, Can I have a short feedback, if this is something you will implement, or if it is for some reasons not possible?

Inithron avatar Jun 29 '24 19:06 Inithron

Hi, Even if it can be handy, I'm not sure we already have this kind of feature anywhere in Quarkus. And the main question is, would you be eager to propose a PR to implement this? As I don't think someone else would want to implement and maintain this.

@geoand, maybe you have some thoughts about this?

loicmathieu avatar Jul 09 '24 11:07 loicmathieu

I think it's a good idea. We do have something similar in various extensions (the LGTM stack for example adds this, the quarkus-mailpit is anothe example I can think of)

geoand avatar Jul 09 '24 11:07 geoand

Why not just use compass? If you fix the dev services port on application.properties e.g quarkus.mongodb.devservices.port=27017 then you can use a connection string similar to mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.5 on compass, if in doubt on what your connection string is you can get it directly by running mongosh on your terminal whilst the container is running

elizarazo1 avatar Aug 23 '24 20:08 elizarazo1

@elizarazo1 this is how we do it currently. But there are other extensions like the Kafka extension which provides a GUI to see the amount of topics, messages, etc. There are also 3rd party tools wich do exactly the same. But it is more convenient just use the integrated GUI. The same applies for Compass. Instead of starting an additional tool it would be more convenient if the GUI would be integrated in the DevUI.

Inithron avatar Oct 02 '24 18:10 Inithron