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

17686 config option for disk divider #18011

Open
wants to merge 78 commits into
base: develop
Choose a base branch
from

Conversation

Haeki
Copy link

@Haeki Haeki commented Nov 14, 2024

Fixes: #17686 Ability to select disk divider

I added two new config options to specify the divider used to calculate the disk and ram sizes in different units.
The default value is 1000 but can be changed to 1024 to get GiB instead of GB.
Those config values are used in the humanize_megabytes method. I split this method into two separate methods, one for RAM and one for disk values. Additionally I added the disk config value to the disk migration so that users with GiB values get them converted to MiB.
I tested the changes in my local environment and noticed no problems.

I'm open for feedback and I also didn't include any tests yet.

Copy link
Contributor

This PR has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further action is taken.

@github-actions github-actions bot added the pending closure Requires immediate attention to avoid being closed for inactivity label Dec 15, 2024
@mbchristoff
Copy link

Would love to see this merged, running behind on v4.0 because of dependencies on netbox.

jeremystretch and others added 25 commits January 6, 2025 15:29
…etbox-community#18322)

* Fix PrefixIndex reference to 'site'

* Fix ClusterIndex reference to 'site' and add 'scope' to WirelessLANIndex
… object, to enable more useful sorting by VLAN ID rather than site-grouped VLAN objects
…rfaces via REST API (netbox-community#18367)

* Fixes netbox-community#18363: Fix assignment of MAC addresses to interfaces via REST API

* Add missing API & view tests
…from CircuitTerminationIndex.display_attrs (netbox-community#18351)

* Remove 'site' and 'provider_network' from CircuitTerminationIndex.display_attrs

* Use '_site' and '_provider_network' in display_attrs

* Replace private fields with 'termination'
…ce to Cluster flow (netbox-community#18375)

* Fix validation of site in Assign Device to Cluster flow

* Validate Location as well as Site scope
…eight and starting_unit on rack_type if present (netbox-community#18395)

* Perform Rack object validation of u_height and starting_unit on rack_type if present

* Calculate effective values before doing validation
@1358
Copy link

1358 commented Jan 29, 2025

Would love to see this merged, too.

@DanSheps
Copy link
Member

Can you rebase to main?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending closure Requires immediate attention to avoid being closed for inactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Abillity to select disk divider