aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-model/src/main/java
AgeCommit message (Collapse)AuthorFilesLines
2023-01-23Disable editing of normative data typesMichaelMorris1-1/+6
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4341 Change-Id: Id7673624032883c641e05fd6e5e3d599f7da14df
2023-01-23Fix ability to add property to data type of different modelJvD_Ericsson1-0/+16
Issue-ID: SDC-4339 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: Ibc5b57a042ffc4e7f914d46ad264a0e16081b863
2023-01-19Download data type from UIKrupaNagabhushan1-0/+14
Issue-ID: SDC-4332 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: If31f7a95eb2d568e716760a33ef2641bad09cf68
2023-01-19Fix 'Primitive types should not be shown under data types in catalog'-bugvasraz1-13/+6
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Ic20f7c5a0784c2107061f268c5c2e03ab34c13cc Issue-ID: SDC-4338
2023-01-17Improve test coveragevasraz1-7/+4
- extract duplicated code - remove redundant and unused code Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I7ae3592951f53bbebf10a80f7cce22d54b2940b6 Issue-ID: SDC-4317
2023-01-10Fix resource property constraint values mutable in Service designJvD_Ericsson11-1/+26
Issue-ID: SDC-4290 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: Ica942b7a8bb1f03cbf6baec709135287e31def06
2023-01-03Provide tosca function to custom datatypes of list and mapimamSidero1-0/+10
Providing the capability to add tosca function as the custom datatypes of list and map Issue-ID: SDC-4311 Signed-off-by: Imam hussain <imam.hussain@est.tech> Change-Id: I7ec8943d8008440b091fc4eaa2aba49cdadcda8d
2023-01-03Improve message for constraints different errorsvasraz3-113/+170
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I8babb10de4f0f25a49998fda077a7bb2554f86ba Issue-ID: SDC-4305
2023-01-03Fix 'NPE thrown in editing constraints'-bugvasraz8-118/+73
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Ibbd8a3baa2a2bfdbd6e2c235db5a1d59875f3e6e Issue-ID: SDC-4312
2022-12-21Multitenancy in SDCKartik Hegde10-1/+30
Issue-ID: SDC-4215 Change-Id: Ie24ba38acc9f1998d4a7e722e8f98456dab9201d Signed-off-by: Kartik Hegde <kh00735564@techmahindra.com>
2022-12-20Add support comparable type constraints for scalar valuesvasraz3-47/+197
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I57234399f23721506d308dfb8351067845ebe892 Issue-ID: SDC-4305
2022-12-14Fix bug 'Pattern constraint validation failure'vasraz5-9/+25
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: If7c59aa37db974c57195775f963c8400cf474a51 Issue-ID: SDC-4294
2022-12-12Add support for comparable type constraints for stringsvasraz2-11/+4
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I3b52c720968ab8333fa2ec81b13c3d0e7b2f4316 Issue-ID: SDC-4299
2022-12-12Fix bug 'Import VFC with constraint PATTERN ignores constraint'vasraz1-116/+119
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I9e390a7978fd6e0d60b55c2b4ebc7fb3ea99a562 Issue-ID: SDC-4291
2022-12-09Fix NPE when checking out serviceMichaelMorris1-1/+1
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4303 Change-Id: I512f3502ff2451749c2fbc590d08c3a10b3bef79
2022-12-07Fix in_range constraint validation gives unhelpful error messageJvD_Ericsson1-1/+1
Issue-ID: SDC-4293 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: If31fb515987c2e6c040e4fbf1d00ca4f669ed525
2022-12-02Fix numeric constraint values generated as stringsJvD_Ericsson10-121/+362
When importing a vfc the property constraints are now checked to see if they are the same type as the property If not it will attempt to convert to that type Issue-ID: SDC-4274 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I32c1d930166d10142ad9ca6914550c7946e9128c
2022-12-01Support addition of pattern constraintJvD_Ericsson2-0/+20
Issue-ID: SDC-4260 Change-Id: I2eccf88472c144d8f595a9d8ec028705e924fd67 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
2022-11-30Support addition of scalar type constraintsJvD_Ericsson2-4/+10
this also supports the addition of the in_range and the valid_values constraints, and supports delete and editing of current and added constraints Issue-ID: SDC-4223 Change-Id: I5ffb4d17d9f8c2730f650153fb4ff89eccfdd474 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
2022-11-25Fix issues while importing a Servicevasraz2-2/+2
The import service was ignoring the selected model for imported nodes. It was also trying to set a different icon for resources that already exist in the database, creating a validation error. There was also a nullpointer in relation to not found capability. Change-Id: Ifa9320c5554bbf5e8fed0cc2e2dea6b05503d213 Issue-ID: SDC-4266 Signed-off-by: André Schmid <andre.schmid@est.tech> Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
2022-11-25Implement create data type propertyandre.schmid6-42/+80
Allows to add a new data type property and visualize the properties details. Change-Id: Ib7bcd4b0bd8213dbe8ee8a3762a0636e22dc67eb Issue-ID: SDC-4258 Signed-off-by: André Schmid <andre.schmid@est.tech>
2022-11-23Fix property constraints validationfranciscovila1-1/+1
Fix property constraints validation behaviour when a property is not required shouldnt be validated vs constraints if no value is provided. Also add constraints validation for length measures in list, map and string types. Issue-ID: SDC-4222 Signed-off-by: franciscovila <javier.paradela.vila@est.tech> Change-Id: I48ebb46b3de9ddac3d9dd91400ea0fad983aa94d
2022-11-17Fix wrong Model during import VSPvasraz1-1/+0
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I0cea47f26f5fe3e38b54c94e05dec8649ad58159 Issue-ID: SDC-4268
2022-11-08Interface is formatted using extended notation when no implementation added ↵vasraz2-65/+0
at VFC level Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I4e6e6d61b851fe2efaa47c9f8fad0cb546f2fcb7 Issue-ID: SDC-4255
2022-11-03Fix for boolean default value exported as StringimamSidero1-1/+1
Exporting all primitive type as expected types for complex type default values in tosca export Issue-ID: SDC-4237 Signed-off-by: Imam hussain <imam.hussain@est.tech> Change-Id: I0dc7009922dc0ada5b946e2fcd0b96b495fa9b62
2022-10-27Fix potential NPE in importing property constraintsvasraz1-76/+81
Fix potential NPE introduced by https://gerrit.onap.org/r/c/sdc/+/131472 Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I10a6f40e5a36c7a1eb33ed6a24ad3a2356672a64 Issue-ID: SDC-4231
2022-10-26Fix import policy issuesMichaelMorris1-3/+7
The following issues are addressed: When a service is imported containing polices, a new name for the policy is generated instead of using the name from the imported service When a service is imported containing policies with a string value set for a property of a policy, then the value is created in the new service surrounded with quotes NPE when service imported with no instances NPE when service imported with instances with no requirements Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4224 Change-Id: I8403c0564796a045816ae28e52961688ca7804db
2022-10-25Add default baseType to the substitution typeimamSidero2-0/+14
Enabling default baseType in substitution type to be selected Issue-ID: SDC-4229 Signed-off-by: Imam hussain <imam.hussain@est.tech> Change-Id: I869ede4c4e030adc3c4418c28ed787b4c10248dd
2022-10-24Support import of VFCs with property constraintsMichaelMorris10-22/+176
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4216 Change-Id: I19dce9f929535aa22cad6a1d95a213f42dd6e99c
2022-10-18Fix security risk 'Improper Input Validation'vasraz1-140/+18
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I6a52148aec3b567db43ec57109214e52d106f73c Issue-ID: SDC-4189
2022-10-17Fix serialization issue with constraintsMichaelMorris2-0/+4
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4217 Change-Id: If5068ca891df934f600a7c37dc3cffa2aa372a3c
2022-10-17Add data type properties workspaceandre.schmid6-8/+217
Implements the properties workspace for a data type, with the list and filter feature. Change-Id: I2ec337a0481bddd5fe32e45644abdc88e197fa49 Issue-ID: SDC-4214 Signed-off-by: André Schmid <andre.schmid@est.tech>
2022-10-05Implement API for fetching single data typevasraz2-25/+48
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Icebf660d67d503250e4f6d4d7fd5a2e169cdc951 Issue-ID: SDC-4184
2022-10-04Fix for VFC version update on composition windowimamSidero1-3/+1
On add service - composition window VFC version update/change is fixed by mapping appropriate requirements and capabilities Issue-ID: SDC-4185 Signed-off-by: Imam hussain <imam.hussain@est.tech> Change-Id: I0de616510ca27c511179f1f34cf7290cd584c7c5
2022-09-19Import unknown group types during Service importvasraz12-186/+171
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Ic435ee0c440dd8ed64339bab08e921687d23b9c0 Issue-ID: SDC-4176
2022-09-19Support TOSCA functions in Node Capability Filtersandre.schmid1-8/+27
Adds support to use TOSCA functions as value in the node capability filters. Removes the current capability filter component to reuse, with a few changes, the node property filters component. Fixes problems with the edition and deletion of node capability filters. Change-Id: Ic91242d6cbc24e2ce0f60b84c63e104575bef8a9 Issue-ID: SDC-4173 Signed-off-by: André Schmid <andre.schmid@est.tech>
2022-09-16Import unknown artifact types on Service ImportimamSidero1-1/+1
creating non existing artifact types added in the import files on service import Issue-ID: SDC-4153 Signed-off-by: Imam hussain <imam.hussain@est.tech> Change-Id: I477cbc76dece828bc9eee96e66cd24a71fc8c2bb
2022-09-09Fix node filter API payload retro-compatibility1.11.8andre.schmid3-1/+87
The create/edit API was not converting properly a legacy payload and the request was failing. Also, the create/edit response was not being handled as previously when the legacy payload was given. Change-Id: Ic0832cd31ca450806a053ae96889538bf7e8daca Issue-ID: SDC-4174 Signed-off-by: André Schmid <andre.schmid@est.tech>
2022-09-09Import services with sub prop tosca functionsMichaelMorris1-0/+3
Includes fix for setting sub properties to yaml values other than maps Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4168 Change-Id: I15e3c450c10d4603f882c20f2da80cb7b5d80bb6
2022-09-08Support TOSCA functions in Node Filtersandre.schmid24-146/+298
Adds support to use tosca functions as value in the node property filters and substitution filters Change-Id: Id242691cc9ddd233245b58f052b9f0e2c7bbd66b Issue-ID: SDC-4128 Signed-off-by: André Schmid <andre.schmid@est.tech>
2022-09-06Support import of updated node typesJvD_Ericsson4-0/+108
Support addition of new properties Issue-ID: SDC-4131 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: I9f12d0f4f9727c33f8444980b780758533e714cf
2022-09-02Support updated data types in service importMichaelMorris4-41/+70
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4140 Change-Id: Ib66d47a0f566b648722ce86cfc4e208880551a29
2022-08-19Fix wrongly generated tosca implementationKrupaNagabhushan1-2/+3
Issue-ID: SDC-4130 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: I23ea03fded3d82006b98b0d42be928ac38513276
2022-08-19Support Inputs during Import Servicevasraz1-8/+8
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Ifc761d607a5d3c11187486fec3133be44c2d38b0 Issue-ID: SDC-4082
2022-08-15Service Import - Node Template Interface Definitionsfranciscovila4-26/+159
Add Node Template Interface Definitions when importing a service Issue-ID: SDC-4113 Signed-off-by: franciscovila <javier.paradela.vila@est.tech> Change-Id: I28bcb120ebd25b0baa4e62404d3fe38ce3a3706f
2022-08-15Fix new data types not found in UIMichaelMorris1-7/+11
Also, fixed issue with data type sorting when there are mutliple layers in dependency hierarchy Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4129 Change-Id: I4d535420953237efd610a3fb1dd6b9d40883e514
2022-08-12Service import - Import unknown node typesJvD_Ericsson1-0/+14
Issue-ID: SDC-4118 Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech> Change-Id: Id620eef55ffb6849006e8a7bc063709150628e76
2022-08-11Error Importing node filter with multiple capability propertiesfranciscovila1-1/+13
Fix importing NF with multiple Capability properties Issue-ID: SDC-4117 Signed-off-by: franciscovila <javier.paradela.vila@est.tech> Change-Id: I84fc245ddb40440d4909f5ae896b57ddf8b3740a
2022-08-06Support for TOSCA functions for Service Importandre.schmid2-161/+6
Reads, interprets and persists property values that uses TOSCA functions during a Service import. Change-Id: I6943c447cc743213cb9807d6433cb25fa5effbc3 Issue-ID: SDC-4120 Signed-off-by: André Schmid <andre.schmid@est.tech>
2022-08-04Fix error adding capability to VFCMichaelMorris1-6/+10
Signed-off-by: MichaelMorris <michael.morris@est.tech> Issue-ID: SDC-4098 Change-Id: Id3c71787b9c11bbf4316a9a23f01199a009f2b49