View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|1569||RackTables||default||public||2015-12-17 17:34||2018-07-07 19:11|
|Target Version||Fixed in Version|
|Summary||1569: Ability to make attributes required|
|Description||Is it possible to add an extra field on "attribute mapping" to make an attribute required depending of the type of object?|
For example, in the VM object "FQDN" is required, but not in Server object.
|Tags||No tags attached.|
|Do you mean to require the attribute set when the object is created? Or to allow to create an object anyway and just block the "save properties" form if the value is empty?|
I need the second option. Create an object anyway and just block the "save properties" form if the value is empty
|A local plugin can solve this task.|
Is there any existing plugin with this functionality?
I don't know how to modify properties the form to solve this, can you explain me if you don't want to integrate in RackTables?
Please try this:
I downloaded the file in the directory plugins.
When modifying an object I can leave empty "FQDN" field.
I have the version 0.20.8 of RackTables
I guess this was just a proof of concept, would be nice to define through gui the attributes required versus object type.
|The two constants at the file top provide the means for customisation.|
How it works if i need to mark as required more attributes on especific object type?
Anyway, this doesn't work with the example.
|Let me have some time to check and update.|
I hope for your updates
Is any update in this?
|I've got a technical draft how to implement it without a plugin and with the flexibility you are looking for. I will update once there is a code to show.|
|This was implemented about halfway and then I got backlogged with other work. I need more time to resolve this (in either way).|
Thanks for the update. I'll keep waiting for more news
|I have saved my working copy here: https://github.com/infrastation/racktables/tree/Mantis-1569|
|2015-12-17 17:34||marti.cardus||New Issue|
|2015-12-23 15:29||infrastation||Note Added: 0003071|
|2015-12-23 15:50||marti.cardus||Note Added: 0003073|
|2015-12-23 17:05||infrastation||Note Added: 0003075|
|2015-12-23 17:52||marti.cardus||Note Added: 0003077|
|2015-12-24 00:26||infrastation||Note Added: 0003079|
|2015-12-24 00:27||infrastation||Assigned To||=> infrastation|
|2015-12-24 00:27||infrastation||Status||new => assigned|
|2015-12-24 09:09||marti.cardus||Note Added: 0003081|
|2015-12-24 09:34||infrastation||Note Added: 0003083|
|2015-12-24 09:46||marti.cardus||Note Added: 0003085|
|2015-12-24 09:54||infrastation||Note Added: 0003087|
|2015-12-24 10:25||marti.cardus||Note Added: 0003089|
|2015-12-31 11:05||marti.cardus||Note Added: 0003093|
|2016-01-03 20:30||infrastation||Note Added: 0003097|
|2016-05-19 12:21||infrastation||Note Added: 0003189|
|2016-05-19 12:39||marti.cardus||Note Added: 0003191|
|2016-10-01 22:24||infrastation||Note Added: 0003483|
|2018-07-07 19:11||infrastation||Assigned To||infrastation =>|
|2018-07-07 19:11||infrastation||Status||assigned => acknowledged|