New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix wrong default yes/no value in management commands #254
Fix wrong default yes/no value in management commands #254
Conversation
@abdullahkady How you are assuming that the default is Y? |
I'm not assuming, the existing implementation defaults to No, but rather shows the default in the terminal as Y, so I just edited it to show the correct default (which is No) I just read the issue you provided, I'm not sure if I understand correctly, but it seems that you don't think that |
@abdullahkady You are assuming "Y" is default by seeing the "Y" as uppercase. But there are no standard about that the default one should be uppercased. |
I already linked 2 answers discussing it, you can see how popular cmd tools use it (such as In the end: whatever you think, it's your decision anyway. |
@abdullahkady I understand that it is mostly used. But it is not a convention. You can make the letter as small case and add a message like Moreover, having a forum answer maybe counted as opinion, not reference. |
@abdullahkady I've forked https://github.com/django-elasticsearch/django-elasticsearch-dsl and already added a few new features (it's on PyPI as |
@safwanrahman I will kindly add my opinion. If you see [Y/n] in a question of a unix CLI without any other indication, most people will assume Y is the default. I think this really is enough of a problem to fix it by either:
but leaving it as is, is misleading for most of the users, hence a real problem. |
@alexgarel Thanks for your comment. I have mentioed about explicitly showing the default in #254 (comment) . @andreasnuesslein Forking the repository without any strong reason does not make sense. It is just reinventing the wheel without any reason. Making the community devided for this small package will not bring any good things to the community. |
@andreasnuesslein Thanks! but I'm not really a fan of just creating forks unless it's a major-non-compatible change because it divides the community for no reason. @safwanrahman You can go ahead and implement the |
@abdullahkady I am sorry if it seems like one sided conversation/opinion. As you have suggested earlier, making both smaller and mentioning the default explicitly make sense. As you have opened the PR (Thanks for that), it would be great if you can change it and push a new commit. I will be happy to merge it. |
If this package actually picks up pace again I'll gladly merge back. However there haven't been any responses from both developers in a month or so. It's nice @safwanrahman, that you are back on this but it really feels like sabricot dropped out completely and you are also a bit too swamped to handle all the PRs coming in on your own. |
@andreasnuesslein I think it is wise and norm to email the maintainers before creating a new organization and inviting them. Without any context, I have got a invitation to django-elasticsearch and declined because I did not like the approach. As far as I have checked, I did not get any email or any IRC message from you where you have proposed any organization or anything. |
@safwanrahman kinda funny hearing about "the norm" from the guy who will not accept the actual norm of uppercasing the default on a CLI However I'll give you that I could've been more verbose in my contact attempts. (I did not expect an answer to be honest.) I do require a quick development pace with this package at the moment though so I'm wondering if you and or @sabricot would be willing to accept more maintainers to this project? |
Hi @safwanrahman I just want to point that @andreasnuesslein is right on the point about the upper case argument, meaning default choice. I hope, you will be able to understand each other for the benefits of most users. |
As @alexgarel is agree with the changes, I am ok to merge it. Thanks @abdullahkady for the change request. |
@andreasnuesslein I think you should appreciate the effort of the creator of this package and the current maintainer of this package. Your attitude seems to be disrespectful to both of them and also maybe make them depressed to contribute to open source. Regarding maintainers acceptance, I have only collaboration access so I can not give anyone any access. Personally, I am open to more collaborators and contributors like @alexgarel and I have given him access on Read The Docs to publish our documentations. But the way you have approached, it is not wise enough to welcome anyone for collaboration. I wish best of luck with your fork as you want a faster development face. Forking is easy and maintaining only own needs is easier than maintaining a general purpose package that can run in most of the systems. |
It's interesting that you think I don't appreciate the effort - quite the contrary: I think the project is good enough that it should be allowed to grow. However I think the fact that the only person able to actually add more maintainers/collaborators/developers has not been active for over a year is quite stifling to the project and in my opinion totally warrants a fork. You may have noticed that when I forked I of course invited you and Sabricot to join and also added you and a few others to the My goal was to enliven the project which I don't think is possible in this setting here (sabricot being the only one with the relevant rights). So, to whom it may concern: The fork is totally supposed to be for a broad audience and I'd love to add some maintainers. |
I can add contributor or move the project somewhere else. |
@andreasnuesslein If you really wanted to help the maintainers, you had other option as well. You could ask the people to create a separate github organization and move it to there. As I said earlier, you have sent me the invitation without any context or anything. So I did not like the intention and the way you have handeled it. |
Hey @sabricot 馃憢
Obviously that's up to you, but I think you should grant @safwanrahman the rights to add people, even though I don't like him personally. But a) he's been the active developer over the last few months or so, b) he knows the other contributors and c) says he's open to adding more developers then. Or you add some people yourself as well if you have capable people in mind. |
Ok, so @safwanrahman are you interested to take the lead on a new repo ? @andreasnuesslein in that case you will still continue to maintain your fork ? or there is a world where you could both work together (maybe you know other interested people?, @barseghyanartur ?) to maintain the project ? (if you are interested of course). |
Ahoy @sabricot , I actually never said I couldn't work on this with @safwanrahman (and others) together - it sounded more like it's the other way around. Concerning the fork: Did you happen to have the chance to browse through my commits ( @ https://github.com/django-elasticsearch/django-elasticsearch ) ? Do you like the direction I'm taking there? If not and if my commits are not what you are looking for and therefore would not be merged anyways, the question whether I'd stick with the fork seems moot. In particular I think a better and more sophisticated auto discovery of the fields is paramount - stuff like this: https://github.com/django-elasticsearch/django-elasticsearch/commit/59126ef25a6bf56bb318f1df0ec0a6c3a5b17638 and https://github.com/django-elasticsearch/django-elasticsearch/commit/32abc3fe289280c2837b6fd4e3c1bb533de46e1f . So yea - I could imagine working on this project - but maybe it would be good to have a quick outlook on the future then and see if expectations align. PS: should we open a new ticket on the following debate? I feel we hijacked this issue long enough. |
I don't think I will have enough time to contribute a lot, but I could review things and vote on decisions. As of the original issue itself, I think we should be using defaults of Django in what concerns management commands and that's either |
@sabricot I am good to take the lead of this project. I can commit some of my time to maintain this project. |
( recent event, kind of underlining my point https://www.theregister.co.uk/2020/03/26/corejs_maintainer_jailed_code_release/ ) |
@sabricot just a quick update, due to recent events: I still think you should put this into a github organization and add at least @safwanrahman as an "owner" or whatever the term is. I could see myself creating PRs then based on the changes/updates I made to my fork and removing the fork afterwards, assuming @safwanrahman would be willing to merge them. |
Thanks @andreasnuesslein for your interest to push the changes upstream from your fork and maintain the upstream only. I will be happy to review and merge the patches that you will make. |
+1 for the idea of moving this into organisation. |
yes please @sabricot this seems like a good move, if you could take some minutes of your time to do it. |
This is pretty straight forward, a small typo that actually made me question my sanity for a couple of runs 馃榿
The default was shown as
Y
while the actual logical default implemented isN