-
-
Notifications
You must be signed in to change notification settings - Fork 479
Remove _view suffix from views #466
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
astirpe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree.
Please rename also the wizard_model_view.xml file in https://github.com/OCA/maintainer-tools/tree/master/template/module/wizards
|
I don't, as when searching for files, you don't see what is (data, demo or view). Most IDEs also allow to search by file name, and the path is secondary, so I prefer the Python "explicit is better than implicit". 👎 |
Views are already in `views` folder, so I think this is redundant.
|
That would apply for any kind of file, not just views. Then, we'd have to name demo data In this gif you can see how a modern IDE such as VSCode doesn't need this Also, removing the repeated word in the file path adheres to the DRY principle. So still 👍 here.
Fixed. |
|
As said, I don't like this, so 👎 for me. Your example is very specific, as you don't have long paths for it. I don't see the final folder name as my path is longer than the view. |
|
Well, OK, that's +2-1=+1. Let's wait until other members vote. Thanks @pedrobaeza for your opinion! |
|
This PR has the |
pedrobaeza
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explained in previous comments
|
Another thing to take into account: inside |

Views are already in
viewsfolder, so I think this is redundant.