Closed jesperpedersen closed 3 days ago
@MohanadKh03 Can you take this one ?
@Jubilee101 can help with core stuff
Sure! Regarding the networking part though when writing the commands into pgmoneta's socket should it be the same as pgagroal's way ? I can see some pattern but correct me if im wrong 1.Send the header 2.Send the size of the payload 3.Send the payload itself 4.Read the response as a json 5.Extract whatever needed and then print it out in the console
Is that correct ? assuming no failures/errors in any of the steps
Yes, the pgmoneta way is the new way of doing it, so you need to extract information from the "Response" part of the JSON payload based on the input. That is the easy part - think of conf get
as a simple https://jqlang.github.io/jq/ command.
The harder part is the conf set
command, but it shouldn't be that hard either - we need to send a request with the key and the new value
Remember to add yourself to the authors info...
Just let me know if you need anything, welcome! @MohanadKh03
Yes, lets get the full solution now because we need a chapter in the advanced manual that describes how to get the configuration, a field and how to set a field.
The manual work can be separate from this
@MohanadKh03 Where are you on this ?
Hey @jesperpedersen My bad I have been pretty busy and haven’t had a chance to continue working on this. It might be better if someone else takes over to keep things going and not block progress. Thanks and apologies for the late progress.
@MohanadKh03 Thanks for the update !
@jesperpedersen I can continue with this issue, kindly assign me this.
@ashu3103 Ok, but this is an important task very soon
@ashu3103 You can see how it works in pgagroal - here we need to get the configuration as a JSON and then filter out the entry wanted, set is a key/value pair and then matched on the server side. conf ls
is the easiest one as it just a request, and the strings in the Response
part
@ashu3103 Ok, but this is an important task very soon
Sure, I'll keep that in mind and try to wrap it quickly.
@ashu3103 Do conf ls
first and post a draft patch
Create a port of pgagroal's
functionality.
We have
reload
already