-
Notifications
You must be signed in to change notification settings - Fork 264
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
* add ability to add multiple ip addresses to objects using pattern x… #187
base: maintenance-0.20.x
Are you sure you want to change the base?
Commits on Nov 28, 2016
-
* add ability to add multiple ip addresses to objects using pattern x…
….x.x.x-x
pumamd committedNov 28, 2016 Configuration menu - View commit details
-
Copy full SHA for e316717 - Browse repository at this point
Copy the full SHA e316717View commit details
Commits on May 18, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 832453d - Browse repository at this point
Copy the full SHA 832453dView commit details -
display MySQL warnings in debug mode
This optional means of debugging can provide a feedback loop when the strict SQL mode is not enabled. * collectMySQLWarnings(): new function to buffer the warnings * usePreparedInsertBlade(): amend to call the above * usePreparedDeleteBlade(): idem * usePreparedUpdateBlade(): idem * showMySQLWarnings(): new function to display the buffer * index.php: call the above in the "redirect" case
Configuration menu - View commit details
-
Copy full SHA for 1acbe86 - Browse repository at this point
Copy the full SHA 1acbe86View commit details -
Configuration menu - View commit details
-
Copy full SHA for 710bb27 - Browse repository at this point
Copy the full SHA 710bb27View commit details
Commits on May 19, 2017
-
suppress some more unnecessary default values
Amend respective test to fail the right way. * usePreparedDeleteBlade() * usePreparedUpdateBlade()
Configuration menu - View commit details
-
Copy full SHA for 83ea38a - Browse repository at this point
Copy the full SHA 83ea38aView commit details -
Configuration menu - View commit details
-
Copy full SHA for ef82cfc - Browse repository at this point
Copy the full SHA ef82cfcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d07e59 - Browse repository at this point
Copy the full SHA 2d07e59View commit details -
set Port.label to NULL instead of an empty string
This is how it was originally intended (also update the sample dataset). * commitAddPortReal(): use nullIfEmptyStr() * commitUpdatePortReal(): idem * upgrade.php: queue an UPDATE for 0.21.0
Configuration menu - View commit details
-
Copy full SHA for e984d86 - Browse repository at this point
Copy the full SHA e984d86View commit details -
* lastInsertID(): use PDOStatement::fetchColumn() * getIPv4Stats(): idem * getIPv6Stats(): idem * getRackspaceStats(): idem * sortPortList(): use array_fetch()
Configuration menu - View commit details
-
Copy full SHA for 07d22ce - Browse repository at this point
Copy the full SHA 07d22ceView commit details
Commits on May 23, 2017
-
Convert a repeated code block to a function, fixup a TD alignment, simplify portlet rendering, do not show the multiport form if permissions would not allow to submit.
Configuration menu - View commit details
-
Copy full SHA for 70c0cb0 - Browse repository at this point
Copy the full SHA 70c0cb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8844171 - Browse repository at this point
Copy the full SHA 8844171View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb216c1 - Browse repository at this point
Copy the full SHA bb216c1View commit details
Commits on May 24, 2017
-
Configuration menu - View commit details
-
Copy full SHA for ecd0c5a - Browse repository at this point
Copy the full SHA ecd0c5aView commit details -
better display objects that have no common name
Address a long-standing glitch: when a port on the currently displayed object was (or was suggested to be) linked to a port of an object that had no name, the displayed remote object name would be an empty string. This change makes the interface display a standard substitute instead, which among other things makes the remote object hyperlink clickable. * fetchPortList(): add remote object type ID to the result columns * renderObjectPortRow(): make use of formatObjectDisplayedName() * renderPortsForObject(): idem * findSparePorts(): all of the above
Configuration menu - View commit details
-
Copy full SHA for f4d00fa - Browse repository at this point
Copy the full SHA f4d00faView commit details
Commits on May 25, 2017
-
Configuration menu - View commit details
-
Copy full SHA for a637466 - Browse repository at this point
Copy the full SHA a637466View commit details -
upgrade CodeMirror from 3.24 to 5.26.0
For simpler maintenance the RackTables-specific CSS modifications now reside in css/codemirror/rackcode.css. Do not include the CSS, HTML, JavaScript, PHP and SQL CodeMirror tokenizers anymore as they had not proved to be useful.
Configuration menu - View commit details
-
Copy full SHA for d765a3d - Browse repository at this point
Copy the full SHA d765a3dView commit details
Commits on May 26, 2017
-
remove remaining stray props of CodePress
This completes the changes done in commit cf5da67. * renderRackCodeEditor() * renderTextEditor()
Configuration menu - View commit details
-
Copy full SHA for 03102e0 - Browse repository at this point
Copy the full SHA 03102e0View commit details -
improve CodeMirror integration
Reimplement the RackCode language mode in rackcode.js using simpler JavaScript code and define a standalone "rackcode" theme in rackcode.css instead of overriding the default theme. In renderRackCodeEditor() pass more properties to CodeMirror constructor and make minor HTML fixups. In renderRackCodeViewer() rewrite the code to use CodeMirror in read-only mode and to scroll to requested line on request. Amend the URL format in refRCLineno() respectively.
Configuration menu - View commit details
-
Copy full SHA for 5ceaa17 - Browse repository at this point
Copy the full SHA 5ceaa17View commit details
Commits on May 30, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 35d895b - Browse repository at this point
Copy the full SHA 35d895bView commit details
Commits on Jun 2, 2017
-
replace a couple default values with explicit ones
There is no reason to specify a default value for $input_name in printTagsPickerInput() and printTagsPickerUl() so long as printTagsPicker() is the only function that calls those functions.
Configuration menu - View commit details
-
Copy full SHA for 6cf6a09 - Browse repository at this point
Copy the full SHA 6cf6a09View commit details -
Configuration menu - View commit details
-
Copy full SHA for 837ad4a - Browse repository at this point
Copy the full SHA 837ad4aView commit details
Commits on Jun 6, 2017
-
refine delivery of rack thumb images
A read-only RackTables instance would display an error image instead of the thumbnail image for any rack that has invalidated thumbnail cache. This change makes it deliver the thumbnail even if the attempted cache update failed because of insufficient database permissions. * RTDBTableAccessDenied: a new exception class * convertPDOException(): add a respective case block for the error code * dispatchMiniRackThumbRequest(): use the above for its REPLACE and update the comment
Configuration menu - View commit details
-
Copy full SHA for 6eb70f0 - Browse repository at this point
Copy the full SHA 6eb70f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 336e7e6 - Browse repository at this point
Copy the full SHA 336e7e6View commit details
Commits on Jun 16, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 20e1804 - Browse repository at this point
Copy the full SHA 20e1804View commit details -
cover comments too in IPv4 search (Mantis#1773)
* getIPv4PrefixSearchResult()
Configuration menu - View commit details
-
Copy full SHA for ed4484b - Browse repository at this point
Copy the full SHA ed4484bView commit details -
Do the same for IPv6 and make a ChangeLog entry. * getIPv4PrefixSearchResult() * getIPv6PrefixSearchResult()
Configuration menu - View commit details
-
Copy full SHA for cf72025 - Browse repository at this point
Copy the full SHA cf72025View commit details -
spell a public class method as public
Keep it consistent with the other declarations in the file.
Configuration menu - View commit details
-
Copy full SHA for 0a7ffbe - Browse repository at this point
Copy the full SHA 0a7ffbeView commit details -
decrease direct use of $_REQUEST and $sic, pt. 20
* updateObjectAttributes()
Configuration menu - View commit details
-
Copy full SHA for 8bdd76e - Browse repository at this point
Copy the full SHA 8bdd76eView commit details -
make the object properties form more user-friendly
updateObjectAttributes() used to feed each new attribute value to MySQL connection and let it raise an exception for an invalid input. The exception would be dispatched as a hard error with the MySQL error codes and a stack trace page. Improve this by making calls to genericAssertion() as required and converting any resulting IRAE exceptions to a human-readable form. Add helper methods getValue() and getReason() to InvalidArgException.
Configuration menu - View commit details
-
Copy full SHA for dfc8176 - Browse repository at this point
Copy the full SHA dfc8176View commit details
Commits on Jun 20, 2017
-
printPDOException(): refine some text
In this context the class name is always PDOException.
Configuration menu - View commit details
-
Copy full SHA for b4fb59f - Browse repository at this point
Copy the full SHA b4fb59fView commit details
Commits on Jun 23, 2017
-
refine displaying of attributes
formatAttributeValue() was initially purposed for objects and when it yielded a hyperlink it would hard-code "page=depot" into it. When the function was later reused for racks, rows and locations, this logic didn't deliver working URLs. Add necessary checks such that this feature only tries to work when it can work, add a date format mouse hint, add minimal reporting of RackCode parsing errors and move some code around for clarity. Modify the functions below as required: * renderRow() * renderRackInfoPortlet() * renderObject() * renderSearchResults() * renderLocationPage()
Configuration menu - View commit details
-
Copy full SHA for 5b90820 - Browse repository at this point
Copy the full SHA 5b90820View commit details -
It used to be possible to map "date" attributes to racks, rows and locations, but the properties editor would not know how to handle those attributes in particular and would not make permission checks correctly in general. This change addresses those issues by replacing four similar code blocks with one new function that can handle all types of attributes for all types of objects and makes necessary permission checks. * renderEditAttributeTRs(): a new universal function * renderEditRowForm(): use the new function instead of custom local code * renderEditObjectForm(): idem * renderEditRackForm(): idem * renderEditLocationForm(): idem * updateObjectAttributes(): update request argument checks to match what the current implementation puts into the form
Configuration menu - View commit details
-
Copy full SHA for 5ff78af - Browse repository at this point
Copy the full SHA 5ff78afView commit details -
don't call getConfigVar('EXT_IPV4_VIEW') too often
Specifically, not inside foreach. * renderObject() * renderIPForObject()
Configuration menu - View commit details
-
Copy full SHA for e9446e3 - Browse repository at this point
Copy the full SHA e9446e3View commit details
Commits on Jun 27, 2017
-
renderObject(): make rackspace portlet conditional
Original idea by Lucas Aimaretto.
Configuration menu - View commit details
-
Copy full SHA for 3a24387 - Browse repository at this point
Copy the full SHA 3a24387View commit details
Commits on Jul 2, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 1c48fd7 - Browse repository at this point
Copy the full SHA 1c48fd7View commit details
Commits on Jul 3, 2017
-
Added link to SDK project page in error message when python package is not installed.
Configuration menu - View commit details
-
Copy full SHA for f686aa8 - Browse repository at this point
Copy the full SHA f686aa8View commit details
Commits on Jul 4, 2017
-
scanIPSpace: optimize SQL for fetching last log
Use the same WHERE filter in subquery. Changed functions: - scanIPv4Space - scanIPv6Space
Configuration menu - View commit details
-
Copy full SHA for e28c58a - Browse repository at this point
Copy the full SHA e28c58aView commit details
Commits on Jul 6, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 0238500 - Browse repository at this point
Copy the full SHA 0238500View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c01397 - Browse repository at this point
Copy the full SHA 3c01397View commit details -
refine some code in markBestSpan()
Remove an unused global, declare arrays before the first use, use foreach instead of hard-coded index range, spell comparison with zero, eliminate a redundant variable and use array_search().
Configuration menu - View commit details
-
Copy full SHA for 655da69 - Browse repository at this point
Copy the full SHA 655da69View commit details
Commits on Jul 7, 2017
-
simplify rackModificationPermitted()
Don't do the work permitted() already does internally and clarify control flow. This eliminates two variables.
Configuration menu - View commit details
-
Copy full SHA for c910f77 - Browse repository at this point
Copy the full SHA c910f77View commit details -
* renderRackspaceRowEditor() * renderRackSortForm()
Configuration menu - View commit details
-
Copy full SHA for 34f5d4e - Browse repository at this point
Copy the full SHA 34f5d4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for a688bfd - Browse repository at this point
Copy the full SHA a688bfdView commit details -
refine a couple error messages
* proxyCactiRequest() * proxyMuninRequest()
Configuration menu - View commit details
-
Copy full SHA for 3f047ad - Browse repository at this point
Copy the full SHA 3f047adView commit details -
put usort_portlist() right (GH #199)
The input to sortPortList() is an array of arrays, if it is an array of anything else the function (since commit 07d22ce) will use array_fetch() on the elements anyway, causing issues downstream. Vladimir Sukhonosov had reported numerous PHP warnings in this regard. Fix usort_portlist() to feed proper argument into sortPortList().
Configuration menu - View commit details
-
Copy full SHA for 37095aa - Browse repository at this point
Copy the full SHA 37095aaView commit details -
check argument type in array_fetch()
If the argument is not an array, it is a bug in the code as arguments to that function come from other functions, not directly from user input. Raise an exception before the broken code makes any [more] damage. Add more tests.
Configuration menu - View commit details
-
Copy full SHA for d2ae1e0 - Browse repository at this point
Copy the full SHA d2ae1e0View commit details
Commits on Jul 10, 2017
-
Configuration menu - View commit details
-
Copy full SHA for d4efef5 - Browse repository at this point
Copy the full SHA d4efef5View commit details
Commits on Jul 13, 2017
-
Configuration menu - View commit details
-
Copy full SHA for c7be1b9 - Browse repository at this point
Copy the full SHA c7be1b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 475f4da - Browse repository at this point
Copy the full SHA 475f4daView commit details -
omit the PHP closing tag at EOF in all PHP files
"If a file is pure PHP code, it is preferable to omit the PHP closing tag at the end of the file. This prevents accidental whitespace or new lines being added after the PHP closing tag, which may cause unwanted effects because PHP will start output buffering when there is no intention from the programmer to send any output at that point in the script." -- PHP manual
Configuration menu - View commit details
-
Copy full SHA for f48482e - Browse repository at this point
Copy the full SHA f48482eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f5b9c21 - Browse repository at this point
Copy the full SHA f5b9c21View commit details -
RTSNMPDevice: handle SNMP versions stricter
There is no gain in assuming that if SNMP version is not 1, not 2 and not 3, it means it is 1. Keep it simple.
Configuration menu - View commit details
-
Copy full SHA for 2864fb8 - Browse repository at this point
Copy the full SHA 2864fb8View commit details
Commits on Jul 14, 2017
-
only use the PHP opening tag once per file
There used to be a few code blocks that switched PHP interpreting on and off with PHP tags, convert those to use either heredoc or plain echo as that is the usual syntax for this purpose elsewhere in the code. Fixup some indentation while at it. * renderInstallerHTML() * renderInterfaceHTML() * renderIndex() * dragon() * renderSNMPPortFinder() * renderPopupHTML() * printStatic404() * renderUpgraderHTML()
Configuration menu - View commit details
-
Copy full SHA for 1cfcac1 - Browse repository at this point
Copy the full SHA 1cfcac1View commit details
Commits on Jul 17, 2017
-
detect and handle an internal error properly
In fetchAttrsForObjects() throw an exception on an unknown attribute type as that situation cannot have a reasonable default workaround.
Configuration menu - View commit details
-
Copy full SHA for 3b4c094 - Browse repository at this point
Copy the full SHA 3b4c094View commit details -
fix isInteger() and add some tests
is_numeric() can test numeric strings but it accepts floats as well because that's the way it is defined to work; is_int() tests for an integer. Combine those two to make isInteger() really do what it claims.
Configuration menu - View commit details
-
Copy full SHA for 0f5c598 - Browse repository at this point
Copy the full SHA 0f5c598View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06d7052 - Browse repository at this point
Copy the full SHA 06d7052View commit details -
Configuration menu - View commit details
-
Copy full SHA for df611f3 - Browse repository at this point
Copy the full SHA df611f3View commit details -
use BLOB to store rack thumbnail images
The contents of RackThumbnail.thumb_data used to be Base64-encoded but the column itself does not require it as it is a BLOB so dismiss the encoding and just store and read the image as it is. Delete all rows from RackThumbnail. * loadThumbCache(): rename to loadRackThumbCache() * saveRackThumbCache(): new helper function for consistency * dispatchMiniRackThumbRequest(): update to use the above
Configuration menu - View commit details
-
Copy full SHA for 01cbc42 - Browse repository at this point
Copy the full SHA 01cbc42View commit details
Commits on Jul 18, 2017
-
make more unsigned integer check fixups
* isUnsignedInteger(): a new helper function that better matches the problem space than isInteger(), with tests * assertUIntArg(): simplify by using the above * setConfigVar(): the function would mistakenly accept float values for "uint" configuration variables, fix the check * setUserConfigVar(): idem
Configuration menu - View commit details
-
Copy full SHA for db8d58a - Browse repository at this point
Copy the full SHA db8d58aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d8f3e96 - Browse repository at this point
Copy the full SHA d8f3e96View commit details -
This add colors to object depot, rack diagram, rack thumbnails and IPSpace. The color depends on the tags assigned to an entity. Each tag could be assigned one color. Multiple colors are displayed as a sharp gradient. * listCells(), spotEntity(), getTagList(), commitUpdateTag(), renderTagRowForViewer(), printObjectDetailsForRenderRack(), renderRack(), renderDepot(), renderIPNetwork(), buildTagCheckboxRows(), updateTag(), printRackThumbImage(), renderTagTreeEditor(), enableTagsPicker(), getTagClassName(): add color * objstyle_cache, color: new global variable * isHTMLColor(), getColorSelect(), assertHTMLColorArg(), colorHex2Rgb(), getObjectClass(), setEntityColors(), destroyTag(), coloredObject(): new function * genericAssertion(): add types "htmlcolor" and "htmlcolor0" * rebuildTagChainForEntity(): clear RackThumbs on color change * JS generateTagList(): add color class
Configuration menu - View commit details
-
Copy full SHA for 25526a9 - Browse repository at this point
Copy the full SHA 25526a9View commit details
Commits on Jul 19, 2017
-
Configuration menu - View commit details
-
Copy full SHA for a7c7af6 - Browse repository at this point
Copy the full SHA a7c7af6View commit details -
refine the SQL column type for tag colour
MySQL char(6) can contain any string including a hex notation of a 24-bit RGB colour. With this storage type the PHP code should check if the value is valid every time it reads the column, and if the value is invalid there is no good way to deal with it as the invalid value could have been stored a long time ago and it could be caused by a bug in a non-interactive script so there is nowhere to put the blame. Based on the prior experience it is better to eliminate this place for an error earliest possible, do this by switching to an unsigned 24-bit integer type in the MySQL table, this way any non-NULL value stored in the column is always valid and any attempt to store an invalid value will fail at one or another level immediately so there is a feedback loop now. * get_pseudo_file(): update CREATE TABLE * upgrade.php: modify ALTER TABLE * getTagList(): amend SELECT to convert to hex at server side * commitUpdateTag(): amend column conversion * $opspec_list: refine declarations for tagtree-edit-createTag * isHTMLColor(): reduce to a small unary function and add tests * HTMLColorForDatabase(): new converter function with tests * HTMLColorFromDatabase(): idem * assertHTMLColorArg(): simplify and merge into genericAssertion()
Configuration menu - View commit details
-
Copy full SHA for f7686eb - Browse repository at this point
Copy the full SHA f7686ebView commit details -
isInteger(): add helper code around is_numeric()
The previous commit passed the tests on PHP 7 but not on PHP 5 due to the difference in is_numeric(). Make it work the same on both PHP versions and add some more tests.
Configuration menu - View commit details
-
Copy full SHA for 6f3dfa8 - Browse repository at this point
Copy the full SHA 6f3dfa8View commit details -
* rebuildTagChainForEntity() * setEntityColors() * buildTagCheckboxRows() * coloredObject()
Configuration menu - View commit details
-
Copy full SHA for 1c09455 - Browse repository at this point
Copy the full SHA 1c09455View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa389d0 - Browse repository at this point
Copy the full SHA fa389d0View commit details
Commits on Jul 20, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 0f13d32 - Browse repository at this point
Copy the full SHA 0f13d32View commit details -
refine NATv4 address selector popup
* getAllIPv4Allocations(): fetch one more column and fixup SQL formatting * renderPopupIPv4Selector(): improve formatting like in commit f4d00fa * sortTokenize(): don't call count() more often than required, use isUnsignedInteger() and numCompare()
Configuration menu - View commit details
-
Copy full SHA for 21c8b04 - Browse repository at this point
Copy the full SHA 21c8b04View commit details -
makeWhereSQL(): do not specify a default value
All arguments to this function are mandatory, also amend the tests.
Configuration menu - View commit details
-
Copy full SHA for 36e3ad3 - Browse repository at this point
Copy the full SHA 36e3ad3View commit details -
rename syncObjectPorts() to replaceObjectPorts()
This way the code in doSwitchSNMPmining() and doPDUSNMPmining() is much easier to understand.
Configuration menu - View commit details
-
Copy full SHA for 5580b16 - Browse repository at this point
Copy the full SHA 5580b16View commit details -
colorHex2Rgb(): try a different RGB math
This should fix the color SELECT in some browsers.
Configuration menu - View commit details
-
Copy full SHA for 213ea1e - Browse repository at this point
Copy the full SHA 213ea1eView commit details -
renderTagRowForViewer(): fixup some markup
In the tag tree viewer apply tag class to the tag name only rather than to the whole TR, this is consistent with the tag filter portlet and does not conflict with the viewer sometimes using the TR to signal additional information (a warning or not assignable) about the tag.
Configuration menu - View commit details
-
Copy full SHA for 4fd21be - Browse repository at this point
Copy the full SHA 4fd21beView commit details -
colorHex2Rgb(): round floats to integers
Firefox accepted "rgb(127.5,127.5,255)" but Chrome [properly] didn't: "The format of an RGB value in the functional notation is 'rgb(' followed by a comma-separated list of three numerical values (either three integer values or three percentage values) followed by ')'." -- CSS spec Add some tests.
Configuration menu - View commit details
-
Copy full SHA for c3fe089 - Browse repository at this point
Copy the full SHA c3fe089View commit details -
Added extra hooks to commitUpdateObject() (#204)
...to give plugin devs more options to interact.
Configuration menu - View commit details
-
Copy full SHA for 1c117bd - Browse repository at this point
Copy the full SHA 1c117bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for cf940ca - Browse repository at this point
Copy the full SHA cf940caView commit details
Commits on Jul 23, 2017
-
Configuration menu - View commit details
-
Copy full SHA for ffccae6 - Browse repository at this point
Copy the full SHA ffccae6View commit details
Commits on Jul 24, 2017
-
* string_insert_hrefs() * email_regex_simple() * getOptionTree() * setEntityColors() * renderRackSortForm() * printRackThumbImage()
Configuration menu - View commit details
-
Copy full SHA for 1d44a1e - Browse repository at this point
Copy the full SHA 1d44a1eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8dd68ee - Browse repository at this point
Copy the full SHA 8dd68eeView commit details -
Added extra hooks to renderIPv4NetworkAddresses and renderIPv6Network…
…Addresses to allow plugin devs to extend/change the functionality of the IP list.
Configuration menu - View commit details
-
Copy full SHA for 5731b2c - Browse repository at this point
Copy the full SHA 5731b2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 97d8533 - Browse repository at this point
Copy the full SHA 97d8533View commit details -
Configuration menu - View commit details
-
Copy full SHA for c2a49f7 - Browse repository at this point
Copy the full SHA c2a49f7View commit details
Commits on Jul 25, 2017
-
use a CSS class for L2 addresses
* pi.css * renderDataIntegrityReport() * renderObjectPortRow()
Configuration menu - View commit details
-
Copy full SHA for bba495f - Browse repository at this point
Copy the full SHA bba495fView commit details -
renderDataIntegrityReport(): simplify some code
Switch some tables from hard-coded HTML to renderTableViewer().
Configuration menu - View commit details
-
Copy full SHA for 66eece6 - Browse repository at this point
Copy the full SHA 66eece6View commit details
Commits on Jul 27, 2017
-
With this change the script does not require the RackTables top directory to be the current working directory anymore. Also it runs the last query as root to avoid the password warning -- the next stages will find it out anyway whether MySQL credentials work as expected.
Configuration menu - View commit details
-
Copy full SHA for d0d43dc - Browse repository at this point
Copy the full SHA d0d43dcView commit details
Commits on Jul 29, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 011df35 - Browse repository at this point
Copy the full SHA 011df35View commit details
Commits on Jul 30, 2017
-
refine the new plugins code a bit
* getPlugins(): don't use "SELECT *" * getPlugin(): idem * formatPluginState(): use array_fetch() * renderPluginConfig(): use renderTableViewer() * renderPluginEditor(): idem and use "&&" * installPlugin(): use the assertion result instead of a global * uninstallPlugin(): idem * upgradePlugin(): idem Remove the PHP closing tag from the new PHP files.
Configuration menu - View commit details
-
Copy full SHA for 174084c - Browse repository at this point
Copy the full SHA 174084cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 28d3bb4 - Browse repository at this point
Copy the full SHA 28d3bb4View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad847bd - Browse repository at this point
Copy the full SHA ad847bdView commit details
Commits on Jul 31, 2017
-
renderPluginEditor(): add permission checks
Only show individual controls and the warning when respective permission check would allow the action. This way what the user sees is much likely to be what they can use.
Configuration menu - View commit details
-
Copy full SHA for c8c64b1 - Browse repository at this point
Copy the full SHA c8c64b1View commit details -
implement a new "dateonly" assertion type
* SQLDateFromDateStr(): new function with tests * genericAssertion(): add respective case blocks * resetUIConfig(): amend as necessary * install.php: idem * upgrade.php: idem
Configuration menu - View commit details
-
Copy full SHA for 22d3f0f - Browse repository at this point
Copy the full SHA 22d3f0fView commit details -
cmpSQLDates(): new function with tests
This is a new helper function, the current code base does not use it right now but it may come handy later.
Configuration menu - View commit details
-
Copy full SHA for f159c46 - Browse repository at this point
Copy the full SHA f159c46View commit details -
improve renderDataIntegrityReport() a little more
In the triggers section add the entries below to the list of known triggers and compare the list with the items in the schema both ways. Use renderTableViewer() to display the difference. * EntityLink-before-insert * EntityLink-before-update In the foreign keys section make a similar change and amend the new plugins to return their lists of FKs in the new format. * RackThumbnail-FK-rack_id * VLANDomain-FK-group_id
Configuration menu - View commit details
-
Copy full SHA for f24df83 - Browse repository at this point
Copy the full SHA f24df83View commit details
Commits on Aug 1, 2017
-
* renderSimpleTableWithOriginViewer(): use renderTableViewer() * renderPortOIFViewer(): idem * renderChapter(): idem and clean ref. counter processing up
Configuration menu - View commit details
-
Copy full SHA for 94826ae - Browse repository at this point
Copy the full SHA 94826aeView commit details -
simplify SQL in loadRackThumbCache()
RackThumbnail.thumb_data is not intended to be NULL, in the unlikely case it is NULL just let the bug propagate and become visible elsewhere so it can be fixed.
Configuration menu - View commit details
-
Copy full SHA for 1019f70 - Browse repository at this point
Copy the full SHA 1019f70View commit details -
renderEditRackForm(): add a LABEL for a CHECKBOX
Like in commit f5b9c21.
Configuration menu - View commit details
-
Copy full SHA for f0fe0da - Browse repository at this point
Copy the full SHA f0fe0daView commit details
Commits on Aug 2, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 4c5f6ef - Browse repository at this point
Copy the full SHA 4c5f6efView commit details -
Use in_array() instead of array_key_exists() to make the check actually work. Do not return any result as it is wasted anyway. Eliminate a temporary variable.
Configuration menu - View commit details
-
Copy full SHA for c0d0c56 - Browse repository at this point
Copy the full SHA c0d0c56View commit details -
tests: improve TagFunctionsTest
Move all read-only tests into one method to avoid duplicating the class fixtures. Supply an array argument to usePreparedDeleteBlade() to make use of SQL IN(). Assign some colours to the fixture tags and add a basic read-only test to cover setEntityColors().
Configuration menu - View commit details
-
Copy full SHA for a433b26 - Browse repository at this point
Copy the full SHA a433b26View commit details -
fixup rack thumb colours processing
Make the state code in coloredObject() a mandatory parameter and update printRackThumbImage() to make sure it is always properly set. This restores the colour-based highlighting for objects that don't have any colours associated through assigned tags. Reduce the footprint of the colour list argument. Prune and rearrange some code for clarity.
Configuration menu - View commit details
-
Copy full SHA for 3c1e6a8 - Browse repository at this point
Copy the full SHA 3c1e6a8View commit details
Commits on Aug 3, 2017
-
tests: add support for PHPUnit 6
Change all RackTables test case classes to extend RTTestCase. Have two PHPUnit bootstrap files to declare the new intermediate class two different ways: one for versions 4 & 5 and another for version 6 (the common part is in its own file and there is a symlink to default to versions 4 & 5 when PHPUnit is run from the command line). In express.sh auto-detect PHPUnit version and use respective bootstrap file.
Configuration menu - View commit details
-
Copy full SHA for 9448907 - Browse repository at this point
Copy the full SHA 9448907View commit details -
Travis CI: add PHPUnit 6 to the build matrix
Add PHP 7.0 and 7.1, which come with PHPUnit 6. Allow 7.1 job to fail as RackTables still has known issues with it.
Configuration menu - View commit details
-
Copy full SHA for 352bbb3 - Browse repository at this point
Copy the full SHA 352bbb3View commit details -
Update the comment and address the following feedback from PHPUnit 6: There were 2 risky tests: 1) PortTriggerTest::testUniqueMacAddSame This test did not perform any assertions 2) PortTriggerTest::testUniqueMacUpdateSame This test did not perform any assertions
Configuration menu - View commit details
-
Copy full SHA for f82e096 - Browse repository at this point
Copy the full SHA f82e096View commit details -
Add an error message and fixup code style.
Configuration menu - View commit details
-
Copy full SHA for e5c54d4 - Browse repository at this point
Copy the full SHA e5c54d4View commit details
Commits on Aug 4, 2017
-
refine DELETE in commitUpdateTag()
Also update the global tag list to keep it consistent.
Configuration menu - View commit details
-
Copy full SHA for 50712c6 - Browse repository at this point
Copy the full SHA 50712c6View commit details -
generate rack thumbs independently of the headers
Move the thumbnail content caching code from dispatchMiniRackThumbRequest() to a new function, getCachedMiniRackThumbImage(), which can be called more than once per HTTP request or from a CLI script.
Configuration menu - View commit details
-
Copy full SHA for f903908 - Browse repository at this point
Copy the full SHA f903908View commit details -
tests: improve RackspaceFunctionsTest
Share the row fixture among the tests and add basic tests for rack thumbnails.
Configuration menu - View commit details
-
Copy full SHA for 162fc31 - Browse repository at this point
Copy the full SHA 162fc31View commit details
Commits on Aug 6, 2017
-
tests: allow to override PHPUnit binary name
In Fedora 26 PHPUnit version 6 is available as the package "phpunit6", which provides the binary "phpunit6". Make the changes to express.sh to enable a custom PHPUnit binary like below: $ PHPUNIT=phpunit6 ./tests/express.sh
Configuration menu - View commit details
-
Copy full SHA for 494e426 - Browse repository at this point
Copy the full SHA 494e426View commit details
Commits on Aug 7, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 66b176b - Browse repository at this point
Copy the full SHA 66b176bView commit details -
tests: refine the rack thumbnails test
When loading the image two times, test that the values are equal.
Configuration menu - View commit details
-
Copy full SHA for edb0cf6 - Browse repository at this point
Copy the full SHA edb0cf6View commit details
Commits on Aug 8, 2017
-
use quoting for some schema object names
The conceptual purpose of usePreparedDeleteBlade() is to delete a specific, well-defined set of rows from a table. However, Maik Ehinger in his tag colour code had pointed it out that a hack allowed to delete all rows from a table like this: usePreparedDeleteBlade ('TableName', array ('1' => '1')); Enforce the originally intended semantics in usePreparedDeleteBlade() and update the other two SQL helper functions for consistency. Update existing tests and add new tests. * assertListOfColumnNames(): new function to test if the list items look reasonably similar to SQL column names * makeSetSQL(): replace the previously existing test, which produced a generic message, with the new function; escape SQL columns names and add some spacing for readability * makeWhereSQL(): idem * usePreparedInsertBlade(): escape the table name and switch to INSERT ... SET syntax to reuse the code in makeSetSQL() * usePreparedDeleteBlade(): leave the previously existing test, which produces a specific message, before the new test; escape the table name * usePreparedUpdateBlade(): idem
Configuration menu - View commit details
-
Copy full SHA for 756009b - Browse repository at this point
Copy the full SHA 756009bView commit details -
specify a secondary class around the tag selector
This provides a temporary means for some users to hide the TD that contains the tag selector in their RackTables installation. See the discussion on racktables-users by Gerardo Ferreyra and Helen Browne. * renderRackspace() * renderDepot() * renderIPSpace() * renderCellList()
Configuration menu - View commit details
-
Copy full SHA for d4e27fe - Browse repository at this point
Copy the full SHA d4e27feView commit details
Commits on Aug 9, 2017
-
fix deleting of tags after commit 756009b
The call to usePreparedDeleteBlade() in destroyTag() [expectedly] started to trigger an exception. However, that call didn't do any useful work in the first place because a foreign key does not allow to delete a row from TagTree if there are any dependent rows in TagStorage, this way if a tag can be deleted it means it is not assigned to any rack or object and hence its colour does not make any difference to any rack thumbnail. Without the call that truncates RackThumbnail destroyTag() has no purpose anymore so delete it and leave the $opspec_list declaration to do the job through tableHandler() as before.
Configuration menu - View commit details
-
Copy full SHA for 272e0a2 - Browse repository at this point
Copy the full SHA 272e0a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for abef97a - Browse repository at this point
Copy the full SHA abef97aView commit details
Commits on Aug 10, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 68c740d - Browse repository at this point
Copy the full SHA 68c740dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e85e7da - Browse repository at this point
Copy the full SHA e85e7daView commit details -
Revert "copy complete 0.20.x releases only into master"
This reverts commit 710bb27.
Configuration menu - View commit details
-
Copy full SHA for c908c32 - Browse repository at this point
Copy the full SHA c908c32View commit details
Commits on Aug 11, 2017
-
formally retire support for PHP older than 5.5
RackTables used to require PHP 5.2.10 or later for several years. As soon as PHP versions 7.x are the default now it is wrong to claim support for something that the upstream itself does not support anymore (5.5 is the oldest supported version on php.net). This upcoming change was announced on racktables-users on 2017-07-21 and nobody has objected so let's go ahead. From now on it is OK to _improve_ RackTables PHP code in ways that break it on PHP versions 5.2/5.3/5.4 only.
Configuration menu - View commit details
-
Copy full SHA for 27bac28 - Browse repository at this point
Copy the full SHA 27bac28View commit details -
make use of the nowdoc string literal syntax
Out of 47 heredoc strings only 11 actually involved PHP variable interpolation. To make it easier to see what to expect from a random long literal, denote genuine 11 heredoc instances with double quotes and convert the other 36 instances to nowdoc. This syntax was introduced in PHP 5.3.0.
Configuration menu - View commit details
-
Copy full SHA for a6e090f - Browse repository at this point
Copy the full SHA a6e090fView commit details -
Configuration menu - View commit details
-
Copy full SHA for eea39b5 - Browse repository at this point
Copy the full SHA eea39b5View commit details
Commits on Aug 14, 2017
-
Travis CI: test PHP 7.0 only once
After the testing environment upgrade PHP "7.0" is no longer 7.0.16 or newer (with PHPUnit 6), it is 7.0.7 with PHPUnit 5, for whatever reason, so do not run two PHP 7.0 jobs. PHP 7.1 job has PHPUnit 6 and RackTables PHPUnit tests can sort themselves out whichever PHPUnit version it is.
Configuration menu - View commit details
-
Copy full SHA for d72da15 - Browse repository at this point
Copy the full SHA d72da15View commit details
Commits on Aug 15, 2017
-
Configuration menu - View commit details
-
Copy full SHA for cbc9fd2 - Browse repository at this point
Copy the full SHA cbc9fd2View commit details -
inline checkColumnOfRadios8021Q()
* renderObject8021QSyncPreview(): move the custom JavaScript code here
Configuration menu - View commit details
-
Copy full SHA for cde7764 - Browse repository at this point
Copy the full SHA cde7764View commit details -
put renderObject8021QSyncPorts() right
This fixes the "802.1Q sync" tab, which was broken; see commit 37095aa.
Configuration menu - View commit details
-
Copy full SHA for 8f9feaa - Browse repository at this point
Copy the full SHA 8f9feaaView commit details
Commits on Aug 16, 2017
-
Configuration menu - View commit details
-
Copy full SHA for f01b069 - Browse repository at this point
Copy the full SHA f01b069View commit details
Commits on Aug 21, 2017
-
change some L2 address format processing
Make the L2 address regexps strictly uppercase because they are used to match all-uppercase strings. In l2addressForDatabase() add handling of IP-over-InfiniBand L2 addresses (20 bytes long). Change the SunOS-specific notation to apply to MAC addresses only. It used to apply to WWN addresses too, most likely due to a copy-and-paste change, and can be restored if there is a genuine use case for it. Resize the text inputs in renderPortsForObject() for IPoIB L2 addresses. Change l2addressFromDatabase() to reject addresses that it would be impossible to have in the database by normal means. Rearrange some code for readability and update comments. Add and update tests as necessary.
Configuration menu - View commit details
-
Copy full SHA for 97792a8 - Browse repository at this point
Copy the full SHA 97792a8View commit details
Commits on Aug 22, 2017
-
improve L2 address integrity checks
In renderDataIntegrityReport() add another check to look for L2 addresses that have invalid length (there is already an existing check for invalid characters). Declare and reuse table columns definitions.
Configuration menu - View commit details
-
Copy full SHA for 53f8e01 - Browse repository at this point
Copy the full SHA 53f8e01View commit details
Commits on Aug 24, 2017
-
tests: factor the suffixes out to a helper method
Implement RTTestCase::myString() and update the tests to use it instead of copying code around.
Configuration menu - View commit details
-
Copy full SHA for aec4c86 - Browse repository at this point
Copy the full SHA aec4c86View commit details
Commits on Aug 27, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 1bba27d - Browse repository at this point
Copy the full SHA 1bba27dView commit details
Commits on Aug 28, 2017
-
split getObjectClass() into three functions
getObjectClass() used to do three different jobs and to accept two to three arguments, of which the first was always a constant. Split its code into three smaller and better focused functions with less arguments and replace a global with a static. Also in the gradient definition convert the percentage from float to integer to avoid potential issues in future (see commit c3fe089). * getObjectClass(): unary or binary function * getTagClass(): unary function * getCachedCSSClassForStyle(): binary function * renderTagRowForEditor(): update as necessary * getColorSelect(): ditto * getTagClassName(): ditto * enableTagsPicker(): ditto * setEntityColors(): ditto * printObjectDetailsForRenderRack(): ditto * renderRack(): ditto * renderDepot(): ditto * renderIPSpaceRecords(): ditto
Configuration menu - View commit details
-
Copy full SHA for 5abb804 - Browse repository at this point
Copy the full SHA 5abb804View commit details -
getOutputOf(): stop buffering on exception
When the worker function outputs its contents normally, the calling function needs the contents only, the buffer itself is removed, which is right. When the worker function throws, don't just discard the contents, remove the buffer too.
Configuration menu - View commit details
-
Copy full SHA for 792704c - Browse repository at this point
Copy the full SHA 792704cView commit details -
tests: simplify RenderDepotTest
Test that renderDepot() has not returned an empty string, it is not much but more than the mere fact the function managed to return without an exception. Leave output buffer management to getOutputOf() and exception handling -- to PHPUnit. This change makes it possible to see that this test failure on PHP 7.1 is actually an error (as much as PHPUnit distinguishes "failures" and "errors") and it occurs the same way on both PHPUnit 5 and PHPUnit 6: There was 1 error: 1) RenderDepotTest::testRenderDepot session_start(): Cannot send session cookie - headers already sent by (output started at /usr/share/php/PHPUnit6/Util/Printer.php:112)
Configuration menu - View commit details
-
Copy full SHA for 216fc00 - Browse repository at this point
Copy the full SHA 216fc00View commit details -
tests: ask PHPUnit to output to stderr, not stdout
This removes interference with RackTables code trying to send HTTP headers (with session_start() at least) and should fix RenderDepotTest on PHP 7.1.
Configuration menu - View commit details
-
Copy full SHA for a86d900 - Browse repository at this point
Copy the full SHA a86d900View commit details
Commits on Aug 29, 2017
-
loadConfigDefaults(): use intval()
This is one of the changes required for compatibility with PHP 7.1, it reduces the number of test cases errored due to the warning below and should fix RenderDepotTest, which was still erroring because of the output started by the non-numeric warnings. PHP Warning: A non-numeric value encountered in .../functions.php on line 5414
Configuration menu - View commit details
-
Copy full SHA for 272a945 - Browse repository at this point
Copy the full SHA 272a945View commit details -
emptyStrIfZero(): a new helper function with tests
* renderNewRackForm() * renderEditRSList() * renderNewVSForm()
Configuration menu - View commit details
-
Copy full SHA for d3e838c - Browse repository at this point
Copy the full SHA d3e838cView commit details -
dismiss a few unnecessary calls to intval()
In renderVLANDomainListEditor() $dominfo['group_id'] is either NULL or a string representation of an unsigned integer. Both kinds of values will evaluate without the conversion as expected in printNiftySelect() and its worker functions. In renderEmptyResults() and getPageNumOfIPv6() the value originates from getConfigVar(), which makes the conversion because the configuration variable is declared "uint", hence the call is a no-op.
Configuration menu - View commit details
-
Copy full SHA for 7c91a82 - Browse repository at this point
Copy the full SHA 7c91a82View commit details -
Configuration menu - View commit details
-
Copy full SHA for 71349ba - Browse repository at this point
Copy the full SHA 71349baView commit details
Commits on Aug 31, 2017
-
Merge https://github.com/RackTables/racktables into maintenance-0.20.x
root committedAug 31, 2017 Configuration menu - View commit details
-
Copy full SHA for 935b674 - Browse repository at this point
Copy the full SHA 935b674View commit details -
root committed
Aug 31, 2017 Configuration menu - View commit details
-
Copy full SHA for 9d55764 - Browse repository at this point
Copy the full SHA 9d55764View commit details -
* show wattage usage on Objects page
root committedAug 31, 2017 Configuration menu - View commit details
-
Copy full SHA for 7d54bcc - Browse repository at this point
Copy the full SHA 7d54bccView commit details