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

Uncrispyfy NavbarlinkForm and NavbarLinkFormSet #3139

Merged
merged 2 commits into from
Oct 16, 2024

Conversation

podliashanyk
Copy link
Contributor

@podliashanyk podliashanyk commented Oct 14, 2024

Closes #3099, #3107

http://localhost/preferences/ under 'My stuff' quick links

Difference from the original implementation: the hidden input in each form became a part of the <row>. Functionally and visually it bears no difference whatsoever, yet simplifies the form template considerably.

@podliashanyk podliashanyk requested a review from a team October 14, 2024 12:55
@podliashanyk podliashanyk self-assigned this Oct 14, 2024
Copy link

github-actions bot commented Oct 14, 2024

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON black 992 0 11.23s
✅ PYTHON ruff 987 0 0.1s

See detailed report in MegaLinter reports

MegaLinter is graciously provided by OX Security

Copy link

github-actions bot commented Oct 14, 2024

Test results

    8 files      8 suites   8m 26s ⏱️
2 047 tests 2 047 ✅  0 💤 0 ❌
3 920 runs  3 910 ✅ 10 💤 0 ❌

Results for commit 81d632a.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Oct 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.43%. Comparing base (1e9d859) to head (81d632a).
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3139      +/-   ##
==========================================
- Coverage   60.44%   60.43%   -0.01%     
==========================================
  Files         605      605              
  Lines       43749    43745       -4     
  Branches       48       48              
==========================================
- Hits        26443    26439       -4     
  Misses      17294    17294              
  Partials       12       12              

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

Copy link
Contributor

@stveit stveit left a comment

Choose a reason for hiding this comment

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

Bravo 👏

Copy link
Member

@lunkwill42 lunkwill42 left a comment

Choose a reason for hiding this comment

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

Looks fine to me. Just a Q about a SonarCloud complaint...

python/nav/web/templates/webfront/_navbar_link_form.html Outdated Show resolved Hide resolved
@lunkwill42
Copy link
Member

Also, I guess the tests won't properly pass until #3142 is merged...

Copy link

Copy link
Member

@lunkwill42 lunkwill42 left a comment

Choose a reason for hiding this comment

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

Even better! :)

@lunkwill42 lunkwill42 merged commit 4a25978 into master Oct 16, 2024
12 of 14 checks passed
@lunkwill42 lunkwill42 deleted the uncrispyfy/navbar-link-formset branch October 16, 2024 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uncrispify python/nav/web/webfront/forms.py:NavbarlinkForm
3 participants