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

[qa] Minor improvements of naming of migration check #19

Merged
merged 2 commits into from
Nov 20, 2018
Merged

Conversation

nemesifier
Copy link
Member

No description provided.

@coveralls
Copy link

coveralls commented Nov 16, 2018

Coverage Status

Coverage decreased (-0.4%) to 92.857% when pulling dddd542 on qa into 42ffbb9 on master.

@nemesifier
Copy link
Member Author

@atb00ker check when you can

@atb00ker
Copy link
Member

One question for call_check_migration_name(); actually, i named it initialize() because i thought there are more tests that can be called from initialize() ( like checking if there are pending migrations -- or any such django related test we might in need in future ).

Hence, with that in mind, i added args.no_migration_check to give user the option to avoid check_migration_name. However, if call_check_migration_name() is only planned to call check_migration_name(), that option is obsolete. (and maybe that code in a separate function doesn't make sense.)

Should i change it accordingly ?

Copy link
Member Author

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@atb00ker yes in general is a good practice to avoid adding logic unless extremely needed. We can add it back in the future if we need to, or we can create a directory qa with more checks, every check running in its own file, we may have only one initialize function if we feel that makes sense, not sure.. at the moment I'm just concerned with keeping the code readable, simple and easy to maintain.

You may have noticed that as the project grows the complexity also grows and we need to do our best to add complexity only when it's extremely needed or we'll quickly lose control.

I have given you write access to this repo so you can edit the branch where I pushed these changes.

@atb00ker atb00ker self-assigned this Nov 18, 2018
@atb00ker
Copy link
Member

Removed option --no-migration-check, function call_migration_name_check() and test cases rendered obsolete due to changes. 😄

@nemesifier nemesifier merged commit 951ce45 into master Nov 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants