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 PoE State in portadmin not updating orig-value #2785

Conversation

stveit
Copy link
Contributor

@stveit stveit commented Dec 12, 2023

Fixes problem where if you change the PoE value and save, then try to go back to the original state the save button will not be active.
this was because the orig-value for the dropdown menu was not updated when saving. This PR updates the value on save and fixes the issue.

@stveit stveit force-pushed the portadmin/fix-poe-dropdown-not-updating-orig-value branch from 38be656 to fb3a412 Compare December 12, 2023 10:36
@stveit
Copy link
Contributor Author

stveit commented Dec 12, 2023

Code smell complaint from SonarCloud, but the functionits complaining about is based on the updateVlanDefault function. For consistency sake I will let the code smell be, and see it as a general problem with the javascript codebase and not this PR in particular

Copy link

codecov bot commented Dec 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2b52575) 57.03% compared to head (50a90fb) 57.03%.

Additional details and impacted files
@@           Coverage Diff           @@
##            5.8.x    #2785   +/-   ##
=======================================
  Coverage   57.03%   57.03%           
=======================================
  Files         567      567           
  Lines       41280    41280           
=======================================
  Hits        23544    23544           
  Misses      17736    17736           

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

@stveit stveit self-assigned this Dec 12, 2023
Copy link

github-actions bot commented Dec 12, 2023

Test results

     12 files       12 suites   11m 38s ⏱️
3 303 tests 3 303 ✔️ 0 💤 0
9 384 runs  9 384 ✔️ 0 💤 0

Results for commit 50a90fb.

♻️ This comment has been updated with latest results.

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 by me. Also approve of your judgment regarding the code smell warning.

But, this should be based on the 5.8.x branch

@lunkwill42 lunkwill42 force-pushed the portadmin/fix-poe-dropdown-not-updating-orig-value branch from fb3a412 to 50a90fb Compare December 14, 2023 07:49
@lunkwill42 lunkwill42 changed the base branch from master to 5.8.x December 14, 2023 07:49
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.

rebased on 5.8.x myself, since you're on vacation :)

Copy link

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

1 New issue
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@lunkwill42 lunkwill42 merged commit 0d93790 into Uninett:5.8.x Dec 14, 2023
12 checks passed
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.

2 participants