If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.
New contributors please see our Developer's Guide.
Notes: Jira ticket
Mattermost is improving its CLI interface and we're looking for contributors to help with that effort. This Help Wanted issue is to implement config reset
command in the CLI.
Allow reset the value of a config setting to default value. It must write the config/config.json file. If the user doesn't pass the setting or pass a setting section, it will ask for confirmation and reset all the values (or all the values in the section).
Example: config reset SqlSettings.DriverName
Before you start, make sure you read this short Documentation
If you need other examples you can see the PR mattermost/mattermost-server#9094
I would like to work on this.
Awesome :)
Hey @mukulrawat1986 - just wondering if you are still working on this ticket?
@grundleborg I am. Just a bit under weather, I will make a PR by the weekend. Or do you want me to hurry it up?
No need to hurry! Take your time. I was just checking up on this ticket, that's all. Hope you feel better soon :)
Hey @mukulrawat1986, How is your work on this ticket doing? Can we help with something?
@hanzei Hey, I am just busy with some personal things, I have done half of this already. I will try and push it soon.
Thanks for the heads up @mukulrawat1986. No need to hurry, I just wanted to check if you are still working on this and if you need help. Looking forward to your PR!
Hey @mukulrawat1986,
Just want to check out, if you are still working on this one.
Hey @hanzei , if it is okay with you I would like to ask some questions just to wrap some understanding.
Thank you very much.
Have a good day.
Hey @joshuabezaleel,
The default values can be found in model/config.go
.
I'm not sure I understand your question. This CLI commands is used to changes values in config.json
. Only in the dev environment default.json
is used instead.
If you have other questions, let me know. :smile:
Hey @hanzei ,
Your previous answer is so helpful. Thank you.
I am really sorry if I will still ask more questions.
Thank you very much. Have a good day.
ReadConfig()
method in utils/config.go
.Feel free to ask more questions :wink:
Those two are what I am looking for, thank you @hanzei !
For the number of the arguments, do you think that there is a maximum number of it that can be passed by the user?
If it is okay, I would like to give a shot on this.
@hanzei Hey, sorry for getting back to you so late. Yeah, I am almost done with it, I have been busy with some interviews that I am giving. I will finish it off and push the tests this week. If its not done by coming Monday you can take it over.
I don't think there has to be a maximum @joshuabezaleel.
I think I didn't made clear that someone is working on this issue. Sorry.
@hanzei it's okay, you haven't put the "up for grabs" label yet but I asked questions since the gap is too long. Thank you very much for answering the questions! :)
Hi @hanzei , since @mukulrawat1986 is not giving any update since Monday, I tried to take a shot on this.
I am sorry for any mistakes since this is my first PR here. Looking forward to your review.
Thank you very much.
I would like to look into this issue
Hey @jaydeland,
Thanks for you interest in the project. We mark available ticket with the "Up for Grabs" label. In this case @joshuabezaleel is already working on this. You can find a list of the available tickets at https://github.com/mattermost/mattermost-server/labels/Up%20For%20Grabs
@hanzei - thank you for the details