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

Remove crispy-forms from VlanFilterForm (again) #3065

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

johannaengland
Copy link
Contributor

@johannaengland johannaengland commented Oct 1, 2024

Depends on #3064 and #3036 to be merged first.

This reverts #2993 and removes crispyforms again using the new way of basically reimplementing crispyforms partially.
Closes #2991.

Url: http://localhost/seeddb/vlan/

Completely removing crispy is only possible after #3062 since it uses the same part of the template.

johannaengland and others added 8 commits October 1, 2024 15:52
This builds an alternate display of all search/info forms based on
`nav.web.info.forms.SearchForm`, by moving form layout hints into a
non-crispy-forms based structure.

All forms are displayed twice in a row in order to be able to compare
them "side-by-side" (i.e. this is just an intermediate commit)
The prefix search form tries to explicitly set a form element id using
crispy-forms.  Unsure of why.  This adds support for this in the new
template based implementation and moves the form id from the crispy
version to the non-crispy version.
This removes the crispy version of all info/search forms, and leaves
only the new versions.
This updates flat forms to enable the caller to override the form
element's id and class tags.
This uses the form mechanisms that were introduced in #3034 to replace
crispy-forms.
This uses the updated way of removing crispyforms by partially reimplementing it
Copy link

github-actions bot commented Oct 1, 2024

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON black 992 0 11.08s
✅ PYTHON ruff 987 0 0.09s

See detailed report in MegaLinter reports

MegaLinter is graciously provided by OX Security

Copy link

github-actions bot commented Oct 1, 2024

Test results

    9 files      9 suites   8m 41s ⏱️
2 136 tests 2 136 ✅ 0 💤 0 ❌
4 011 runs  4 011 ✅ 0 💤 0 ❌

Results for commit 703df5a.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Oct 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.47%. Comparing base (e5796de) to head (1d53ff8).

Additional details and impacted files
@@                               Coverage Diff                               @@
##           refactor/add-optional-label-to-submit-field    #3065      +/-   ##
===============================================================================
- Coverage                                        60.48%   60.47%   -0.01%     
===============================================================================
  Files                                              605      605              
  Lines                                            43823    43817       -6     
  Branches                                            48       48              
===============================================================================
- Hits                                             26506    26500       -6     
  Misses                                           17305    17305              
  Partials                                            12       12              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@johannaengland johannaengland force-pushed the refactor/improve-uncrispified-vlan-filter-form branch from 1d53ff8 to 703df5a Compare October 2, 2024 08:14
Copy link

sonarcloud bot commented Oct 2, 2024

@johannaengland johannaengland force-pushed the refactor/add-optional-label-to-submit-field branch from 96b83c3 to 83b2058 Compare October 2, 2024 12:26
Base automatically changed from refactor/add-optional-label-to-submit-field to master October 2, 2024 12:37
@johannaengland johannaengland linked an issue Oct 2, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uncrispify python/nav/web/seeddb/page/vlan.py:VlanFilterForm
2 participants