Skip to content

Conversation

@Haeki
Copy link
Contributor

@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.

@github-actions
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.

@1358
Copy link

1358 commented Jan 29, 2025

Would love to see this merged, too.

@DanSheps
Copy link
Member

Can you rebase to main?

@DanSheps DanSheps changed the base branch from develop to main February 7, 2025 01:45
@DanSheps DanSheps removed the pending closure Requires immediate attention to avoid being closed for inactivity label Feb 13, 2025
@DanSheps DanSheps self-requested a review February 13, 2025 16:05
Copy link
Collaborator

@arthanson arthanson left a comment

Choose a reason for hiding this comment

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

These also need to be added to the documentation, configuration/miscellaneous.md

@arthanson
Copy link
Collaborator

@Haeki is this ready for re-review? If so please toggle the re-request review (spinner) in the upper right next to my name.

@Haeki Haeki requested a review from arthanson March 1, 2025 11:44
@Haeki Haeki requested a review from arthanson March 7, 2025 09:58
@arthanson arthanson dismissed DanSheps’s stale review March 7, 2025 18:32

adressed issues

@arthanson arthanson merged commit 29c25e3 into netbox-community:main Mar 7, 2025
3 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 7, 2025
@Haeki Haeki deleted the 17686-config_option_for_disk_divider branch April 30, 2025 18:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Abillity to select disk divider

5 participants