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

Fix/modernizing-braces #277

Merged
merged 11 commits into from Nov 15, 2021
Merged

Fix/modernizing-braces #277

merged 11 commits into from Nov 15, 2021

Conversation

kennethlove
Copy link
Member

like any modern woman, I just want to have it all

Closes #276

This PR is a surface refactor of all of the django-braces code. This should remove all of the Python 2 considerations and generally just make the code nicer.

I'll follow up with tickets for other updates/changes.

This file could use some refactoring. Maybe split
classes out into more files? Almost 500 lines seems
like a lot.
The AJAX mixin should probably be deprecated
or refactored per the Django docs on is_ajax().
These are pretty good, no real notes on them.
Not much to say here. Some of these seem somewhat
limited in use.
Some of these might be better handled with more
modern solutions like Prefetch objects.
@codecov-commenter
Copy link

Codecov Report

Merging #277 (1a6afef) into main (e747e99) will increase coverage by 0.41%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #277      +/-   ##
==========================================
+ Coverage   97.28%   97.69%   +0.41%     
==========================================
  Files           8        8              
  Lines         478      477       -1     
  Branches       69       67       -2     
==========================================
+ Hits          465      466       +1     
+ Misses         11        9       -2     
  Partials        2        2              
Flag Coverage Δ
unittests 97.69% <100.00%> (+0.41%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
braces/__init__.py 100.00% <ø> (ø)
braces/forms.py 100.00% <100.00%> (ø)
braces/views/_access.py 97.05% <100.00%> (-0.04%) ⬇️
braces/views/_ajax.py 100.00% <100.00%> (ø)
braces/views/_forms.py 95.52% <100.00%> (+0.20%) ⬆️
braces/views/_other.py 100.00% <100.00%> (+2.06%) ⬆️
braces/views/_queries.py 95.38% <100.00%> (ø)

@kennethlove
Copy link
Member Author

The "failed build" is because codecov was unavailable....

braces/views/_access.py Outdated Show resolved Hide resolved
braces/views/_access.py Outdated Show resolved Hide resolved
kennethlove and others added 2 commits November 11, 2021 10:07
Co-authored-by: Cleiton de Lima <CleitonDeLima@users.noreply.github.com>
Co-authored-by: Cleiton de Lima <CleitonDeLima@users.noreply.github.com>
@kennethlove kennethlove merged commit 5372051 into main Nov 15, 2021
@kennethlove kennethlove deleted the fix/modernizing-braces branch November 15, 2021 22:32
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.

django-braces looks old
4 participants