-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add validation for OS form #22913
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
Open
eduardomozart
wants to merge
36
commits into
glpi-project:11.0/bugfixes
Choose a base branch
from
eduardomozart:add-validation-for-os-form
base: 11.0/bugfixes
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
Add validation for OS form #22913
Changes from 14 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
c0822fa
Initial plan
Copilot 59b0986
Add validation to prevent empty OS records
Copilot 0816264
Fix prepareInputForUpdate to use current record data
Copilot 7ba5d3d
Add company, owner, and hostid to validation fields
Copilot 0d19d21
Address code review feedback: improve separation of concerns and simp…
Copilot e22aee5
Merge pull request #7 from eduardomozart/copilot/add-validation-for-o…
eduardomozart 1469227
Update parameter type hint in areAllFieldsEmpty
eduardomozart 56ec06c
Enhance OS addition tests with error message checks
eduardomozart 252e5c0
Fix error message assertions in tests
eduardomozart 514f884
Fix string quotes in error messages for consistency
eduardomozart 91cec23
Fix operating systems ID reference in tests
eduardomozart 91b922e
Fix string quotes in Item_OperatingSystemTest
eduardomozart df0e7b1
Fix references for operating system and architecture
eduardomozart 022dc95
Update Item_OperatingSystem.php
eduardomozart bdab75c
Update item_operatingsystem.form.php
eduardomozart 17c28e8
Change translation function from __() to __s()
eduardomozart c4a63b3
Update Item_OperatingSystem.php
eduardomozart 5201d41
Replace prepareInputForUpdate to post_updateItem
eduardomozart 083ce8e
Change test to verify record deletion on update
eduardomozart 5786a3c
Clarify comment regarding update behavior in tests
eduardomozart 8d87b50
Trim input fields before validation check
eduardomozart 9519de7
Rename post_updateItem to prepareInputForUpdate
eduardomozart c84b32a
Refactor OS test messages for consistency
eduardomozart 5428131
Refactor OS add tests for better validation
eduardomozart dad745e
Fix session message for empty operating system update
eduardomozart 9d6a549
Improve error message clarity in OS tests
eduardomozart eeff193
Refactor testUpdateOSToEmptyIsRejected method
eduardomozart aefa813
Fix formatting in Item_OperatingSystemTest.php
eduardomozart 0c98e19
Add test for capacity isUsed behavior
eduardomozart 9bcdc05
Use isUsed() and add capacity usage test
eduardomozart eb5fc63
Adjust OS validation, messages, and tests
eduardomozart 7e53981
Prevent empty operating-system updates
eduardomozart 23fd0d6
Update Item_OperatingSystemTest.php
eduardomozart ca51ee6
Update HasOperatingSystemCapacityTest.php
eduardomozart 218cc0e
Fix numeric string validation in OS item
eduardomozart 602f613
Fix logical condition in input validation
eduardomozart File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 file contains hidden or 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 file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.