-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Haeki
wants to merge
78
commits into
netbox-community:develop
Choose a base branch
from
Haeki:17686-config_option_for_disk_divider
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
17686 config option for disk divider #18011
Haeki
wants to merge
78
commits into
netbox-community:develop
from
Haeki:17686-config_option_for_disk_divider
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
bot
added
the
pending closure
Requires immediate attention to avoid being closed for inactivity
label
Dec 15, 2024
Would love to see this merged, running behind on v4.0 because of dependencies on netbox. |
…netbox-community#18309) * Closes netbox-community#13366: Update documentation for main branch * Clarify wording
…le type UI view
…d object listings
…etbox-community#18322) * Fix PrefixIndex reference to 'site' * Fix ClusterIndex reference to 'site' and add 'scope' to WirelessLANIndex
…0 to resolve upstream bug
… object, to enable more useful sorting by VLAN ID rather than site-grouped VLAN objects
* Release v4.2.1 * Add changelog for netbox-community#18282
…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
…alizer for MAC addresses
… for Q-in-Q interfaces
…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
…-fix-macaddress-primary-for-interface Fixes: netbox-community#18433 - Fix missing is_primary property on MACAddress model
When no Redis server is reachable management commands failed without this try...except block.
netbox-community#18512 Update required-parameters spelling
…debug Fix netbox-community#18515: Don't fail in DEBUG mode
Would love to see this merged, too. |
Can you rebase to main? |
…18154-make-BaseTable-aware-default_user_preferences-annon-users FIX netbox-community#18154 - Cannot change default table preferences for anonymous users
…netbox-community#18560) * Closes netbox-community#18559: Add a build parameter to ReleaseInfo * Adjust dataclass typing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.