Skip to content
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

Add check to enforce that all subclasses of BaseHandler end with "Handler" #5466

Closed
apb7 opened this issue Aug 8, 2018 · 8 comments · Fixed by #5878
Closed

Add check to enforce that all subclasses of BaseHandler end with "Handler" #5466

apb7 opened this issue Aug 8, 2018 · 8 comments · Fixed by #5878
Assignees

Comments

@apb7
Copy link
Contributor

apb7 commented Aug 8, 2018

All subclasses of BaseHandler (basically, all controllers) should end with "Handler". This issue keeps a track of the check which will enforce it.

@apb7 apb7 added the devflow label Aug 8, 2018
@apb7 apb7 added this to To Do (Medium Priority) in Developer experience Aug 9, 2018
@lilithxxx
Copy link
Contributor

Just one question, should this test be in 'base_test.py'?

@lilithxxx lilithxxx self-assigned this Sep 9, 2018
@apb7
Copy link
Contributor Author

apb7 commented Sep 9, 2018 via email

@lilithxxx
Copy link
Contributor

What should I do about those files which are inherited from the BaseHandler but does not end with the word? For example the classes in controllers/pages.py

@seanlip
Copy link
Member

seanlip commented Sep 9, 2018

You'll probably need to change them (the main code) to follow the new lint requirement. When changing main code, make sure the automated tests still pass and that you test manually that everything still works properly.

@anubhavsinha98
Copy link
Contributor

Is this issue open ?

@lilithxxx
Copy link
Contributor

@anubhavsinha98 I am currently working on it

@anubhavsinha98
Copy link
Contributor

okay @lilithxxx

@DubeySandeep
Copy link
Member

@lilithxxx, any update on this?

seanlip pushed a commit that referenced this issue Nov 28, 2018
…th "Handler" or "Page" (#5878)

* Added line breaks

* Moved test to base_test

* Modified code

* Modified code

* Changed condition

* Modified render_downloadable test

* Check for class name test

* Fixed test case

* Remove conflicts

* Change condition of html response

* Made lint changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Developer experience
  
To Do (Medium Priority)
5 participants